
Python List Quiz

Passage
•
Computers
•
8th Grade
•
Medium
Wayground 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
Similar Resources on Wayground
14 questions
Python Error Handling Quiz

Passage
•
7th Grade
12 questions
American Revolution Day 12

Passage
•
8th Grade
11 questions
Scattered Plot and Line of Best Fit

Passage
•
8th Grade
16 questions
Quiz on 'The Outsiders' Chapters 9-12

Passage
•
8th Grade
11 questions
EU Spice trade/New Word Source Reading Quiz

Passage
•
8th Grade
11 questions
Chapter 1 Quiz: Understanding Computers

Passage
•
8th Grade
14 questions
GL - English 7th grade ( quiz 1)

Passage
•
7th Grade
16 questions
Line and Paragraph Spacing - GCFGlobal (15)

Passage
•
8th Grade
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
10 questions
Afterschool Activities & Sports

Quiz
•
6th - 8th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
15 questions
Cool Tool:Chromebook

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

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

Quiz
•
3rd Grade
20 questions
Bullying

Quiz
•
7th Grade
18 questions
7SS - 30a - Budgeting

Quiz
•
6th - 8th Grade