COP1000C Quiz#3 Multiple Choice
Questions and Answers
Spaghetti ✔✔Programs that use _____ code logic are unstructured programs that do not follow
the rules of structured logic.
Sequence Structure ✔✔With a(n) ____, yo
...
COP1000C Quiz#3 Multiple Choice
Questions and Answers
Spaghetti ✔✔Programs that use _____ code logic are unstructured programs that do not follow
the rules of structured logic.
Sequence Structure ✔✔With a(n) ____, you perform an action or task, and then you perform the
next action, in order.
Sequence ✔✔The following pseudocode is an example of a ____ structure.
get firstNumber
get secondNumber
add firstNumber and secondNumber
print result
Endif ✔✔Pseudocode uses the end-structure statement ____ to clearly show where the structure
ends.
Decision ✔✔The following pseudocode is an example of a ____ structure.
if firstNumber is bigger than secondNumber then
print firstNumber
else
print secondNumber
Endif
Else ✔✔Fill in the blank in the following pseudocode:
if someCondition is true then
do oneProcess
____
do theOtherProcess
Endif
Dual-Alternative Selection ✔✔if-else examples can also be called ____ because they contain the
action taken when the tested condition is true and the action taken when it is false.
Loop body ✔✔The action or actions that occur within a loop are known as a(n) ____.
Iteration ✔✔You may hear programmers refer to looping as ____.
Loop ✔✔The following pseudocode is an example of a ____ structure.
get number
while number is positive
add to sum
get number
Endwhile
Stacking ✔✔The following pseudocode is an example of ____.
do stepA
do stepB
if conditionC is true then
do stepD
else
do stepE
endif
while conditionF is true
do stepG
endwhile
Stacking ✔✔Attaching structures end to end is called ____ structures.
Nesting ✔✔The following pseudocode is an example of ____.
if conditionA is true then
do stepE
[Show More]