Posts

Showing posts from November, 2017

File Handling Important questions and Solutions

Image
                                            Jaya Ganeshya 1.     A sequential data file “std.dat” contains Name, class, Roll No. and Address of some students. Write a program to read records and display only those students record whose name starts with alphabet “A” of “a”. 2.     Create a sequential data file “std.dat” to store Name and Mark obtained in English, Math and Science subjects for a few students. 3.     A sequential data file called “MARKS.DAT” contains Roll no. Name, English,Nepali and Maths fields. Write a program to display all the contains of the data file. 4.     Write a program to create a sequential data file “Employee.Dat” to store employees’ Name, Address, Age, Gender and Salary. 5.     A data file “LIB.TXT” consists of Book’s name, Author’s name and price of books. Write a program to count and display the total number of records present in the file. 6.     A sequential data file “EMP.DAT” contains name, post and salary fields of information about