The output of the statement:

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

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

The output of the statement:

System.out.println(Character.toUpperCase('b') + 2); is:

Show SolutionHide Solution↓

68

Reason — The method Character.toUpperCase('b') converts 'b' to 'B'. In Java, when a character is used in an arithmetic expression, it is converted to its ASCII (Unicode) value. The ASCII value of 'B' is 66, and adding 2 gives 66 + 2 = 68. Hence, the output is 68.

← Previous questionNext question →

Browse the free Computer Applications sample bank