Save
...
2
2.1
Thinking Ahead
Save
Share
Learn
Content
Leaderboard
Learn
Created by
kayzz
Visit profile
Cards (30)
What does designing a solution entail in the context of
computational problems
?
It involves
thinking ahead
about the different
components
of a problem and how they will be
handled.
View source
Why is it important for developers to consider difficulties that may arise when software is used?
To
design strategies
that make programs easy and
intuitive
to use.
View source
What are the two main components of all computational problems?
Inputs
and
outputs.
View source
What are inputs in the context of computational problems?
Any data required to solve the problem
,
entered into the system by the user.
View source
What are outputs in computational problems?
Results that are passed back once the inputs have been processed and the problem solved.
View source
What must designers decide on to present a solution effectively?
A suitable
data type
,
structure
, and
method.
View source
In the context of an ATM program, what input is required for a balance check?
Card
details and
PIN
entered via
keypad.
View source
What output is displayed if a deposit is selected in an ATM program?
Total amount entered on screen.
View source
What happens when a withdrawal is selected in an ATM program?
The correct amount of cash is dispensed.
View source
What devices are required to capture input data for an ATM?
A
touch
screen,
magnetic
stripe card reader, and
keypad.
View source
What devices are used to output data from an ATM?
A
monitor
,
cash
dispenser,
printer
, and
speakers.
View source
What is the typical first step for designers when creating a solution?
Considering what
outputs
are required based on the user’s
requirements.
View source
What are
preconditions
in programming?
Requirements that
must
be
met before
a
program
can be
executed.
View source
How can
preconditions
be
specified
in programming?
They can be tested
within
the
code
or
included
in the
documentation.
View source
What does the function pop() do in a stack?
It
removes
the
last
item added to the
stack.
View source
Why is it important to check that a stack is not empty before using pop()?
To avoid
errors
that could cause the program to
crash.
View source
What is the responsibility of the user regarding preconditions specified in documentation?
To ensure inputs meet the
requirements
specified.
View source
How do preconditions contribute to program efficiency?
They reduce the
length
and
complexity
of the program and save
time
needed for
debugging.
View source
What are reusable program components?
Commonly
used
functions packaged
into
libraries
for
reuse.
View source
What is the benefit of using reusable components in software development?
They are more
reliable
as they have already been
tested.
View source
What is the process of decomposing a problem in software design?
Breaking
it down into
smaller
,
simpler
tasks.
View source
What is caching in computing?
The process of storing
instructions
or
values
in cache
memory
after they have been used.
View source
What is the purpose of caching?
To save
time retrieving instructions
from
secondary storage
again.
View source
What is prefetching in the context of caching?
Algorithms predict which
instructions
are likely to be
used soon
and
load
them into
cache beforehand.
View source
What is a limitation of prefetching?
The
accuracy
of the algorithms used to predict
instructions.
View source
How does cache size affect caching performance?
Larger
caches take
longer
to
search
,
limiting
how much
data
can be
stored
effectively.
View source
What is the general challenge of implementing caching effectively?
It can be
difficult
to implement but can significantly
improve performance
if done
correctly.
View source
What are the key components of inputs and outputs in a computational problem?
Inputs
: Data required to solve the problem, entered by the user.
Outputs
: Results passed back after processing the inputs.
View source
What are the steps involved in designing a solution for a computational problem?
Identify required
outputs
based on user
requirements.
Determine necessary
inputs.
Process
inputs to achieve
outputs.
View source
What are the advantages and disadvantages of using reusable components in software development?
Advantages:
More
reliable
due to prior
testing.
Saves
time
,
money
, and
resources.
Can be reused in
future
projects.
Disadvantages:
Compatibility
issues may arise.
Modifications
may be
costly
and
time-consuming.
View source