Single Choice Moderate

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

ID: #23969 ICSE Computer Application - Class X - 2022 PYQ 74 views
Question Info
#23969Q ID
ModerateDifficulty
ICSE Computer Application - Class X - 2022 PYQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

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

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

Challenge a friend or share with your study group.