Examplary
Start for free
Oak ComputingTest · Computing

Randomisation

The starter and exit quiz of the lesson “Randomisation”, 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 a nested loop?
  2. What does the outer loop in a nested loop do?
  3. How does the inner loop behave in a nested loop?
  4. What is the main advantage of using nested loops?
  5. How do you ensure a nested loop works correctly?
  6. How many times will this print a line?for day in range(3): for hour in range(2): print("Time slot")
  7. Do you need to write all the code for random number generation yourself?
  8. What is a module in Python?
  9. What is the standard library in Python?
  10. How do you import a module in Python?
  11. How do you generate a random whole number between 1 and 10?
  12. Match the term to its function:

License: OGL

Randomisation · Examplary