Tuesday, April 5, 2022

QBASIC FILE HANDLING PROGRAMMING QUESTIONS[ SEE COLLECTION] [4 Marks]

 QBASIC FILE HANDLING PROGRAMMING QUESTIONS[ SEE COLLECTION]


1.      Create a sequential data file “std.dat” to store name and marks obtained in English, Math and Science subjects for a few students. [ MODEL 2065]

2.      Write a program to store records regarding the information of Book Number, Book’s name and Writer’s name in a sequential data file called “Library.dat”. [ 2065 R]

3.      A sequential data file called “MARKS.DAT” contains roll no., name, English, nepali and maths fields. Write a program to display all the contents of data file. [ 2065 S], [ 2067 S]

4.      Write a program to create a sequential  data file “Employee.dat” to store employees’ name, address, age and gender. [ 2066 R]

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. [ 2066 S]

6.      A sequential data file “EMP.DAT” contains name, post and salary fields of information about employees. Write a program to display all information of employees along with tax amount also.(Tax is 15% of salary) [ 2067 R]

7.      Write a program to create a data file 'emp.dat' to store employees name, post, address and salary according to the need of the user. [2075U]

8.      Write a program to store Roll no., Name, Class and Address of any five students. [2074]

9.      A sequential data file called “student.dat” contains some records under the fields Name, English, Nepali and computer. Write a program to add some more records in the same sequential data file. [ 2068 R]

10.   Write a program to view those records from “Employee.dat” sequential data file having employee’s name, department, appointment data and salary whose salary is more than Rs 5000. [ 2068 S]

11.   Write a program to create a data file “teldir.dat” to store name, address and telephone number of employees according to the need of the user. [ 2069 R]

12.   A sequential data file “Staff.dat” contains the name, address, post and salary of the employees. Write a program to read and display all the records stored in the above file. [ 2069 S]

13.   A sequential data file called “Marks.dat” contains name, english, nepali, maths and science fields. Write a program to display all the contents of that data file. [ 2070 R]

14.   A sequential data file “Record.dat” has records with field name, addres, age and salary. Write a program to display only those records whose age is greater than 26. [ 2070 S]

15.   A data file “Salary.dat” contains the information of employee regarding their name, post and salary/ Write a program to display all the information of employee whose salary is greater than 15000 and less than 40000. [ 2071 R]

16.   A data file “STAFF.DAT” has stored records of few employees with emp id, first name, last name, post and salary. Write a program to display all the records of the employees whose salary is more than 40,000.[2075]

17.   A sequential data file called “Marks.dat” has stored data under the field heading Roll No, Name, English, Nepali and maths. Write a program to display all the information of those students whose marks in Nepali is more than 50. [ 2071 S]

18.   A Sequential data file called ".DAT" has stored data under the field heading Symbol No., Name, English, Nepali, Maths and Computer. Write a program to display all the information of those students whose marks in Computer is more than 80. [2074U]

19.   A sequential data file called “Marks.dat” contains NAME, AGE, CITY AND TELEPHONE fields. Write a program to display all the contents of the data file. [ 2072]

20.   Create a data file to store the records of few employees having Name, Address, Post, Gender and Salary fields. [ 2073]

 

No comments:

Post a Comment