ISRO Computer Science (CSE) 2013 - Question 4

All ISRO Computer Science (CSE) papers | ISRO Computer Science (CSE) 2013

The following steps in a linked list: p = get node() info(p) = 10, next(p) = list, list = p result in which type of operation?

  • A. Pop operation in stack.
  • B. Removal of a node.
  • C. Inserting a node.
  • D. Modifying an existing node.

Answer: C. Inserting a node.

Explanation: These steps describe inserting a new node 'p' at the beginning (head) of the list.

| | All questions of ISRO Computer Science (CSE) 2013