Using Indexes in Python Lists

Quiz
•
Computers
•
8th Grade
•
Easy

O Moore
Used 19+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
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
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
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
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
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
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
Similar Resources on Wayground
5 questions
Coding in AI - Quiz 1

Quiz
•
1st - 10th Grade
10 questions
Java Math

Quiz
•
1st - 12th Grade
14 questions
Spreadsheet Basics & Formula

Quiz
•
6th - 8th Grade
10 questions
Small Basic (Turtle)

Quiz
•
KG - University
10 questions
App Programming Project Quiz

Quiz
•
8th Grade
10 questions
1.1.4 Fetch Decode Execute Cycle

Quiz
•
1st - 10th Grade
11 questions
Components of MS Word screen

Quiz
•
6th - 8th Grade
10 questions
Databases

Quiz
•
3rd - 10th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
24 questions
Flinn Lab Safety Quiz

Quiz
•
5th - 8th Grade
15 questions
Wren Pride and School Procedures Worksheet

Quiz
•
8th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade
10 questions
Converting Repeating Decimals to Fractions

Quiz
•
8th Grade