Chapter 5: Testing repeats Question 2 of 7


Repeats
1 Instruction
2 REPEAT
3      Instruction
4      WHILE NOT Test 111 DO
5           Instruction
6      END WHILE
7      Instruction
8      Instruction
9 UNTIL Test 222
10 Instruction
11 End of the program

In the program shown opposite, the line marked with an arrow will be executed.

After execution, which line will the program jump to?

Note: test Test 222 will give a TRUE result.

Click on the button corresponding to the line the program will jump to after execution of the line marked with an arrow. Then click on "Check my answer".

The only purpose of the REPEAT is to mark the point where the corresponding UNTIL loop is likely to start again.

There will be no line breaks in the process, and the program will simply continue on to the next line..

Note: at this stage, the result of the test Test 222 is irrelevant, so don't let yourself be distracted by unnecessary information.

Next question

Stop the test