What is the output of print(type(5 / 2))?
Show answerHide answer
Correct answer: (C) <class 'float'>
Explanation
/ always gives a float in Python 3.
Correct answer: (C) <class 'float'>
Explanation
/ always gives a float in Python 3.
This is question 142 of DSSSB TGT Computer Science Full Mock Test 5. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.