Y11 GCSE Computer Science
PRIMM Activities: OCR Iteration
Focus topics: FOR loops, WHILE loops, and DO UNTIL loops using OCR pseudocode.
Activity 1: Predict & Run
Read each OCR pseudocode snippet, predict what happens, then run it to check.
Predict 1: Count-controlled FOR loop
Console
Press "Run this code" to see output.
Predict 2: FOR loop with STEP 2
Console
Press "Run this code" to see output.
Predict 3: WHILE loop
Console
Press "Run this code" to see output.
Predict 4: DO UNTIL loop
Console
Press "Run this code" to see output.
Predict 5: Reverse FOR loop with STEP -2
Console
Press "Run this code" to see output.
Activity 2: Investigate (Parsons Problem)
- Drag and reorder the blocks to build a correct OCR FOR loop.
- The final output must be the even numbers from 2 to 10 inclusive.
- Use the OCR structure:
for ... to ... step ... and next ....
Activity 3: Modify
- The starter uses a
while loop.
- Modify it so it prints the numbers
1 to 5.
- Make sure the loop variable changes so the loop stops at the right time.
Console
Run your code to check it.
Activity 4: Make
- Use the full OCR Reference Language IDE to create your own
do until challenge.
- Ask the user for input at least once.
- Repeat until the user enters the correct answer.
- Print a clear success message when the loop finishes.