Tuesday, August 15, 2017

QBASIC FILE HANDLING Program Question SLC 2065 TO SEE 2072

1     1. Create a sequential file “std.dat” to store name and marks obtained in English, math and science subjects for a few students. (74 set 1)
2.      A data file “INFO.INF” has numerous records in it with name,  address and telephone numbers in each record. WAP to scan all the records from the file and display only the records with address “bhaktapur”(74 set 2)
3.      A sequential data file “text.txt” contains students name, marks of English, math and computer. WAP to display all the records of students whose percentage is more than 60.3.
4.      WAP to add some more  records in a data file “ABC.DAT” having following fields : patient’s name, address and age. (74 set 4)
5.      A sequential data file “std.dat” contains name, class, roll no and address of some students. WAP to read records and display only those record whose name starts with alphabet “A”.(74 set 5)
6.      WAP to store records regarding the information of book’s number, name and author’s name in a sequential data file named “Library.dat”(slc 65 re-334 set 1)
7.      A sequential data file called “MARKS.DAT” contains roll no, name, English, nepali, and math field. WAP to display all the contents of the data file.(slc 65 sup set 2)
8.      WAP to create a sequential data file “Employee.dat” to store employee’s name, address, age, gender and salary.(slc 2066 re-334 set 3)
9.      A data file “LIB.TXT” contains Book’s name, author’s name and price of books. WAP to count and display total number of record present in a file. (slc 66 sup set 4)
10.   A sequential data file “EMP.DAT” contains name, post and salary fields. WAP to display all the information of employees along with tax amount i.e. 15% of salary. (slc 67 re-334 set 5)
11.   A sequential data file called “MARKS.DAT” contains roll no, name, English, nepali and maths fields. WAP to display all the contents of the data file.(slc 67 sup set – 6)
12.   A sequential data file called “student.dat” contains record under the fields name, English , nepali and computer. WAP to add some more records in the same sequential data file. (slc 68 re-334 set 7)
13.   WAP 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.((slc 68 sup set – 8 )
14.   WAP to create a data file “teldir.dat” to store name, address and telephone number of employee’s according to the need of the user.(slc 69 re-334 set 9)
15.   A sequential data file “marks.dat” contains name, English , nepali, maths, and science fields. WAP to display all contents of data file.(slc 70 re-334)
16.   A data file “Salary.dat” contains the information of employee regarding their name, post and salary. WAP to display all the information of employee whose salary is greater than 15000 and less than 40000.(slc 71 re-334)
17.   A sequential data file called ‘marks.dat’ contains name, age, city and telephone fields. WAP to display all the records of that file.(slc 72)
 Compiled By: Amrit Poudel
                              Jagat Mandir School, Lampokhari, Chabahil

2 comments: