
Python Semester 1 Check Point
Flashcard
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

42 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of these correctly represents a list? Options: colors = ["red", "blue", "green"], colors = "red", "blue", "green", colors = {"red", "blue", "green"}, colors = ("red", "blue", "green")
Back
colors = ["red", "blue", "green"]
2.
FLASHCARD QUESTION
Front
Each item in a list has an "address" or index. The first index in a Python list is what?
Back
0
3.
FLASHCARD QUESTION
Front
What is the position of the name 'Phillip' in the following list:
names = ["Paul","Phillip","Paula","Phillipa"]
Back
2
4.
FLASHCARD QUESTION
Front
In a list called "players", if you wanted to add a player called "Bob" to the list, which of the following examples of code would be correct? Options: players.add("Bob"), player.append("Bob"), players.append("Bob"), players.addend("Bob")
Back
players.append("Bob")
5.
FLASHCARD QUESTION
Front
In the following list, which item has the index number of 3?
["John", "Harry", "Jesse", "John", "Harry", "Harry"]
Back
"John"
6.
FLASHCARD QUESTION
Front
What does the '#' allow you to do?
Back
Comment on code
7.
FLASHCARD QUESTION
Front
An empty list can be declared as
Back
fruitList = []
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?