निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What will be the output of the following Python code ?
from math import *
ceil(3.4) A
4
B
3
C
3.5
D
None of these
Explanation
The correct answer is:
(A) 4
Explanation:
- The
ceil()function from themathmodule returns the smallest integer greater than or equal to the given number. - For
ceil(3.4), the smallest integer greater than or equal to3.4is4.
So, the output of the code ceil(3.4) is 4.
Output:
(A) 4
Correct Answer: A) 4