Computer Applications
double x[] = {2.5, 4.5, 5.5, 6.4}; occupies …………… bytes.
- 16
- 4
- 8
- 32
Values & Data Types Java
10 Likes
Answer
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.
Answered By
7 Likes
Related Questions
Character class methods are found in the package called:
- java.util
- java.lang
- java.awt
- java.io
System.out.println('Z' + 32);will display:- z
- Z
- 122
- 154
The output of 42 / 6 % 2 is:
- 1
- 10
- 2
- 0
Consider the two-dimensional array P[2][3], of peripherals (input/output devices) given below, state the index of the device Barcode Scanner.
![Consider the two-dimensional array P[2][3], of peripherals (input/output devices) given below, state the index of the device Barcode Scanner. ICSE 2025 Computer Applications Solved Question Paper.](https://cdn1.knowledgeboat.com/img/abp10/1/q1-5-icse-computer-board-2025-year-1134x730.png)
- P[1][1]
- P[0][1]
- P[1][2]
- P[0][0]