Python List Quiz

Python List Quiz

Assessment

Passage

Computers

8th Grade

Medium

Created by

Quizizz Content

Used 2+ 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

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?