Python - Lists, Dictionaries and Loops

Python - Lists, Dictionaries and Loops

Assessment

Flashcard

Computers

9th - 12th Grade

Easy

Created by

Quizizz Content

Used 1+ times

FREE Resource

Student preview

quiz-placeholder

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?