Examplary
Start for free
Oak ComputingTest · Computing

String handling

The starter and exit quiz of the lesson “String handling”, from the unit “Programming: strings and lists” (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 a for loop do in Python?
  2. What does range(5) generate in Python?
  3. What is the purpose of an if statement in Python?
  4. Which of these is **not** a valid condition in an if statement?
  5. What does the else part of an if statement do?
  6. Match the terms with their definitions.
  7. What is the term for a collection of characters enclosed in quotes in Python?
  8. What is the index number of the first character in a string in Python?
  9. What will len("Quiz") return?
  10. What happens when you use a for loop with a string?
  11. Which of these is **not** a valid operation on a string?
  12. Which of the following is true about operations in Python?

License: OGL

String handling · Examplary