What is the output of the following code segment in Java? int[] array = {1, 2, 3}; System.out.println(array[3]);;
Error : ArrayOutofBound
Oops!
Check
Okay!
Check
10
What will arr[2][1] return if arr = {{1,2}, {3,4}, {5,6}}?
6
Oops!
Check
Okay!
Check
thief
Give points!
5
10
15
20
25
fairy
Take points!
5
10
15
20
25
gift
Win 15 points!
Okay!
baam
Lose 25 points!
Oops!
10
True or False : Linear Search is faster then Binary Search
False
Oops!
Check
Okay!
Check
10
What is the index of the last row in int[5][3]?
4
Oops!
Check
Okay!
Check
10
The ith element in the array has an index _________
i-1
Oops!
Check
Okay!
Check
10
Calculate the total memory (in bytes) required to store a double array of size 6.
48
Oops!
Check
Okay!
Check
10
Assertion :An array can store elements of different data types. Reason: An array is a user-defined data type with multiple values of the same data type but a different memory index.