
Python Quiz: Lists, Tuples, and Strings
Authored by Renu Popli
Engineering
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
56 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to create a list in Python?
list = [1, 2, 3]
list = (1, 2, 3)
list = {1, 2, 3}
list = <1,2,3>
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method adds an element at the end of a list?
append()
add()
insert()
extend()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following reverses a list in place?
list.reverse()
reversed(list)
list[::-1]
list.flip()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these statements is true about tuples?
Tuples are immutable
Tuples are mutable
Tuples can be changed
Tuples cannot be indexed
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Strings in Python are _______.
Immutable
Mutable
Dynamic
Unhashable
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to create a list in Python?
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of: print([1,2,3] + [4,5])
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?