Hello Friends in this article we will discuss about Java Arrays Multiple Choice questions | Java Arrays Objective type Questions and Answers PDF | java array mcq questions and answers | mcq on arrays in java
1.What happens if we try to access elements outside the array size In Java?
- NullPointerException
- ArrayIndexOutOfBoundsException
- IndexOutOfBoundsException
- ClassCastException
Ans : 2
2.What are arrays of arrays with each element of the array holding the reference of other arrays?
- No Dimensional
- Two Dimensional
- Multidimensional
- None of these
Ans : 3
Explain : Multidimensional arrays are arrays of arrays with each element of the array holding the reference of other arrays
3.Which array are also known as Jagged Arrays?
- No Dimensional
- Two Dimensional
- Multidimensional
- None of these
Ans : 3
Explain : Multidimensional arrays are also known as Jagged Arrays.
4.Can we also pass arrays to methods in Java?
- Yes
- No
Ans : 1
Explain : we can also pass arrays to methods as Jagged Arrays in Java.
5.In Which type of array can be of different sizes?
- No Dimensional
- Two Dimensional
- Multidimensional
- Jagged Array
Ans : 4
Explain : In Jagged type of array can be of different sizes.
6.Default Array value of int type is?
- No
- Null
- 0
- None of these
Ans : 3
Explain : Default array value of int type is 0.
7.Default Array value of String type is?
- No
- Null
- 0
- None of these
Ans : 2
Explain : Default array value of int type is Null.
You can also read :
Array Multiple Choice Questions