Loops Python
Flashcard
•
Computers
•
9th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

15 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What will be displayed on the screen when the following code is run?
esports = ["Donkey Kong", "Galaga", "Pac Man"]
print( esports[1] )
Back
Galaga
2.
FLASHCARD QUESTION
Front
What is wrong with the following code? esports = ("Donkey Kong", "Galaga", "Pac Man") esports[1] = "Centipede"
Back
You cannot update an item in a tuple
3.
FLASHCARD QUESTION
Front
Given a list with 3 items, what is the lowest and highest valid index number into that list?
Back
0 and 2
4.
FLASHCARD QUESTION
Front
Given a list named "esports", which of the following statements will access only the first and second items in that list? Options: esports(0:1), esports(0:3), esports[0:2], esports.range(0,2)
Back
esports[0:2]
5.
FLASHCARD QUESTION
Front
What is displayed to the screen when the following code runs?
esports = ["Donkey Kong", "Galaga", "Pac Man"]
esports.reverse()
print(esports)
Back
['Pac Man', 'Galaga', 'Donkey Kong']
6.
FLASHCARD QUESTION
Front
What is displayed to the screen when the following code runs?
esports = ["Donkey Kong", "Galaga", "Pac Man"]
esports.insert(0,"Centipede")
print(esports)
Back
['Centipede', 'Donkey Kong', 'Galaga', 'Pac Man']
7.
FLASHCARD QUESTION
Front
What is displayed on the screen when the following code runs?
esports = ["Donkey Kong", "Galaga", "Pac Man"]
if ("Galaga" in esports):
print("Found it")
else:
print("Not here")
Back
Found it
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
L. Political Parties
Flashcard
•
9th Grade
15 questions
Shrek Flashcard
Flashcard
•
9th Grade
9 questions
CE5a Political Parties
Flashcard
•
8th Grade
14 questions
Characterization
Flashcard
•
9th Grade
14 questions
Trivia
Flashcard
•
10th Grade
11 questions
Películas infantiles
Flashcard
•
KG
12 questions
Retro Games
Flashcard
•
8th Grade
12 questions
L. Political Parties
Flashcard
•
9th Grade
Popular Resources on Wayground
10 questions
Video Games
Quiz
•
6th - 12th Grade
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition
Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12
Lesson
•
11th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques
Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro
Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems
Interactive video
•
7th - 12th Grade