Six original Cambridge-style questions on iteration, with trace tables and mark points.
Describe the three types of loop used in pseudocode.
Complete a trace table for this pseudocode and state the output.
Total ← 0
Number ← 1
WHILE Total < 20 DO
Total ← Total + Number
Number ← Number + 2
ENDWHILE
OUTPUT Total, " ", NumberWrite pseudocode that uses a FOR loop to input 10 numbers, then outputs their total and their average.
Total ← 0 before the loop ✓FOR Count ← 1 TO 10 ... NEXT Count ✓INPUT Number and Total ← Total + Number inside the loop ✓OUTPUT Total, Total / 10 ✓Write pseudocode using a REPEAT ... UNTIL loop that makes the user enter a number from 1 to 10 inclusive.
REPEAT ✓INPUT Number (with a prompt) ✓UNTIL Number >= 1 AND Number <= 10 ✓Explain the difference between a pre-condition loop and a post-condition loop.
This loop should output the numbers 1 to 5 but never stops. Explain why and correct it.
Count ← 1
WHILE Count <= 5 DO
OUTPUT Count
ENDWHILECount ← Count + 1 inside the loop, after the OUTPUT. ✓Mark this once you have attempted all six and checked your working. It records a Practiced badge on the topic and adds a one-time bonus. Revealing the solutions alone does not count.