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

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

1(iii)1 Mark · 2025 · Section A · 2025 Paper

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

Show SolutionHide Solution↓

32

Reason — The double data type in Java occupies 8 bytes of memory. In the array double x[] = {2.5, 4.5, 5.5, 6.4};, there are 4 elements, and each element takes 8 bytes. So, the total memory occupied is 4 × 8 = 32 bytes.

← Previous questionNext question →

Browse the free Computer Applications sample bank