ICSE Class 10 Computer Applications Question 3 of 30

Solved 2025 Specimen Paper ICSE Class 10 Computer Applications — Question 3

Back to all questions
3
Question

Question 1(iii)

The size of '\n' is:

  1. 2 bytes
  2. 4 bytes
  3. 8 bytes
  4. 16 bytes
Answer

2 bytes

Reason — In Java, \n (newline character) is a character literal. All character literals in Java, including escape sequences like \n, are stored as char data type, which occupies 2 bytes (16 bits) in memory.