Python - Lists, Dictionaries and Loops

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Roberto Frontera
Used 147+ times
FREE Resource
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
Similar Resources on Wayground
40 questions
Python Revision Years 8&9 IGCSE

Quiz
•
9th - 12th Grade
35 questions
PLTW CSIM Lesson 1 Assessment

Quiz
•
5th - 9th Grade
40 questions
AP CSP Code.org Unit 5 Assessment 1 Review

Quiz
•
9th - 12th Grade
40 questions
AP Computer Science Principles Practice

Quiz
•
10th Grade
39 questions
Python ((SHIFT))

Quiz
•
10th Grade
40 questions
10th Grade 10 - IT Programming - 2nd Cycle Exam

Quiz
•
10th Grade - University
44 questions
SDD N5 Quiz

Quiz
•
12th Grade
45 questions
រំឮកមេរៀនPython

Quiz
•
11th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
19 questions
Mental Health Vocabulary Pre-test

Quiz
•
9th Grade