1. Examples for list data type
Python-list,tuple,Dictionary

Quiz
•
Computers
•
11th - 12th Grade
•
Hard
shruthi Hegde
Used 154+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
20 sec • 1 pt
[1,2,3,4,5]
['S','H','R','U','T','H','I']
{1:"a",2:"b",3:"c",7:"d"}
('A','B','C','D')
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
colors = ["red", "green", "burnt sienna", "blue"]
print(colors[2])
What is the output of the above python code?
'blue'
It causes a run-time error.
'burnt sienna'
'green'
3.
FILL IN THE BLANK QUESTION
20 sec • 1 pt
colors = ["red", "green", "burnt sienna", "blue"]
Which list index would select the value 'red' from the above list?
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
colors = ("red", "green", "burnt sienna", "blue")
print("yellow" in colors)
What is the result of the yellow in colors expression?
ValueError: 'yellow' is not in list
4
False
True
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What’s the main difference between Python lists and tuples?
Lists can hold any data type and tuples can only contain int and str objects.
Lists are immutable and tuples are mutable.
Lists are mutable and tuples are immutable.
Lists are faster and tuples are slower.
Check Your Answer »
6.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of the following are true of Python dictionaries:
Dictionaries are accessed by key.
All the keys in a dictionary must be of the same type.
Dictionaries are mutable.
A dictionary can contain any object type except another dictionary.
Dictionaries can be nested to any depth.
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Write the Python code that prints out Captain Kirk’s email address from the employee dictionary below:
employee = { "id": 1701, "name": "James T Kirk",
"email": "jtkirk@starfleet.com","position": "captain"}
Similar Resources on Quizizz
10 questions
Python Abstraction

Quiz
•
12th Grade
10 questions
H466 - Arrays, Records, Tuples and Lists

Quiz
•
11th Grade - University
10 questions
Guided Note 5.3 For Loop and List

Quiz
•
9th - 12th Grade
10 questions
Python Data Types Quiz

Quiz
•
11th Grade
10 questions
PCEP 3C: Collect and process data using tuples

Quiz
•
12th Grade
10 questions
11th Class Python Basics

Quiz
•
11th Grade
10 questions
Data Handling in Python

Quiz
•
11th Grade
10 questions
Python Object Types - Numbers

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University