Examplary
Start for free
Oak ComputingTest · Computing

Arithmetic operators

The starter and exit quiz of the lesson “Arithmetic 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 will be displayed if the user inputs "Python"?print("Name the best programming language?")language = input()if language == "Python": print("Hi Pythonista")else: print("Wrong!")
  2. What will this program output?number = 13if number < 10: print("small")elif number < 100: print("medium")elif number < 1000: print("large")
  3. What will this program output if the user enters 0?print("Enter a number")number = int(input())if number >= 0: print(f"{number} is positive")else: print(f"{number} is negative")
  4. If a program checks a condition and finds it to be False, what happens next?
  5. Match the term to the description.
  6. What is the name of the shape used to represent a decision in a flow chart?
  7. What is an arithmetic operator?
  8. What is the result of 10 - 2 + 2 * 5
  9. What does the // symbol represent?
  10. What is the result of 14 // 3?
  11. What does the modulo operator (%) return?
  12. Match the symbol to the operation.

License: OGL

Arithmetic operators · Examplary