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
15 questions
Gaming Lesson 2

Quiz
•
6th - 8th Grade
10 questions
J277 COM1 1.1 Systems Architecture

Quiz
•
8th Grade
8 questions
Preparing to Draw Shapes with Scratch

Quiz
•
7th - 9th Grade
15 questions
Algorithms

Quiz
•
7th - 10th Grade
10 questions
Unity Semester 1 - Quiz 1

Quiz
•
7th - 10th Grade
10 questions
Unity Semester 1 - Quiz 2

Quiz
•
7th - 9th Grade
15 questions
Variables Constants Datatypes

Quiz
•
8th - 12th Grade
9 questions
Computer Science Discoveries Unit 1

Quiz
•
7th - 8th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
15 questions
Computer Components Video

Interactive video
•
8th Grade
10 questions
Networking Devices and Their Functions

Interactive video
•
5th - 8th Grade
20 questions
Binary Numbers Quiz

Quiz
•
6th - 8th Grade