Question 43Asked in DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 2 (1:00 PM)

Given the array a = [10, 20, 30, 40, 50, 60] with 6 elements,

Given the array a = [10, 20, 30, 40, 50, 60] with 6 elements, What will the array look like after inserting the value 45 at index 4?
  1. A[10, 20, 30, 40, 45, 50, 60]
  2. B[10, 20, 25, 30, 40, 45, 50]
  3. C[10, 20, 25, 30, 40, 45, 60]
  4. D[10, 25, 20, 30, 40, 45, 50]
Show answerHide answer

Correct answer: (A) [10, 20, 30, 40, 45, 50, 60]

Explanation

Inserting 45 at index 4 shifts 50 and 60 one place right, giving [10, 20, 30, 40, 45, 50, 60]. The other options contain 25, which was never in the array.

From DSSSB TGT Computer Science PYQ (Technical), 12 Sep 2025, Shift 2 (1:00 PM)

This is question 43 of DSSSB TGT Computer Science PYQ (Technical), 12 Sep 2025, Shift 2 (1: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.