WRITE A QBASIC PROGRAM TO DISPLAY
*nepal*
*nepa*
*nep*
*ne*
*n*
CLS
A$ = "nepal"
FOR i = LEN(A$) TO 1 STEP -1
PRINT "*"; LEFT$(A$, i); "*"
NEXT i
END
📘 Class 9 Computer Science Computer System Number System Block Programming Web Technology Internet and Social Media Cyber Security and Digital Citizenship Concept of Programming 📗 Class 10 Computer Science Computer Network and Communication Database Management System Multimedia Programming in Python AI and Contemporary Technologies
Thursday, February 23, 2017
Sequential File Handling SLC QBasic Programming
1. Write
a program in qbasic to open a sequential data file “emp.dat”, which contains
employees records: name, address and phone number and display all the records
as well as total number of records stored in the file. [slc 2064]
2. Write
a program to store records regarding the information of book number, book’s
name and write’s name in a sequential data file called “library.dat”. [slc
2065]
3. Write
a program to create a sequential data file “employee.dat” to store employees’
name, address, age, gender and salary. [slc 2066]
4. A
sequential data file “emp.dat” contains name, post and salary fields of
information about employees. Write a program to display all the information of
employees along with tax amount (also tax is 15% of salary). [slc 2067]
5. A
sequential data file called “student.dat” contains same records under the
field’s name, english, nepali and computer. Write a program to add some more
records in the same sequential data file. [slc 2068]
6. 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. [slc 2069]
7. 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. [slc 2070]
8. A
sequential data file called “marks.dat” contains roll number, name, english,
nepali, and maths field. Write a program to display all the content of the data
file. [slc 2065 supplementary]
9. 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. [slc 2066 supplementary]
10. A sequential data file called ‘marks.dat’
contains roll no, name, english, and nepali and maths fields. Write a program
to display all the contents of the data file. [slc 2067 supplementary]
11. 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.[slc 2068 supplementary]
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 data file. [slc 2069 supplementary]
13.
A sequential data file
named”rec.dat”contains name,post and salary.
Write a program to display all the records for the employees whose
salary is more than 8000. [maaf pre send up 2069 set b]
14.
A sequential data file named
“record.dat” contains first name, last name and age. Write a program to display
all the records whose age is more than 60. [maaf pre send up 2069 set a]
15.
Write a program to open a data file
“record.dat” that contains name, address, date of birth, email and telephone
number of some employees. Now display all those records whose date of birth is
in current month. [pabson pre send up 2070]
16.
Write a program to display all records
having salary less than 2500 from the data file “add.inf” having the field’s
name, post and salary. [pabson
pre send up 2066]
pre send up 2066]
17.
Wap to delete some records from
“neps.dat” file where computer ask user to enter the record, which is to be
deleted. (fields are name, address, and telephone number). [neps pre send up
2066]
18.
Write a program to open a data file
“student.dat” that contains name, address, telephone number and parent’s name
of some students. Now display all those records whose address is “lalitpur”.
[pabson pre send up 2064]
19.
Create a sequential data file “std.dat”
to store name and marks obtain in english, maths and science for a few
students. [slc model question 2065]
20.
Create a sequential data file
“hotel.dat” to store customers name, address, and phone number. Program should
terminate with user’s choice. [slc model question 2]
Subscribe to:
Posts (Atom)