MCQGeeks
0 : 0 : 1
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Quiz
Python
Python Developer Interview
Quiz 1
1
2
3
4
5
6
7
8
9
10
Q.1
What is the result of math.trunc(3.1)?
a) 3.0
b) 3
c) 0.1
d) 1
Q.2
What is the output of print(math.trunc(‘3.1’))?
a) 3
b) 3.0
c) error
d) none of the mentioned
Q.3
Which of the following is the same as math.exp(p)?
a) e ** p
b) math.e ** p
c) p ** e
d) p ** math.e
Q.4
What is returned by math.expm1(p)?
a) (math.e ** p) – 1
b) math.e ** (p – 1)
c) error
d) none of the mentioned
Q.5
What is the default base used when math.log(x) is found?
a) e
b) 10
c) 2
d) none of the mentioned
Q.6
Which of the following aren’t defined in the math module?
a) log2()
b) log10()
c) logx()
d) none of the mentioned
Q.7
What is returned by int(math.pow(2))?
a) 6
b) 9
c) error, third argument required
d) error, too many arguments
Q.8
What is output of print(math.pow(2))?
a) 9
b) 9.0
c) None
d) None of the mentioned
Q.9
What is the value of x if x = math.sqrt(4)?
a) 2
b) 2.0
c) (2, -2)
d) (2.0, -2.0)
Q.10
What does math.sqrt(X, Y) do?
a) calculate the Xth root of Y
b) calculate the Yth root of X
c) error
d) return a tuple with the square root of X and Y
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