
Chapter 9 - Chapter 10 Revision Question Python
Authored by Chong May
Information Technology (IT)
University
Used 44+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
45 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to define a list in Python?
list = (1, 2, 3)
list = {1, 2, 3}
list = [1, 2, 3]
list = <1, 2, 3>
2.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
What is the index of the first element in a list?
(a)
3.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
What does len([1, 2, 3, 4]) return?
(a)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to add an item at the end of a list?
add()
insert()
append()
extend()
5.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
What will be the output of this code?
(a)
6.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
What is the output of list(range(1, 5))?
(a)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does my_list[-1] return?
First item
Last item
Middle item
Error
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?