Examplary
Start for free
Oak ComputingTest · Computing

While loops

The starter and exit quiz of the lesson “While loops”, from the unit “Programming: iteration” (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 Python function is used to receive data that the user enters?
  2. Which of these is a logical operator in Python?
  3. What does the print function do?
  4. What does the operator != mean?
  5. What is the purpose of the if statement?
  6. Match the examples to their descriptions.
  7. What Python command is used for condition-controlled iteration?
  8. What is iteration in programming?
  9. What does a condition in a while loop do?
  10. What happens if the condition in a while loop is False initially?
  11. Order the steps of a condition-controlled loop.
  12. Write the code to create iteration that will run if the variable num is over 5.

License: OGL

While loops · Examplary