1.

The function pow(x,y,z) is evaluated as:(a) (x**y)**z(b) (x**y) / z(c) (x**y) % z(d) (x**y)*zThis question was posed to me by my school teacher while I was bunking the class.I would like to ask this question from Built-in Functions topic in section Dictionary, Functions and Built-in Functions of Python

Answer»

Correct OPTION is (c) (x**y) % z

To explain: The built-in function POW() can accept TWO or three ARGUMENTS. When it takes in two arguments, they are evaluated as x**y. When it takes in three arguments, they are evaluated as (x**y)%z.



Discussion

No Comment Found

Related InterviewSolutions