Which of the following data structures is immutable?
Python Unit 8 Quiz

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Nate Edwards
Used 4+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Tuple
List
Dictionary
2D List
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this program print?
heights = [65, 56, 67, 48, 64]
heights.sort()
heights.extend([60, 61, 62])
heights.remove(67)
print(heights)
[48, 56, 64, 65, [60, 61, 62]]
[48, 56, 60, 61, 62, 64, 65]
[48, 56, 64, 65, 60, 61, 62]
error loop
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times does this program print That's a large class!?
num_students = [23, 21, 33, 35, 24, 35]
for num in num_students: if num > 23:
print("That's a large class!")
0
1
4
6
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would the following program print to the screen when run?
my_list = [7, 0, 0, "d", "n", "o", "B"]
my_list.reverse()
for thing in my_list: print(thing)
7 0 0 d n o B
0 0 7 B o n d
B o n d 0 0 7
700donB
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the following list: my_list = ["s", "Z", "e", "c", "c", "e", "r", "h", "e", "p", "t"] which program below would give the following output:
s e c r e t
for index in my_list: if index % 2 == 0: print(my_list[index])
for index in range(my_list): if index % 2 == 0: print(my_list[index])
for index in len(my_list): if index % 2 == 0: print(my_list[index])
for index in range(len(my_list)): if index % 2 == 0: print(my_list[index])
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which values entered into ‘my_list’ would print a value of ‘-1’ after the program has run?
my_list = [...] num = 0
for thing in my_list:
num = num - thing
print(num)
5, -10, 6
-10, -5, 6
-5, 10, 6
-5, 0, 10, 6
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following programs would produce the following output:
1. honey 2. bread 3. jelly 4. plates
my_list = ["honey", "bread", "jelly", "plates"] for index in range(len(my_list)): print(str(index) + ". " + my_list)
my_list = ["honey", "bread", "jelly", "plates"] for index in range(len(my_list)): print(str(index+1) + ". " + my_list[index])
my_list = ["honey", "bread", "jelly", "plates"] for index in my_list: print(str(index+1) + ". " + my_list[index])
my_list = ["honey", "bread", "jelly", "plates"] for index in len(my_list): print(str(index) + ". " + my_list[index])
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Guided Note 5.3 For Loop and List

Quiz
•
9th - 12th Grade
13 questions
PS Разминка перед циклами

Quiz
•
9th - 12th Grade
10 questions
Python Level 2- Lesson 2

Quiz
•
10th Grade
10 questions
Arrays

Quiz
•
10th - 12th Grade
20 questions
Python - lists,loops,basics

Quiz
•
9th - 11th Grade
10 questions
Advanced Python Iteration Quiz

Quiz
•
10th Grade
18 questions
Python 2D Lists Quiz

Quiz
•
10th Grade
20 questions
Arrays in Java

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade