Python - MCQ

Multiple Choice Questions


Share with a Friend

 

Python - Multiple Choice Questions (MCQ) - Data Structures in Python - Set 17

16. Does the python set have duplicate elements? 
A). Yes
B). No
C). Maybe
View Answer
Correct: B



17. Does the set supports indexing 
A). Yes
B). No
C). Maybe
View Answer
Correct: B



18. Is slicing allowed in Set 
A). allowed
B). not allowed
View Answer
Correct: B



19. What is the output of 

A). {1, 2, 3, 4, 5, 6, 7, 8}
B). {1, 2, 3, 4, 5, 4, 5, 6, 7, 8}
C). {1, 2, 3, 4, 4, 5, 6, 7, 8}
D). error
View Answer
Correct: A



20. Python dictionaries are ______ 
A). Mutable
B). Immutable
View Answer
Correct: A



 
 
 
   
   
   
UltraInfo Technologies
ITDeveloper