MCQ Practice Single Best Answer Topic: ICSE Computer Application - Class X - 2025 PYQ

Q The index (subscript) of the last element of an array ar[] is:

Question ID
#24161
Subchapter
ICSE Computer Application - Class X - 2025 PYQ
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A ar.length()
  • B ar[].length
  • C ar.length() - 1
  • D ar.length - 1
Correct Answer: D

Explanation

(d) ar.length - 1
Explanation: The last index of an array is always length - 1 (since array indices start at 0).

Share This Question

Share this MCQ with your friends or study group.