Examplary
Start for free
Oak ComputingTest · Computing

List methods

The starter and exit quiz of the lesson “List methods”, 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. Match the term to its description.
  2. An ___ is fixed in size and can only contain data of the same type.
  3. Which of the following are characteristics of a list?
  4. Which brackets are used when defining a list in Python?
  5. What is the identifier in this list?planets = ["Mercury", "Venus", "Earth", "Mars", "Jupiter", "Neptune", "Saturn"]
  6. In this list, which item is held in index position 2?planets = ["Mercury", "Venus", "Earth", "Mars", "Jupiter", "Neptune", "Saturn"]
  7. What does the append() method do?
  8. Which method would you use to remove an item from a list at a specific index?
  9. What will be the output of this code?shopping = ["bread", "cheese", "milk"]print(shopping.count("cheese"))
  10. If no argument is provided to the pop() method, which item is removed from the list?
  11. What will be the output from this code?numbers = [3, 6, 9, 12]numbers.insert(2, 15)print(numbers)
  12. What does the remove() method do?

License: OGL

List methods · Examplary