Using Indexes in Python Lists

Using Indexes in Python Lists

8th Grade

10 Qs

quiz-placeholder

Similar activities

Python Selection

Python Selection

8th - 9th Grade

10 Qs

Riddles

Riddles

8th - 9th Grade

10 Qs

Control Structures - Selection in Python

Control Structures - Selection in Python

8th Grade - University

11 Qs

Computer Science Discoveries Unit 1

Computer Science Discoveries Unit 1

7th - 8th Grade

9 Qs

S3 Spreadsheets

S3 Spreadsheets

8th Grade

11 Qs

Python Basics

Python Basics

KG - University

15 Qs

Excel Spreadsheet

Excel Spreadsheet

8th Grade

8 Qs

Python Math

Python Math

1st - 12th Grade

10 Qs

Using Indexes in Python Lists

Using Indexes in Python Lists

Assessment

Quiz

Computers

8th Grade

Easy

Created by

O Moore

Used 19+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

days = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]

print(days[0])

When this program is executed, what will be displayed on the screen?

Tuesday

Friday

Monday

Wednesday

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

days = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]

print(days[1])

When this program is executed, what will be displayed on the screen?

Tuesday

Friday

Monday

Wednesday

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

days = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]

print(days[4])

When this program is executed, what will be displayed on the screen?

Tuesday

Friday

Monday

Wednesday

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

days = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]

print(days[7])

When this program is executed, what will be displayed on the screen?

Tuesday

Friday

An IndexError will occur.

Wednesday

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

days = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]

day = 3

print(days[day])

When this program is executed, what will be displayed on the screen?

Tuesday

Friday

Tuesday

Thursday

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

days = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]

day = 3

print(days[day-1])

When this program is executed, what will be displayed on the screen?

Tuesday

Friday

Tuesday

Wednesday

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

names = ["Peter", "Sarah", "John", "Kirsty", "Leah", "Anshika", "Mo"]

name = 3

print(names[name])

When this program is executed, what will be displayed on the screen?

Sarah

Kirsty

Mo

Anshika

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?