Arrays In Data Structures - Study Mode
[#56] Which of the following is a method to find the length of an array in C++?
Correct Answer
(C) sizeof(array)/sizeof(array[0])
[#57] Which of the following is true about array-based lists?
Correct Answer
(B) They offer O(1) access time by index
[#58] In which scenario would you prefer to use an array over a linked list?
Correct Answer
(A) When you need constant time access by index
[#59] What is the correct syntax to access the third element of an array in C?
Correct Answer
(A) array[2]
[#60] Which of the following languages does not support multidimensional arrays directly?
Correct Answer
(D) JavaScript