हिंदी

Which of the following occupies 2 bytes of storage? - Computer Applications

Advertisements
Advertisements

प्रश्न

Which of the following occupies 2 bytes of storage?

विकल्प

  • 25

  • AM

  • 35.2

  • \\

MCQ
रिक्त स्थान भरें
Advertisements

उत्तर

\\

Explanation:

The backslash here is a single character (a char), and in Java, a char uses 2 bytes (16 bits). The literal 25 is an int (4 bytes), 35.2 is a double (8 bytes) and “AM” is two chars (2 × 2 = 4 bytes).

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2025-2026 (March) Official Board Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×