Explore topic-wise MCQs in Technical MCQs.

This section includes 10 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.

1.

In java, array elements are stored in ________ memory locations.

A. Random
B. Sequential
C. Sequential & Random
D. Binary search
E.
Answer» C. Sequential & Random
2.

Which of the following is advantage of java array?

A. Code Optimization
B. Random access
C. Size No-Limit
D. Both A and B
Answer» B. Random access
3.

We can calculate the length of an array using ________.

A. sizeof(array)
B. array.len
C. array.length
D. array.sizeof()
Answer» D. array.sizeof()
4.

Which of the following is used to declare,construct, and initlaize an array?

A. int arr [] [] = {1, 2, 3, 4};
B. int [] arr = (1, 2, 3);
C. int [] arr = {};
D. int arr [] = {1, 2, 3};
Answer» E.
5.

Index in array start with ______.

A. -1
B. 0
C. 1
D. infinite
Answer» C. 1
6.

Which of the following is an incorrect array declaration?

A. int [] arr = new int[5].
B. int arr[] = new int[5].
C. int arr[] = new int[5].
D. int arr[] = int [5] new
Answer» E.
7.

Java Array can allocate __________.

A. Dynamic Memory
B. Static Memory
C. Both A and B
D. None of the above
Answer» C. Both A and B
8.

At time of array initialization which is necessary to specify?

A. Row
B. Column
C. Row and Column
D. None of the above
Answer» B. Column
9.

Array data access using _____.

A. Operator
B. Variable
C. index
D. Pointer
Answer» D. Pointer
10.

Java array is a collection of ________.

A. similar type of elements
B. different type of element
C. heterogeneous data
D. Both A and C
Answer» B. different type of element