1.

What is the result of math.trunc(3.1)?(a) 3.0(b) 3(c) 0.1(d) 1This question was addressed to me in an interview for internship.I would like to ask this question from Math in chapter Mapping Functions and Modules of Python

Answer»

Correct OPTION is (b) 3

Explanation: The INTEGRAL PART of the floating POINT NUMBER is returned.



Discussion

No Comment Found

Related InterviewSolutions