Elements in an array are accessed . . . . . . . .
A. randomly
B. sequentially
C. exponentially
D. logarithmically
Answer: Option A
Solution (By Examveda Team)
Option A: randomly - This means you can go directly to any box (element) in the array by knowing its number (index). Arrays are designed to let you jump straight to an element without looking at the others.Option B: sequentially - This means you'd have to go through each box one after the other to find the one you want. While you *can* access an array sequentially, it's not how they're designed to be used or the most efficient way.
Option C: exponentially and Option D: logarithmically - These terms don't really relate to how we access elements in an array. These usually relate to more complex algorithms or how things grow in size.
Arrays provide direct access to elements using their index. So, you can get to element number 5 just as quickly as you can get to element number 1. That's why it's called random access.
Ans would be B)