ICSE Class 10 Computer Applications Question 13 of 30

Solved Sample Paper 2 — Question 13

Back to all questions
13
Question

Question 1(xiii)

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

  1. N
  2. N - 1
  3. N - 2
  4. N + 1
Answer

N - 1

Reason — The subscripts of an array range from 0 to size - 1. Thus, an array of size N will have the subscripts ranging from 0 to N - 1.