TK Study

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?

  1. Binary selection
  2. Pre-test repetition
  3. Post-test repetition
  4. 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?

  1. CASEWHERE
  2. IF
  3. REPEAT
  4. 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?

  1. Binary selection
  2. Sequence
  3. WHILE loop
  4. Subroutine call
Answer

C

A pre-test loop (WHILE) may execute zero times. A post-test (REPEAT ... UNTIL) executes at least once.