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

Q A single dimensional array contains N elements. What will be the last subscript?

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

Choose Your Answer

Click an option to check whether your answer is correct.

  • A N
  • B N - 1
  • C N - 2
  • D N + 1
Correct Answer: B

Explanation

N - 1

Reason — The index of an array begins from 0 and continues till Size - 1. Thus, if an array has N elements, the last subscript/index will be N - 1.

Share This Question

Share this MCQ with your friends or study group.