Learn with Anil · TGPSC HMWSSB Manager (Engineering) PYQsPractise online →Subscribe ₹149

TGPSC HMWSSB Manager 2015 Paper 2 CSE · Question 142

Question 142 of the TSPSC Manager (Engineering), HMWSSB, 2015: Paper 2 (Computer Science & Information Technology) (1 November 2015). Try it first, then open the answer. The explanation is in the practice app with the All-in-One Pass.

  1. Manager 2015 Paper 2 (CS & IT) · Q142 · Data Structures · Arrays, Stacks, Queues & Linked Lists

    Which of the following is the correct sequence of the statements to be executed to insert a node after a node whose address is p? The pointer field nextptr points to the next node and the address of the new node is q.

    1. p->nextptr=q; q->nextptr=p;
    2. p->nextptr=q; q->nextptr=p->nextptr;
    3. q->nextptr=p->nextptr; p->nextptr=q;
    4. q->nextptr=p->nextptr; p->nextptr=q->nextptr;
    Show answer

    Answer: (3) q->nextptr=p->nextptr; p->nextptr=q;

    Explanation: open it in the practice app. It needs the ₹149 All-in-One Pass: one payment for every exam on the site.

Answer it in the practice appMake a topic-wise quiz