Multiple choice › Control structures
Control structures
1. Control structures
In a program, a sequence of statements must be executed at least once. Which control structure will ensure that this occurs?
- Binary selection
- Pre-test repetition
- Post-test repetition
- Multiway selection
Answer
C
NESA answer key: C. Old syllabus (SDD): useful as overlap practice only.
2. Control structures
Which of the following pseudocode keywords is associated with multiway selection?
- CASEWHERE
- IF
- REPEAT
- WHILE
Answer
A
NESA answer key: A. Old syllabus (SDD): useful as overlap practice only.
3. Control structures
Which control structure repeats a block of code while a condition is true, checking the condition BEFORE each repetition?
- Binary selection
- Sequence
- WHILE loop
- Subroutine call
Answer
C
A pre-test loop (WHILE) may execute zero times. A post-test (REPEAT ... UNTIL) executes at least once.