Y11 GCSE Computer Science
PRIMM Activities: OCR Reference Language Operators
Focus topics: comparison, arithmetic, and boolean operators.
Activity 1: Predict & Run
Read each program, choose the best prediction, then run to check.
Predict 1: Comparison Operators
Console
Press "Run this code" to see output.
Predict 2: DIV, MOD, and Exponent
Console
Press "Run this code" to see output.
Predict 3: Boolean Operators
Console
Press "Run this code" to see output.
Predict 4: Arithmetic + Comparison
Console
Press "Run this code" to see output.
Predict 5: Input with Operators
Console
Press "Run this code" to see output.
Activity 2: Investigate (Parsons Problem)
- Drag and reorder the blocks to build the correct OCR pseudocode program.
- The program should calculate whether the number is even using
MOD.
- Then check whether the number is high enough using
>=.
- Finally print one boolean result using
AND.
Activity 3: Modify
- The starter program already checks if a mark is
>= passMark.
- Add code to print
mark MOD 5.
- Then output whether
mark != 100.
Console
Run your code to check it.
Activity 4: Make
- Use the complete OCR Reference Language IDE to solve the challenge.
- Include at least one
// comment.
- Use arithmetic, comparison, and boolean operators.
- Ask for two numbers and print several operator results.
- Print a final
TRUE/FALSE decision using AND or OR.