Programs that use _____ code logic are unstructured programs that do not follow the rules of structured
logic. - Answers spaghettia
With a(n) ____, you perform an action or task, and then you perform the next action, in order. - Answers
sequence structure
The following pseudocode is an example of a ____ structure.
get firstNumber
get secondNumber
add firstNumber and secondNumber
print result - Answers sequence
Pseudocode uses the end-structure statement ____ to clearly show where the structure ends. - Answers
endif
The following pseudocode is an example of a ____ structure.
if firstNumber is bigger than secondNumber then
print firstNumber
else
print secondNumber
endif - Answers decision
Fill in the blank in the following pseudocode:
if someCondition is true then
do oneProcess
____
do theOtherProcess
endif - Answers else
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. - Answers dual-alternative selections
The action or actions that occur within a loop are known as a(n) ____. - Answers loop body
, You may hear programmers refer to looping as ____. - Answers iteration
The following pseudocode is an example of a ____ structure.
get number
while number is positive
add to sum
get number
endwhile - Answers loop
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 - Answers stacking
Attaching structures end to end is called ____ structures. - Answers stacking
The following pseudocode is an example of ____.
if conditionA is true then
do stepE
else
do stepB
do stepC