Class 11 Computer Science: Lists and Dictionaries
Answer the questions and tap Submit to see your score. Your progress is auto-saved on this device.
Jump to question
Q1 · MCQ · 1 mark
Which of the following is an ordered collection of items, enclosed in square brackets, and mutable?
Q2 · MCQ · 1 mark
What will be the output of the following Python code snippet?
`my_list = [10, 20, 30]
my_list.append(40)
print(my_list)`
Q3 · FILL · 1 mark
Dictionary keys must be '_____' and unique.
Q4 · MCQ · 1 mark
Which method is used to remove a specific item from a list by its value?
Q5 · MCQ · 1 mark
What is the correct way to access the value associated with the key 'city' from the dictionary `my_dict = {'name': 'Alice', 'age': 30, 'city': 'New York'}`?
Q6 · FILL · 1 mark
The `_____(key)` method of a dictionary returns the value for the specified key if the key is in the dictionary, else 'None'.
Q7 · MCQ · 1 mark
Which of the following statements about lists and dictionaries is true?
Q8 · SHORT · 2 marks
Explain the primary difference between `list.append()` and `list.extend()` methods in Python.
Q9 · FILL · 1 mark
The `____` operator is used to check for the presence of a key in a dictionary.
Q10 · SHORT · 2 marks
How can you create an empty dictionary and an empty list in Python?