Examplary
Start for free
Oak ComputingTest · Computing

Relational operators

The starter and exit quiz of the lesson “Relational operators”, from the unit “Programming: selection” (Year 10 Computing) by Oak National Academy.

Free to use. Edit it, share it and hand it out to your students.

Oak National Academy

12 questions

  1. What does integer division // do?
  2. What comes first in the order of operations?
  3. The expression 25 % 4 returns ___.
  4. Match the operator with its function.
  5. Match the expression with the result.
  6. / performs real division and returns a decimal, while // performs ___ division and discards the remainder.
  7. What do relational operators do in a program?
  8. What is the result of the expression 15 > 12?
  9. The correct way to check if age is greater than 18 in Python is if age ___ 18:
  10. Match the operator to the operation.
  11. Match the expression with its result.
  12. What will be displayed if score = 11 in the following code?if score < 5: print("You lose") elif score <= 10: print("Not bad!") else: print("You win!")

License: OGL

Relational operators · Examplary