The number of bytes occupied by a character array of four rows and three columns are:

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

1(xi)1 Mark · 2024 · Section A · 2024 Paper

The number of bytes occupied by a character array of four rows and three columns are:

Show SolutionHide Solution↓

24

Reason — In Java, a character (char) takes 2 bytes because Java uses Unicode encoding.

Given:
Character Array: 4 rows and 3 columns
Total Elements = 4 × 3 = 12 characters

Memory Calculation:
Each character = 2 bytes
Total Memory = 12 × 2 = 24 bytes

← Previous questionNext question →

Browse the free Computer Applications sample bank