Question 83

The number of pointer changes required for inserting a node between two given nodes in the linked implementation of a doubly linked list is ______.

  1. AOne
  2. BTwo
  3. CThree
  4. DFour
Show answerHide answer

Correct answer: (D) Four

Explanation

The new node's next and prev pointers are set, and the next pointer of the previous node and the prev pointer of the following node are updated. That makes 4 pointer changes.

From DSSSB TGT Computer Science Practice Set 2

This is question 83 of DSSSB TGT Computer Science Practice Set 2. 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.