Python - MCQ

Multiple Choice Questions


Share with a Friend

 

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

21. What is the output of 

A). {'brand': 'Ford', 'model': 'Mustang', 'year': 2018}
B). {'brand': 'Ford', 'model': 'Mustang', 'year': 1964}
C). ERROR
View Answer
Correct: A



22. What is the output of *

A). Yes, 'model' is one of the keys in the thisdict dictionary
B). No output
C). Error
D).
View Answer
Correct: A



23. What is the output of 

A). 6
B). 3
C). error
D). 2
View Answer
Correct: B



24. What is the output of 

A). {'brand': 'Ford', 'model': 'Mustang', 'year': 1964, 'color': 'red'}
B). {'brand': 'Ford', 'model': 'Mustang', 'year': 1964}
C). {'brand': 'Ford', 'model': 'Mustang', 'year': 1964, 'color': '}
D). error
View Answer
Correct: A



25. What is the output of 

A). name 'thisdict' is not defined
B). {'brand': 'Ford', 'model': 'Mustang', 'year': 1964, 'color': 'red'}
C). {'brand': 'Ford', 'model': 'Mustang', 'year': 1964}
View Answer
Correct: A



 
 
 
   
   
   
UltraInfo Technologies
ITDeveloper