Monday, January 12, 2026

QBASIC PROGRAMMING FILE HANDLING - FINAL REVISION - 4 MARKS SEE COMPUTER SCIENCE 2082

 QBASIC PROGRAMMING FILE HANDLING - FINAL REVISION - 4 MARKS

SEE COMPUTER SCIENCE 2082



1.     WAP to create a sequential data file “STUDENT.DAT” to store the name of 10 students and the marks obtained in four different subjects.

2.     WAP to store Roll Number, Name, Class, and Address of five students in a sequential data file.

3.     WAP to store records containing Book Number, Book Name, and Writer’s Name in a sequential data file called “LIBRARY.DAT”.

4.     WAP to create a sequential data file “EMPLOYEE.DAT” to store employee’s name, address, age, gender, and salary.

5.     WAP to input student’s name, class, and marks secured in three subjects, store the data in a sequential data file “RESULT.DAT” along with total marks, and make provision to enter multiple records.

6.     WAP to open a data file “NEW.DAT” that contains name, address, phone number, and salary, and allow the user to add new records to the file.

7.     A sequential data file called “STUDENT.DAT” stores student’s name, class, and address.
WAP to append new student records to the existing file without deleting the previous records of 15 students.

8.     A sequential data file called “EMP.DAT” contains employee’s name, post, and salary.
WAP to add new employee records to the file.

9.     A sequential data file called “STUDENT.DAT” stores students’ name, class, section, and address.
WAP to print all the records of the students.

10. A sequential data file called “MARKS.DAT” contains Roll Number, Name, English, Nepali, and Maths. WAP to display all the contents of the file.

11. A sequential data file called “RECORD.DAT” stores name, address, age, and salary. WAP to display only those records whose age is greater than 26.

12. Employee’s name, address, gender, and salary are stored in “EMP.DAT”. WAP to display records of employees whose salary exceeds 60,000.

13. A data file “SALARY.DAT” contains employee’s name, post, and salary. WAP to display records of employees whose salary is greater than 15,000 and less than 40,000.

14. A sequential data file called “RECORD.DAT” stores Roll No., Name, Gender, English, Nepali, Maths, and Computer. WAP to display records of students whose marks in English is more than 40.

15. A sequential data file called “RECORD.TXT” stores Roll No., Name, Gender, English, Nepali, Maths, and Computer. WAP to display records of students whose gender is “F” and who have obtained more than 90 marks in Computer.

16. A sequential data file called “STUDENT.TXT” stores name, class, address, age, and gender.
WAP to display records of students whose class is 10 and gender is male.

17. A data file “STAFF.DAT” stores records containing EmpID, name, address, post, and salary.
WAP to display records of employees whose address is Nepal and whose salary is more than 40,000.

18. WAP to read data from the file “EMPINFO.TXT” and display Name, EmpID, and Post of employees whose post is Clerk.

19. A sequential data file called “MARKS.DAT” stores student’s name, English, Nepali, and Maths marks.WAP to display records of students who have obtained more than 35 marks in all subjects.

20. A sequential data file called “DATA.DAT” stores item name, quantity, and rate. WAP to display all records along with the total amount.

21. A data file “LIB.TXT” consists of book’s name, author’s name, and price. WAP to count and display the total number of records present in the file.

22. A sequential data file “EMP.DAT” contains name, post, and salary of employees. WAP to display all employee records along with the tax amount, where tax is 15% of salary.

23. A sequential data file “DETAIL.DAT” contains name, age, and mobile number of some persons.
WAP to display the names of persons eligible to cast vote (age must be 18 or above).

24. 41. A sequential data file “LIST.DAT” stores item name, quantity, and rate. WAP to update all records by increasing the rate by 10%.

25. 42. A sequential data file “RECORD.DAT” contains name, address, and salary of employees. WAP to display records of employees whose salary is more than 37,000 and whose name ends with “DHA”.

 

No comments:

Post a Comment