Python Data Types MCQ Questions and Answers
Q. What is the data type of the result of the expression 5 + 3?
A. IntegerB. Float
C. String
D. Boolean
Q. What is the data type of the result of the expression "Hello" + "World"?
A. IntegerB. Float
C. String
D. List
Q. What is the data type of the result of the expression [1, 2, 3] * 2?
A. IntegerB. List
C. Tuple
D. Dictionary
Q. What is the data type of the result of the expression (True and False)?
A. IntegerB. Float
C. String
D. Boolean
Q. What is the data type of the result of the expression {1: "One", 2: "Two"}?
A. IntegerB. Dictionary
C. Set
D. Tuple
Q. What is the data type of the result of the expression (1, 2, 3)?
A. IntegerB. List
C. Tuple
D. Set
Q. What is the data type of the result of the expression "5"?
A. IntegerB. Float
C. String
D. Boolean
Q. What is the data type of the result of the expression True + False?
A. IntegerB. Float
C. String
D. Boolean
Q. What is the data type of the result of the expression {1, 2, 3}?
A. IntegerB. List
C. Tuple
D. Set
Q. What is the data type of the result of the expression "5" + 3?
A. IntegerB. Float
C. String
D. Error (cannot be added)
Q. What is the data type of the result of the expression not True?
A. IntegerB. Float
C. String
D. Boolean
Q. What is the data type of the result of the expression [1] * 3?
A. IntegerB. List
C. Tuple
D. Set