Examplary
Start for free
Oak ComputingTest · Computing

For loops

The starter and exit quiz of the lesson “For 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 is the purpose of a trace table in programming?
  2. What does a condition in a program control?
  3. Which of these is an example of a condition?
  4. Write a condition-controlled loop that runs as long as the variable num is less than or equal to 10.
  5. Match the terms to their definitions:
  6. What is the role of iteration in programming?
  7. What does a for loop use to control iteration?
  8. What happens if a for loop's range is set to range(5)?
  9. What ensures a for loop stops execution?
  10. Which of these is an example of iteration?
  11. What is the starting value of the variable in for i in range(4)?
  12. Write the Python code to create a for loop that iterates a variable called count from 3 to 7.

License: OGL

For loops · Examplary