Loops Python
Flashcard
•
Computers
•
9th Grade
•
Practice Problem
•
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Avaliação 8º ANO
Flashcard
•
8th Grade
11 questions
Daily Activities and Time Expressions
Flashcard
•
9th Grade
13 questions
The First Americans and Their Civilizations
Flashcard
•
9th Grade
11 questions
Geometry Module 2 Vocabulary
Flashcard
•
9th - 10th Grade
12 questions
maps writing
Flashcard
•
10th Grade
8 questions
Graphic Novels Vocabulary
Flashcard
•
7th Grade
15 questions
Exploring the Foundations of Science
Flashcard
•
9th Grade
10 questions
Basic Concepts of Probability
Flashcard
•
8th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade