logo

Cambridge IGCSE Computer Science practice

What is the output of accessing arr[1][2] in a 2D array named 'arr'?

Try the question first, then check the answer and practise the same topic again.

At a glance

MCQ

Type

cambridge_mcq

Style

Topic

Arrays

Exam-style question

Try this first

What is the output of accessing arr[1][2] in a 2D array named 'arr'?.

  1. A.First row, second column
  2. B.Second row, third column
  3. C.First column, second row
  4. D.Second column, first row

Answer and explanation

Concise answer

Second row, third column

Why this is correct

In a 2D array, the first index is the row and the second index is the column.

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

Flashcard 1 of 6

Press Space to flip, arrows to move

Related practice questions