Multiple choice

Which of the following statements is/are true for an array? (1) The element number in an array plays a major role in calling each element. (2) All elements of an array share the same name. (3) Any particular element of an array cannot be modified separately without disturbing others.

  1. Only (1)

  2. Only (2)

  3. Only (3)

  4. Both (1) & (2)

  5. Both (2) & (3)

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

According to the rules of an array, element number is used for calling each element and all elements share the same name. Therefore, statements (1) and (2) are true. We can also modify each element separately. So, statement (3) is incorrect. Hence, option (4) is correct.