
Python Lists Review
Authored by Amber Price
Education
6th - 8th Grade
Used 8+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which module allows you to create a random choice?
import
random
export
append
pop
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is the best description of a list in Python?
A list is a collection of data that has an order and can be changed.
A list is used for shopping in Python.
A list is a lot of variables in Python.
A list is a collection of data that cannot hold duplicated data and cannot be changed.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is the correct code for creating a list of names in Python?
nameList=Sophia, Olivia, Riley, Emma, Ava, Isabella
nameList=['Sophia', 'Olivia', 'Riley', 'Emma', 'Ava', 'Isabella']
nameList=('Sophia', 'Olivia', 'Riley', 'Emma', 'Ava', 'Isabella')
nameList=[Sophia, Olivia, Riley, Emma, Ava, Isabella]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
List items have an index number. In the following list which item has the index number of 3?
nameList=['Sophia', 'Olivia', 'Riley', 'Emma', 'Ava', 'Isabella']
Sophia
Olivia
Riley
Emma
Ava
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
List items have an index number. In the following list which item has the index number of 0?
nameList=['Sophia', 'Olivia', 'Riley', 'Emma', 'Ava', 'Isabella']
Sophia
Olivia
Riley
Emma
Ava
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these pieces of code would return the name "Isabella" from the following list?
nameList=['Sophia', 'Olivia', 'Riley', 'Emma', 'Ava', 'Isabella']
nameList[5]
nameList(5)
nameList.5
nameList[]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these pieces of code would return the name "Olivia" from the following list?
nameList=['Sophia', 'Olivia', 'Riley', 'Emma', 'Ava', 'Isabella']
nameList[1]
nameList(1)
nameList[2]
nameList(0)
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?