10.4 Python Lists

10.4 Python Lists

Assessment

Flashcard

Computers

7th - 10th Grade

Practice Problem

Hard

Created by

Wayground Content

Used 1+ times

FREE Resource

Student preview

quiz-placeholder

14 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What output will this code produce? Options: blue, green, red, error

Media Image

Back

red

2.

FLASHCARD QUESTION

Front

Is this the correct code for a list? register = {"Sam", "Pheobe", "Georgia", "Richard"}

Back

No

3.

FLASHCARD QUESTION

Front

What is the index of “grape” in the list [“apple”, “grape”, “orange”, “watermelon”]?

Back

1

4.

FLASHCARD QUESTION

Front

What is the output of program below?
bicycles = ['trek', 'cannondale', 'redline', 'specialized']
print(bicycles[-1])

Back

specialized

5.

FLASHCARD QUESTION

Front

What letter will be printed on the screen after running this code:

Media Image

Back

t

6.

FLASHCARD QUESTION

Front

What is the position of the name "Robert" in the following list: 0, 1, 2, 3

Media Image

Back

2

7.

FLASHCARD QUESTION

Front

In the following code, "city" is an example of a what? Options: List, Loop, Variable, Array

Media Image

Back

Variable

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?