Python - Lists, Dictionaries and Loops
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Medium
Roberto Frontera
Used 153+ times
FREE Resource
Enhance your content in a minute
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
list[a:b] will return the portion of list starting with index a and ending before index b.
True
False
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the value of last_jedi after the following code is run?
["kylo", "rey", "finn", "luke"]
["kylo", "rey", "finn"]
3
4
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the value of authors after the following code is run?
["Martin", "Rowling", "Tolkien"]
["Martin"]
["Rowling"]
["Tolkien", "Rowling", "Martin"]
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will this code print?
6
1
pants
"pants": 6
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the value of colors after the following code is run?
["light blue", "pink"]
["light blue", "yellow", "pink"]
["pink", "yellow"]
["light blue", "yellow"]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to write a for loop to iterate through the list grades?
for variable:
for variable in grades
variable in grades:
for variable in grades:
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the following code do?
It prints [0, 6].
It prints all numbers in range(0, 6) in a list.
It prints all numbers in range(0, 6) separately.
It prints True or False.
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
40 questions
Personal and Business Letters
Quiz
•
9th Grade
43 questions
Bài 4, 6 chủ đề F tin 10
Quiz
•
10th Grade
35 questions
Excel 2016 Introduction
Quiz
•
10th - 12th Grade
38 questions
ÔN TẬP GK2 - TIN HỌC 12
Quiz
•
12th Grade
45 questions
Ujian IoT PTS 2024 45 Soal
Quiz
•
11th Grade - University
36 questions
sql basics vaishali
Quiz
•
11th - 12th Grade
40 questions
PowerPoint 1
Quiz
•
6th - 12th Grade
40 questions
SOAL SUMATIF 2
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
