Python - MCQ
Multiple Choice Questions
Python - Multiple Choice Questions (MCQ) - Data Structures in Python - Set 14
1. Lists are
A). Immutable
B). Mutable
C). Both A & B
D). None of the above
View Answer
Correct: B
2. How to define an empty list
A). list[]
B). listname=[ ]
C). listname[]
D). list=()
View Answer
Correct: B
3. What is the output of list1=[1,2,3] print(list1[1])
A). 2
B). 1
C). 3
D). 0
View Answer
Correct: A
4. Which python function is used to return length?
A). len()
B). length()
C). obj.len
D). none of the mention
View Answer
Correct: A
5. Does python allow negative indexing?
A). Yes
B). No
C). Maybe
D).
View Answer
Correct: A