0% found this document useful (0 votes)
326 views2 pages

Lab Exam Qs Set1

The document provides instructions for a LAB examination involving 3 programming questions. Students are told to create a folder with their student ID and save each program (Prog1.cpp, Prog2.cpp, Prog3.cpp) accordingly. Q1 involves creating a linked list to store and print customer data. Q2 involves creating a linked list, taking user input, deleting a specified element, and displaying the list before and after. Q3 involves sorting an array of numbers using selection sort.
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)
326 views2 pages

Lab Exam Qs Set1

The document provides instructions for a LAB examination involving 3 programming questions. Students are told to create a folder with their student ID and save each program (Prog1.cpp, Prog2.cpp, Prog3.cpp) accordingly. Q1 involves creating a linked list to store and print customer data. Q2 involves creating a linked list, taking user input, deleting a specified element, and displaying the list before and after. Q3 involves sorting an array of numbers using selection sort.
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/ 2

LAB Examination  DAC  February 2018 Batch

Instructions
 Read the instructructions carefully .
 All questions are compulsory.
 First of all create a folder on Desktop and name it with your 12 digit student id
 Please note that your PROGRAM FILE NAMES must be as per stated requirements.
 Your program must contain reasonable number of comments which should include your 
name and  Student ID as well. 
 The variable naming conventios, division of the code into separate functional units will also 
carry marks. (Readability and Maintainability)
 Please do not access your program files after the stipulated time period for the LAB 
examination. 
 The system maintains date and time stamp upto milli seconds for such accesses.  If it is 
found that you have modified your file after the stipulated time period then no evaluation 
will be performed for such programs.
 Each question carries 10 marks

======================================================================
Q1)  The program should be saved as Prog1.cpp

      You are required to exhibit your programming skills in creating a linked list data structure. 

In your program the structure will have following elements.

Customer Name
Menu Item Number
Last month frequency

(The last two items can be safely presumed as unsigned integer)

Your program will seek input from the end user to capture the above values
After the end of the input you will print the list in the same order as it is entered.

Customer Name: Bhavesh
Menu Item: 20
Last Month Frequency: 23

Customer Name: Ramesh
Menu Item: 3
Last Month Frequency: 5
PTO

Q2) The program should be saved as Prog2.cpp

Write a program to create a linked list by takeing user input and delete a particular element 
from it. Take user input to delete element. Display the element of linked list before and after 
deletion.
For example:

Input list= 5 7 9 3 7 4 1 2 8 7
Element to be deleted = 3
Output list = 5 7 9 7 4 1 2 8 7

Q3) The program should be saved as Prog3.cpp

Sort following data using selection sort method:

35, 33, 42, 10, 14, 19, 26, 44, 26, 31

You might also like