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

Which of the following is an advantage of the linked list over an array?

  1. ALinked list takes less storage to store the n elements as compared to array.
  2. BLinked list takes less time to access the ith element as compared to array.
  3. CInserting an element at beginning of the linked list takes less time as compared to array.
  4. DInserting an element as last element of the linked list takes less time as compared to array.
Show answerHide answer

Correct answer: (C) Inserting an element at beginning of the linked list takes less time as compared to array.

Explanation

Inserting at the beginning of a linked list only changes the head pointer, which is O(1). An array must shift every element, which is O(n). Array access by index is faster.

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

This is question 53 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.