Question 49Asked in DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)

In a 2D array, how are elements stored in memory?

  1. AIn separate blocks for each row
  2. BIn separate blocks for each column
  3. CContiguously in a single block
  4. DNot stored in memory
Show answerHide answer

Correct answer: (C) Contiguously in a single block

Explanation

C stores 2D arrays contiguously in one block, row after row (row-major order).

From DSSSB TGT Computer Science PYQ (Technical), 13 Sep 2025, Shift 3 (5:00 PM)

This is question 49 of DSSSB TGT Computer Science PYQ (Technical), 13 Sep 2025, Shift 3 (5:00 PM). 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.