Which of the following occupies 2 bytes of storage?

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

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

Which of the following occupies 2 bytes of storage?

Show SolutionHide Solution↓

\\

Reason —

  1. 25 is an integer literal. In Java, an int occupies 4 bytes, hence it is not correct.
  2. AM represents a string consisting of two characters. Each character occupies 2 bytes, so total memory required is 4 bytes, hence it is not correct.
  3. 35.2 is a double literal. In Java, a double occupies 8 bytes, hence it is not correct.
  4. \\ represents a single character (backslash) using an escape sequence ('\\'). In Java, a char occupies 2 bytes, hence it is correct.
← Previous questionNext question →

Browse the free Computer Applications sample bank