Computer Applications
Which of the following is user-defined data type?

- only 1
- 1 and 3
- only 2
- only 4
Values & Data Types Java
6 Likes
Answer
1 and 3
Reason — A user-defined data type is a data type defined by the user. In the given options, array and class are user-defined data types because they are created by the user to store multiple values or define their own structure. double and boolean are predefined (primitive) data types.
Answered By
2 Likes
Related Questions
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]
Select the infinite loop:
- for(int i = 1; i <= 10; i++)
- for(int i = 2; i != 0; i -= 3)
- for(int i = 5; i <= 5; i++)
- for(int i = 1; i >= 1; i--)
The output of
Math.max(-7, Math.min(-5, -4))is:- -5
- -4
- -7
- error