stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Python Lists Battle Edition Flashcards | StudBud
Explore
/
Python Lists Battle Edition
Python Lists Battle Edition
19 terms
·
StudBud Administration
·
18 plays
Imported from external platform
Flashcards
19 cards
F
Practice quiz
P
Host live
L
Questions
19
Answers
1
What is the output of the following code segment?
Nothing because of an infinite loop
["Battle", "of", "the", "Classes"]
"BattleoftheClasses"
"Battle of the Classes"
2
Who has the best mural?
9th grade
10th grade
11th grade
12th grade
3
Which one of these examples shows the correct way to write a list?
listX = ['b', 'a', 't', 't', 'l', 'e']
listX = b, a, t, t, l, e
listX = ['b'+'a'+'t'+'t'+'l'+'e']
listX = ('b', 'a', 't', 't', 'l', 'e')
4
Which of the following is not a battle theme for the year 2023?
Sugar Rush
Wild Wild West
Fluorescent
Alice in Wonderland
5
What is stored in the variable k after the code segment below is run?
["dance", "trivia"]
["hallways", "dance", "trivia", 1]
["hallways", "dance"]
["hallways", "trivia"]
6
What is the fewest number of items that a list in Python can contain?
1
0
2
7
Which of the following events has been banned from Battle?
Jenga
Tug-of-War
Dodgeball
Musical Chairs
8
Who is going to WIN BATTLE?!
9th Grade
12th grade
10th grade
11th grade
9
What is the output of the following code?
7
5
4
6
10
What is stored in the variable x after the code segments below are run?
["WOW", "the", "Battle", "of"]
["Classes", "the", "Battle", "WOW"]
["WOW", "Classes", "the", "Battle", "of"]
["Classes", "the", "Battle", "of", "WOW"]
11
What is stored in the variable y after the code segments below are run?
["tug of war", "t-shirts", "pie eating", "trivia"]
["t-shirts", "pie eating", "trivia", "tug of war"]
["t-shirts", "tug of war", "trivia"]
["t-shirts", "tug of war", "pie eating", "trivia"]
12
Lists are immutable
False
True
13
Who had the best hallway?
10th grade
11th grade
12th grade
9th grade
14
What is the faculty theme for battle?
Football
Superbowl
Sports
Winning
15
What is stored in the variable k after the code segment below is run?
There will be an error
["hallways", "dance", "triviai"]
["hallways", "dance"]
["dance", "trivia"]
16
What would be the output from this program?
"grade"
12
[12]
["grade"]
17
True or False: One list can contain data of several different types (see example below)
True
False
18
What is printed by the following statements?
[11]
"battle"
[11, 12]
11
19
What is the output of the following code segment?
Nothing because of an infinite loop
["Battle", "of", "the", "Classes"]
"Battle of the Classes"
"BattleoftheClasses"