Python - Lists, Dictionaries and Loops

Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

40 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Does list[a:b] return the portion of list starting with index a and ending before index b?
Back
True
2.
FLASHCARD QUESTION
Front
What will be the value of last_jedi after the following code is run? Options: ["kylo", "rey", "finn", "luke"], ["kylo", "rey", "finn"], [3], [4]
Back
["kylo", "rey", "finn"]
3.
FLASHCARD QUESTION
Front
What will be the value of authors after the following code is run? Options: ["Martin", "Rowling", "Tolkien"], ["Martin"], ["Rowling"], ["Tolkien", "Rowling", "Martin"]
Back
["Martin", "Rowling", "Tolkien"]
4.
FLASHCARD QUESTION
Front
What will this code print? Options: 6, 1, pants, "pants": 6
Back
6
5.
FLASHCARD QUESTION
Front
What will be the value of colors after the following code is run?
Back
light blue, pink
6.
FLASHCARD QUESTION
Front
What is the correct syntax to write a for loop to iterate through the list grades?
Back
for variable in grades:
7.
FLASHCARD QUESTION
Front
What does the following code do? Options: 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.
Back
It prints all numbers in range(0, 6) separately.
Create a free account and access millions of resources
Similar Resources on Wayground
37 questions
AP CSP - Unit 4 Code.org Review

Flashcard
•
9th - 12th Grade
37 questions
Karel Review

Flashcard
•
9th - 12th Grade
37 questions
PLTW CSP Fall Exam 2024

Flashcard
•
9th - 12th Grade
36 questions
APCSP Unit 2 Review

Flashcard
•
9th - 12th Grade
34 questions
AP Computer Science Principles Review

Flashcard
•
9th - 12th Grade
34 questions
Computer Science I Midterm Review (AKHS)

Flashcard
•
9th - 12th Grade
38 questions
Final Exam Review

Flashcard
•
9th - 12th Grade
37 questions
AP CSP - Unit 4 Code.org Review

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
Discover more resources for Computers
50 questions
Trivia 7/25

Quiz
•
12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
6 questions
RL.10.1 Cite Evidence

Quiz
•
10th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
14 questions
Algebra 1 SOL Review #1

Quiz
•
9th Grade