Computer Science
What value will be displayed on executing the following arithmetic expression?
x = math.pow (0,-4)
- 1
- 16
- DomainError
- None of these
Python Modules
1 Like
Answer
DomainError
Reason — The math.pow() function computes the power of a number. In math.pow(0, -4), the expression represents 0 −4, which results in DomainError.
Answered By
3 Likes
Related Questions
What is the value of x, if x = math.sqrt(25.0) ?
- (5, -5)
- 5
- 5.0
- (5.0, -5.0)
What value will be returned, if x = math.floor(-24.6) ?
- 24.6
- -24
- -25
- -24.6
What output will be displayed after executing the following code?
statistics.median([11, 22, 33, 44, 55, 66])
- 28.5
- 38.5
- 5.5
- 6.5
On executing the following code, what output will be displayed?
statistics.mode([2.5, 3.2, 3.3, 2.5, 8.1, 9.9, 2.5, 5.1])
- 2.5
- 3.2
- 5.1
- 8.1