COMPUTER SCIENCE: PROGRAMMING IN C++

Tuesday, June 23, 2009

Here are a few C++ practical questions based on stacks, queues and binary files.
1.A queue containing telephone number is to be implemented using a linked list. Write a menu driven program using an object to insert a telephone number in the queue and to delete a telephone number from the queue


2.WAP using binary file create a book file for writing title, author, publisher and year. Display the file contents and perform search operation for a given title


3.A queue containing telephone number is to be implemented using a linked list. Write a menu driven program using an object to insert a telephone number in the queue and to delete a telephone number from the queue.


4.Write a program in C++ to create a binary file “House.dbf” with the following structure : Name, Class, Section and House and to do the following functions :
i) To append a record.
ii) To delete all class 12 records.
iii) To display all the records.


5.Consider a file ITEM.DAT with the following information:INo, IName, Qty, Rate, AmountInclude functions to perform the following:
a).Append records.
b) Modify the record in INo.
c).Display the record.


6.Consider a file EMP.DAT with the following information.Empname, Empno, salary, dept.Include the functions for the following operations
a).Append records.
b).Delete a record on empno.
c). Display all records.


7.A queue containing telephone number is to be implemented using an array. Write a menu driven program to insert a telephone number in the queue and to delete a telephone number from the queue.


{P.S. Pls. request if you need the solution for the above questions and specify the question no. }


8.Write a program in C++ to demonstrate PUSH, POP and display operations on a Array implementation of stack containing Roll no of students.

0 comments:

Post a Comment

Blogroll

Bookmark and Share
Powered By Blogger
CBSE 12th Grader.