Computer Applications
The output of 42 / 6 % 2 is:
- 1
- 10
- 2
- 0
Java Operators
6 Likes
Answer
1
Reason — According to operator precedence in Java, division (/) and modulus (%) have the same priority and are evaluated from left to right.
42 / 6 % 2
= 7 % 2
= 1
Answered By
3 Likes
Related Questions
System.out.println('Z' + 32);will display:- z
- Z
- 122
- 154
double x[] = {2.5, 4.5, 5.5, 6.4}; occupies …………… bytes.
- 16
- 4
- 8
- 32
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]
Which of the following is user-defined data type?

- only 1
- 1 and 3
- only 2
- only 4