ICSE Class 10 Computer Applications
Question 24 of 76
Revising Basic Java Concepts — Question 28
Back to all questions 28
Question Question 14(l)
State the value and type of each expression.
Math.pow(4, -2)The output value is 0.0625. The type of expression is double.
Explanation
Math.pow(x, y) returns x raised to the power of y as a double value. Math.pow(4, -2) is equivalent to 4-2 i.e., = 0.0625. Hence, output is 0.0625 and data type of result is double.