Chapter 9 Flashcards
TF
Computers can generate truly random numbers
False
TF
The python random function returns a pseudo random int
False
TF
Top-down design is also called stepwise refinement
True
TF
In top-down design, the main algorithm is written in terms of functions that don’t yet exist
True
TF
The main function is at the top of a functional structure chart
True
TF
A top-down design is best implemented from the top down
True
TF
Unit-testing is the process of trying out a component of a larger program in isolation
True
TF
A developer should use either top-down design or spiral design, but not both
False
Reading design books alone will make you a great designer
False
TF
A simplified version of a program is called a simulation
False
Which expression is true approx 66% of the time?
A) random () >=66 B) random() <0.66
C) random()<66 D) random()>=0.66
D) random( ) >= 0.66
Which of the following is not a step in pure top-down design?
A) Repeat the process on smaller problems
B) Detail the algorithm in terms of its interfaces with smaller problems.
C) Construct a simplified prototype of the system.
D) Express the algorithm in terms of smaller problems.
A) Repeat the process on smaller problems
A graphical view of the dependencies among components of a design is called a
A) flow chart B) prototype
C) interface D) structure chart
D) structure chart
The arrows in a module hierarchy chart depict
A) information flow B) control flow
C) sticky-note attachments D) one-way streets
A) information flow
In top-down design, the subcomponents of the design are
A) objects B) loops
C) functions D) programs
C) functions