Python - Lists, Dictionaries and Loops

Python - Lists, Dictionaries and Loops

9th - 12th Grade

40 Qs

quiz-placeholder

Similar activities

Digital and Information Systems (VAC)

Digital and Information Systems (VAC)

12th Grade

42 Qs

MIL_1ST_QUIZ

MIL_1ST_QUIZ

12th Grade

35 Qs

TJBL WAN KLS 11 SINIU

TJBL WAN KLS 11 SINIU

11th Grade

45 Qs

Networking Essentials - Ch 4 Media

Networking Essentials - Ch 4 Media

11th - 12th Grade

44 Qs

Microsoft Excels: Formulas and Functions

Microsoft Excels: Formulas and Functions

12th Grade - University

45 Qs

123D DESIGN (ENGLISH)

123D DESIGN (ENGLISH)

10th Grade

36 Qs

Grade 8 Exam Quiz Practice

Grade 8 Exam Quiz Practice

8th - 9th Grade

44 Qs

Lat 2 kelas 9

Lat 2 kelas 9

11th Grade

35 Qs

Python - Lists, Dictionaries and Loops

Python - Lists, Dictionaries and Loops

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Roberto Frontera

Used 161+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Media Image

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

Media Image

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

Media Image

What will this code print?

6

1

pants

"pants": 6

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

Media Image

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.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?