1.

What is returned by int(math.pow(3, 2))?(a) 6(b) 9(c) error, third argument required(d) error, too many argumentsI had been asked this question in unit test.This interesting question is from Math in section Mapping Functions and Modules of Python

Answer» CORRECT ANSWER is (B) 9

The EXPLANATION: math.pow(a, b) RETURNS a ** b.


Discussion

No Comment Found

Related InterviewSolutions