Examplary
Start for free
Oak ComputingTest · Computing

Records and dictionaries

The starter and exit quiz of the lesson “Records and dictionaries”, from the unit “Programming: dictionaries and data files” (Year 11 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. Which of the following correctly defines a list in Python?
  2. Match the list operation with its description.
  3. What will be the output of the following code?fruits = ["apple", "banana", "cherry"]fruits.append("orange")print(fruits)
  4. What does the .upper() method do in Python?
  5. What will be the output of the following code?word = "PYTHON"print(word[2])
  6. Strings can hold letters, numbers, and symbols, and they must be enclosed in ___.
  7. What is a record in programming?
  8. What is an attribute in a record?
  9. What will be the output of the following code?player = { "username" : "rockstar", "password" : "6goatsEating", "score" : 5328 } print(player["username"])
  10. Match the keyword to the description.
  11. How is a record typically represented in Python?
  12. How can you modify a value in a dictionary?

License: OGL

Records and dictionaries · Examplary