KnowledgeBoat Logo
|

Computer Science

What value will be displayed on executing the following arithmetic expression?

x = math.pow (0,-4)

  1. 1
  2. 16
  3. DomainError
  4. 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

2 Likes


Related Questions