Python - MCQ
Multiple Choice Questions
Python - Multiple Choice Questions (MCQ) - Data Structures in Python - Set 15
6. The Slice operation is performed on a list using
A). slice
B). : (colon)
C). .(dot)
D). - (hyphen)
View Answer
Correct: B
7. What is the output of

A). [1, 2, 3, 4, 6]
B). Error
C). None
D). [6,1,2,3,4]
View Answer
Correct: A
8. What is the output of

A). [1, 2, 3, 4, 6]
B). [6, 1, 2, 3, 4]
C). [1, 6, 2, 3, 4]
D). [1, 2, 6, 3, 4]
View Answer
Correct: D
9. What is the output of

A). [1, 2, 3, 4, 5, 6, 7, 8]
B). [1, 2, 6, 3, 4]
C). [5, 6, 7, 8, 1, 2, 3, 4]
D). error
View Answer
Correct: C
10. What is the output of

A). 4
B). [1, 2, 3, 4]
C). 5
D). error
View Answer
Correct: A