10. Pseudocode and flowcharts Flashcards
What symbol is used for assignments?
An arrow
What symbol is used for assignments?
An arrow
How does a conditional work in pseudocode?
IF Age
How does case work in pseudocode?
CASE Grade OF: 'A' : PRINT 'Excellent' 'B' : PRINT 'Good' 'C' : PRINT 'Average' OTHERWISE PRINT 'Improvement is needed' ENDCASE
Not equal symbol in pseudocode
Why use a FOR … TO…NEXT loop?
A set number of repetitions.
Why use a REPEAT…UNTIL loop
A repetition where the number of repeats is not known but must be completed at least once.
Why use a WHILE…DO…ENDWHILE loop?
A repetition where the number of repeats is not known but may not need to be used at all.
How does a conditional work in pseudocode?
IF Age
How does case work in pseudocode?
CASE Grade OF: 'A' : PRINT 'Excellent' 'B' : PRINT 'Good' 'C' : PRINT 'Average' OTHERWISE PRINT 'Improvement is needed' ENDCASE
Not equal symbol in pseudocode
Why use a FOR … TO…NEXT loop?
A set number of repetitions.
Why use a REPEAT…UNTIL loop
A repetition where the number of repeats is not known but must be completed at least once.
Why use a WHILE…DO…ENDWHILE loop?
A repetition where the number of repeats is not known but may not need to be used at all.