Click To Get Off-Campus Placement Jobs Info !!!
FREE!!! Latest Nagarro FULL Aptitude Mock Test for Practice
Practice 5+ Mettl Aptitude Mock Test

Commvault Written Test Qs.(Data Structures) :: Linked Lists - Discussion

36 / 40

Choose the correct option.

Assume single linked list pseudo code as follows?

struct Node {
record List {
Node firstNode

function1(List list) {
obsoleteNode = list.firstNode; list.firstNode =; free obsoleteNode;

function2(node node) {
obsoleteNode =;; free obsoleteNode;

function3(Node node,Node newNode) { =; newNode

function4(List list, Node newNode) { = list.firstNode; list.firstNode = newNode;

Afunction1 removes the first node

Bfunction2 removes node past this one

Cfunction3 inserts newNode after node

Dfunction4 inserts newNode after current first node

Answer: Option (Login/Signup)

Show Explanation

Asked In :: Commvault Societe Generale SAP Labs Capgemini

Post Your Answer Here:     

No Discussion on this question yet!