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
Which of the following correctly defines a list in Python?
Match the list operation with its description.
What will be the output of the following code?fruits = ["apple", "banana", "cherry"]fruits.append("orange")print(fruits)
What does the .upper() method do in Python?
What will be the output of the following code?word = "PYTHON"print(word[2])
Strings can hold letters, numbers, and symbols, and they must be enclosed in ___.
What is a record in programming?
What is an attribute in a record?
What will be the output of the following code?player = { "username" : "rockstar", "password" : "6goatsEating", "score" : 5328 } print(player["username"])