MCQ Single Best Answer Easy

Qdouble x[] = {2.5, 4.5, 5.5, 6.4}; occupies ___ bytes.

ID: #24151 ICSE Computer Application - Class X - 2025 PYQ 240 views
Question Info
#24151Q ID
EasyDifficulty
ICSE Computer Application - Class X - 2025 PYQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 16
  • B 4
  • C 8
  • D 32
Correct Answer: Option D

Explanation

Each double in Java occupies 8 bytes, and the array contains 4 elements.

Total memory occupied = 8 bytes × 4 = 32 bytes

Correct answer: (d) 32

Share This Question

Challenge a friend or share with your study group.