Question 90Asked in BPSC TRE 2.0 (2023) Computer Class 9-10

Which of the following gives the nth element of the Array?

  1. Aarray[n];
  2. Barray[n–1];
  3. Carray[n+1];
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (B) array[n–1];

Explanation

Array indices start at 0, so the nth element is array[n-1].

From BPSC TRE 2.0 (2023) Computer Class 9-10 — Previous Year Paper

This is question 90 of BPSC TRE 2.0 (2023) Computer Class 9-10 — Previous Year Paper. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.