Python List Quiz

Python List Quiz

Assessment

Passage

Computers

8th Grade

Practice Problem

Medium

Created by

Wayground Content

Used 3+ times

FREE Resource

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What day of the week is represented by days[3] in the given Python list?

Monday

Tuesday

Thursday

Friday

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output when the following lines of code are executed? index = 1

item = days[index+1]

print(index, item)

1 Tuesday

1 Wednesday

2 Thursday

2 Wednesday

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Based on the given Python list, which index should be used to display 'Saturday'?

5

6

7

4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If the user types 1 on the keyboard, what will be the output of this program when it is executed?

It's a rocky planet

The second letter is e

The second letter is u

IndexError

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If the user types 3 on the keyboard, what will be the output of this program when it is executed?

It's a rocky planet

The second letter is a

The second letter is r

IndexError

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose that the elif in line 8 is modified to an if. If the user types 1 on the keyboard, what will be the output of this program when it is executed?

It's a rocky planet

The second letter is e

The second letter is u

Both A and B

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the program if the variable 'letter' is set to 'c'?

2

3

'd'

'c' + 1

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?

Discover more resources for Computers