Question:medium

Consider the following statements about arrays. Which of the following are TRUE? 

A. The index specifies an offset from the beginning of the array to the element being referenced. 
B. Declaring an array means specifying three parameters; data type, name, and its size. 
C. The length of an array is given by the number of elements stored in it. 
D. The name of an array is a symbolic reference to the address of the first byte of the array. 
Choose the correct answer from the options given below:

Show Hint

In arrays, the name acts as a pointer to the base address, and the index helps in accessing specific elements relative to that base.
Updated On: Jan 17, 2026
  • A, B and C only
  • A, B and C only
  • B, D and A only
  • A, B, C and D
Show Solution

The Correct Option is D

Solution and Explanation

Step 1: Statement Assessment.
- A: "An index indicates the position of an element relative to the start of the array." This statement is accurate. Array indexing calculates an element's memory address based on its position from the array's beginning.

- B: "Array declaration requires specifying data type, name, and size." This statement is accurate. Typically, array declarations in programming languages necessitate defining the data type, the array's identifier, and its capacity (number of elements).

- C: "An array's length corresponds to the quantity of elements it contains." This statement is accurate. The length of an array is defined by the total number of elements it can hold.

- D: "An array's name acts as a symbolic pointer to its initial memory address." This statement is accurate. The array name commonly represents its base address, which is the memory location of its first element.

Step 2: Final Determination. 
All statements (A, B, C, and D) are factual, thus option (4) is the correct choice.

Was this answer helpful?
0