English

The number of bits occupied by the value ‘a’ are:

Advertisements
Advertisements

Question

The number of bits occupied by the value ‘a’ are:

Options

  • 1 bit

  • 2 bits

  • 4 bits

  • 16 bits

MCQ
Advertisements

Solution

16 bits

Explanation:

The character 'a' is stored as a char in Java, and a char occupies 16 bits (2 bytes) because it uses the Unicode character set.
Therefore, the correct answer is (d) 16 bits.

shaalaa.com
Data Types
  Is there an error in this question or solution?
Chapter 1: Revision of Class 9 Syllabus - Exercises [Page 44]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 1 Revision of Class 9 Syllabus
Exercises | Q 1. (xxxii) | Page 44
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×