Python - Lists, Dictionaries and Loops

Flashcard
•
Computers
•
9th - 12th Grade
•
Easy
Quizizz Content
Used 1+ times
FREE Resource
Student preview

23 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? Options: for x:, for x in grades, x in grades:, for x in grades:
Back
for x in grades:
7.
FLASHCARD QUESTION
Front
What does the following code do?
Back
It prints all numbers in range(0, 6) separately.
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
AP CSP Unit 7: Parameters, Returns, and Libraries

Flashcard
•
9th - 12th Grade
20 questions
HTML tags

Flashcard
•
9th - 12th Grade
20 questions
APCSP Unit 5 Review - Loops & Lists (code.org)

Flashcard
•
9th - 12th Grade
18 questions
Web Dev Test Review

Flashcard
•
9th - 12th Grade
20 questions
JavaScript Flashcard 2

Flashcard
•
9th - 12th Grade
15 questions
Web Dev Review

Flashcard
•
9th - 12th Grade
19 questions
Python Lists

Flashcard
•
11th Grade
20 questions
Lists & Tuples

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade