System.out.println('Z' + 32); will display:

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

1(ii)1 Mark · 2025 · Section A · 2025 Paper

System.out.println('Z' + 32); will display:

Show SolutionHide Solution↓

122

Reason — In the statement System.out.println('Z' + 32);, the character 'Z' is converted to its ASCII value 90, and then 32 is added to it, giving the result 122. Since the + operator with a character and an integer results in an integer, the output displayed will be 122.

← Previous questionNext question →

Browse the free Computer Applications sample bank