QUESTION IMAGE
Question
math.pow(4, 1.0 / 2) returns ________.
a 0
b 2.0
c 1
d 1.0
e 2
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
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
B. 2.0