
Creating Lists in Python_v1
Quiz
•
Instructional Technology
•
University
•
Easy
Kevin Tinsley
Used 2+ times
FREE Resource
Enhance your content in a minute
19 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for creating a list in Python?
list = [1, 2, 3]
list = {1, 2, 3}
list = (1, 2, 3)
list = <1, 2, 3>
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a list of float values?
[48.0, 30.5, 20.2, 100.0, 42.0]
["staff", "hat", "shoes"]
["The Holy Grail", 1975, 9.99]
[]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify the list that contains string values.
[48.0, 30.5, 20.2, 100.0, 42.0]
["staff", "hat", "shoes"]
["The Holy Grail", 1975, 9.99]
[]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of values does the list 'movie' contain?
Strings
Integers
Floats
Booleans
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet? temps = [48.0, 30.5, 20.2, 100.0, 42.0] temp = temps[0]
A) 48.0
B) 30.5
C) 20.2
D) IndexError
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What error will occur if you try to access temps[5] in the following list? temps = [48.0, 30.5, 20.2, 100.0, 42.0]
IndexError: index out of range
TypeError: list indices must be integers
ValueError: invalid literal for int()
KeyError: 5
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the value of 'item' after executing the following code? inventory = ["staff", "hat", "shoes", "bread", "potion", "scroll"] item = inventory[3]
staff
hat
bread
scroll
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
power system protection
Quiz
•
University
16 questions
POWER PLANT ENGINEERING
Quiz
•
University
14 questions
Digital Nomads
Quiz
•
University
15 questions
Genres of Literature
Quiz
•
8th Grade - University
15 questions
Textile Technology 1
Quiz
•
University
20 questions
1er Parcial
Quiz
•
University
16 questions
Photoshop tools
Quiz
•
6th Grade - Professio...
20 questions
ASJ
Quiz
•
12th Grade - University
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
Discover more resources for Instructional Technology
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
7 questions
Central Idea of Informational Text
Interactive video
•
4th Grade - University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
39 questions
Unit 7 Key Terms
Quiz
•
11th Grade - University
7 questions
Transition Words and Phrases
Interactive video
•
4th Grade - University
18 questions
Plotting Points on the Coordinate Plane
Quiz
•
KG - University
5 questions
Declaration of Independence
Interactive video
•
4th Grade - University
