MCQGeeks
0 : 0 : 1
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Quiz
Python
Python Objective
Quiz 1
1
2
3
4
5
6
7
8
9
10
Q.1
What is returned by math.ceil(3.4)?
a) 3
b) 4
c) 4.0
d) 3.0
Q.2
What is the value returned by math.floor(3.4)?
a) 3
b) 4
c) 4.0
d) 3.0
Q.3
What will be the output of print(math.copysign(-1))?
a) 1
b) 1.0
c) -3
d) -3.0
Q.4
What is displayed on executing print(math.fabs(-3.4))?
a) -3.4
b) 3.4
c) 3
d) -3
Q.5
Is the output of the function abs() the same as that of the function math.fabs()?
a) sometimes
b) always
c) never
d) none of the mentioned
Q.6
What is the value returned by math.fact(6)?
a) 720
b) 6
c) [1, 2, 3, 6]
d) error
Q.7
What is the value of x if x = math.factorial(0)?
a) 0
b) 1
c) error
d) none of the mentioned
Q.8
What is math.factorial(4.0)?
a) 24
b) 1
c) error
d) none of the mentioned
Q.9
What will be the output of print(math.factorial(4.5))?
a) 24
b) 120
c) error
d) 24.0
Q.10
What is math.floor(0o10)?
a) 8
b) 10
c) 0
d) 9
0 h : 0 m : 1 s
1
2
3
4
5
6
7
8
9
10
Report Question
×
What's an issue?
Question is wrong
Answer is wrong
Other Reason
Want to elaborate a bit more? (optional)
Support mcqgeeks.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page