0% found this document useful (0 votes)
49 views1 page

Lab Quiz 1

This document contains 4 questions about operations on linked lists. Question 1 asks to create a linked list and count the number of even and odd elements separately. Question 2 asks to create a linked list and delete the head node. Question 3 asks to search a linked list for a user-entered value, insert a new node after the found node. Question 4 asks either to print a linked list in reverse order or copy the elements of one linked list into another in reverse order.

Uploaded by

Anmol Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views1 page

Lab Quiz 1

This document contains 4 questions about operations on linked lists. Question 1 asks to create a linked list and count the number of even and odd elements separately. Question 2 asks to create a linked list and delete the head node. Question 3 asks to search a linked list for a user-entered value, insert a new node after the found node. Question 4 asks either to print a linked list in reverse order or copy the elements of one linked list into another in reverse order.

Uploaded by

Anmol Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Lab Quiz 1.

2
Q1.

WAP to create a linked list print count of elements with even and odd data separately.

Q2.

WAP to create a linked list, then delete the head node.

Q3.

WAP to create a linked list, then search a node with data entered by user, insert a new node after
that node (With or without an insert/search function/s)

Q4.

WAP to create a linked list, then print all elements in reverse order.
Or
WAP to create a linked list, then copy all elements to another linked list in reverse order.

You might also like