Python Lists
Quiz
•
Computers
•
7th - 11th Grade
•
Practice Problem
•
Medium
M Duce
Used 162+ times
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is a list?
fruit = ["apples", "oranges", "bananas"]
fruit = "apples", "oranges", "bananas"
fruit = {"apples", "oranges", "bananas"}
fruit = ("apples", "oranges", "bananas")
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you want to create an empty list called colours, which of the following pieces of code is correct?
colours = { }
colours = ( )
colours = [ ]
colors = [ ]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Each item in a list has an "address" or index. The first index in a Python list is what?
1
0
a
A
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the position of the name 'Paula' in the following list:
names = ["Paul","Phillip","Paula","Phillipa"]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the position of the name "Robert" in the following list:
0
1
2
3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What output will this code produce?
['France', 'Wales', 'England']
France
France Wales England
France
France, Wales, England
Wales
['France', 'Wales', 'England']
Wales
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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?
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
Python with DataScience
Quiz
•
7th Grade - University
13 questions
Software and Computer Care Quiz
Quiz
•
9th Grade
10 questions
Podstawy Pythona
Quiz
•
9th - 12th Grade
11 questions
Quiz 1 - Hardware and Software
Quiz
•
9th - 12th Grade
13 questions
Python quiz
Quiz
•
7th Grade
10 questions
Pseudocode WHILE Loops
Quiz
•
10th - 12th Grade
10 questions
Berpikir Komputasional Kelas IX (Review Materi)
Quiz
•
9th Grade
9 questions
1.5.1 - Starter Task/Social Engineering Starter (Dg)
Quiz
•
11th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
