Python - Lists, Dictionaries and Loops

Flashcard
•
Computers
•
9th - 12th Grade
•
Easy
Wayground 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
20 questions
CSP Unit 4 Review

Flashcard
•
9th - 12th Grade
20 questions
Scratch Test - New

Flashcard
•
9th - 12th Grade
20 questions
Midterm YWLA AP CSP

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

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

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

Flashcard
•
9th - 12th Grade
21 questions
AP CSP Unit 7: Parameters, Returns, and Libraries

Flashcard
•
9th - 12th Grade
20 questions
Python Basics Review (TSK)

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade