What is the output of the statement Math.pow(36, 6/5); ?

ICSE Class 10 Computer Applications PYQ · 2026 Paper · Section A

1(v)1 Mark · 2026 · Section A · 2026 Paper

What is the output of the statement Math.pow(36, 6/5); ?

Show SolutionHide Solution↓

36.0

Reason — In the expression Math.pow(36, 6/5), the division 6/5 is performed first using integer division, which results in 1 (not 1.2). Therefore, the expression becomes Math.pow(36, 1), which evaluates to 36.0 since the pow() method returns a double value.

← Previous questionNext question →

Browse the free Computer Applications sample bank