Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

math.pow(4, 1.0 / 2) returns ________. a 0 b 2.0 c 1 d 1.0 e 2

Question

math.pow(4, 1.0 / 2) returns ________.
a 0
b 2.0
c 1
d 1.0
e 2

Explanation:

Step1: Calculate the exponent

$1.0/2 = 0.5$

Step2: Calculate the power

$\text{Math.pow}(4,0.5)=4^{0.5}=\sqrt{4}=2$
Since in Java, Math.pow returns a double type, so it returns 2.0

Answer:

B. 2.0