
Creating Lists in Python_v1
Authored by Kevin Tinsley
Instructional Technology
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
20 questions
AUT104 Week 1 Quiz Wheels & Tires
Quiz
•
University
20 questions
Antenna and Wave Propagation
Quiz
•
University
15 questions
Final Tes Teknologi Informasi
Quiz
•
University
20 questions
ICT709 Convergence Technology
Quiz
•
University
15 questions
Car parts
Quiz
•
10th Grade - University
20 questions
Casting
Quiz
•
University
15 questions
Light Vehicle Basic Braking Systems Revision Q&A
Quiz
•
12th Grade - University
15 questions
cars
Quiz
•
KG - Professional Dev...
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
Discover more resources for Instructional Technology
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University