

MCQOPTIONS
Saved Bookmarks
This section includes 3 Mcqs, each offering curated multiple-choice questions to sharpen your Data Structure knowledge and support exam preparation. Choose a topic below to get started.
1. |
Elements in an array are accessed _____________ |
A. | randomly |
B. | sequentially |
C. | exponentially |
D. | logarithmically |
Answer» B. sequentially | |
2. |
In general, the index of the first element in an array is __________ |
A. | 0 |
B. | -1 |
C. | 2 |
D. | 1 |
Answer» B. -1 | |
3. |
Which of the following is the correct way to declare a multidimensional array in Java? |
A. | int[] arr; |
B. | int arr[[]]; |
C. | int[][]arr; |
D. | int[[]] arr; |
Answer» D. int[[]] arr; | |