Beginner
Data Structures & Algorithms
Q1 / 100
What is the time complexity of accessing an element in an array by index?
Correct! Well done.
Incorrect.
The correct answer is C) O(1)
C
Correct Answer
O(1)
Explanation
Array elements are stored contiguously in memory and accessed directly via base address + index × element size, making it O(1) regardless of array size.
Progress
1/100