Vidyalelo
Python · Q51

Python Built

Programming · Python · question 51

Q51

The function pow(x,y,z) is evaluated as:

A.
(x**y)**z
B.
(x**y) / z
C.
(x**y) % z
Answer
D.
(x**y)*z

Answer: Option C

Solution

Answer: Option C
Solution:
The pow() function in Python is used to raise a number x to the power of y, optionally taking a modulo z. The expression pow(x, y, z) is equivalent to (x ** y) % z, which means x raised to the power of y, then the result is taken modulo z.