QBASIC PROGRAM
1. Write a program in QBASIC
that asks length, breadth of a room and calculate its area and perimeter.
Create a user defined function to calculate area and sub program to calculate
perimeter.
[Hint: [Area=LxB], [p=2(L+B]] [ SEE 2078]
1. Write a program in QBASIC that will asks the user to input length,
breadth and height of a room then use SUB procedure calculate its volume and
FUNCTION procedure to calculate its area of four walls.
[SEE GP 2078 - 1]
2. Write a program to
calculate Area of circle using Function procedure and use SUB procedure to
calculate its circumference in Q-Basic. [Hint: [A=πr2], [C=2πr] [SEE
GP 2078 - 2]
3. Write a program in QBASIC
that ask the radius of circle. Write a program to calculate the area and
circumference of a circle. Create a user defined function first (r) to
calculate area and sub procedure second (r) to calculate circumference of a
circle. [PABSON PRE BOARD 2078 - 2]
4. Write a program in QBASIC
that asks length, breadth and height of room and calculate its area and volume.
Create a user defined function to calculate area and sub-program to calculate
volume. Hint: [A=L×B], [V=L×B×H] [MODEL SET 1]
5. Write a program in QBASIC that will asks the user to input length,
breadth and height. Create a user defined function to calculate surface area of
four walls and write sub program to calculate surface area of box. [Hint:
surface area of for walls=2H(L+B), surface area of box=lh+bh+lb [NPABSON 2078]
6. Write a program in QBASIC
that allows the user to input length, breadth and height and then calculate the
area of 4 walls. Hint: [A = 2H(L+B)] [MODEL SET 2]
7. Write a program in QBASIC
to ask a number and display sum of digits by using FUNCTION..END FUNCTION.
[PABSON PRE BOARD 2078 - 1] [PABSON FIRST TERM 2079]
8. Write a program in QBASIC
that allows user to enter radius of a circle. Create a user define function to
find the area of circle and sub procedure to find volume of a cylinder. Hint:
[A= r2 v= πr2h]
[NPABSON PRE BOARD 2078]
9. Write
a program in Q-Basic to find the perimeter of rectangle using Sub…END SUB
procedure. [PABSON FIRST TERM 2079]
10. Write
a program in Q-Basic to find the largest among three number using FUNCTION
procedure.[PABSON FIRST TERM 2079]
11. Write
a program to ask a number and display odd or even using FUNCTION procedure.
[PABSON FIRST TERM 2079]
12.
Write
a program using FUNCTION…END FUNCTION to find the average of any two numbers
given by the user. [SLC 2066 S]
13.
Using
FUNCTION…END FUNCTION Write a program to calculate the average of three
numbers. [SLC 2067 R], [SLC 2070 S, SEE 2075]
14.
Write a program in QBASIC that asks two numbers to find
square of two numbers using SUB…>END SUB program and average of two numbers
using FUNCTION…END FUNCTION. [PABSON 2078]
15.
Write
a program to calculate the volume of a cylinder using FUNCTION….END
FUNCTION.[SEE MODEL 2065], [SLC 2071 S]
16.
Using
FUNCTION….END FUNCTION, Write a program to calculate distance travelled by a
body. [SLC 2065R]
17.
Write
a program using SUB…END SUB to get radius of circle and then print its area.
[SLC 2065 S, SLC 2071 R, 2074, 2074 S]
18.
Write
a program using FUNCTION module to calculate and print the volume of a box.
[SLC 2066 R]
19.
Write
a program using SUB…END SUB to get radius of a circle and then print its circumference.
[SLC 2067 S]
20.
Write
a program to calculate the area of four walls using SUB…END SUB. [SLC 2068 R],
[SEE 2073]
21.
Write a program in QBASIC to find the total surface area of a
box using FUNCTION…END FUNCTION. [SLC 2068 S, 2075]
22.
Write a program to calculate and print the simple interest
using FUNCTION…END FUNCTION. [SLC 2069 S]
23.
Write a program using FUNCTION…END FUNCTION to get
temperature in celsius from the user and then print the temperature in
fahrenheit. [SLC 2070 R]
24.
Write a program using FUNCTION…END FUNCTION, to find the area
of triangle. [SEE 2072]
1. Write a program to
input any number and display whether it is odd or even using function
procedure.
2.
Write
a program to test whether the given number is positive or negative using
SUB…..END SUB. [SEE MODEL 2065 ], [SLC 2066 S]
3.
Using
SUB…END SUB Write a program to test whether the given number is completely
divisible by 13 or not. [SLC 2067 R]
4.
Write a program to input three different numbers in the main
module and then find the greatest number using SUB…END SUB. [SLC 2068 S]
5. Write a program to
input a year and display whether that year is a leap year or not. [divisible by
4 but not 100] using sub procedure.
[ Y MOD 4 = 0 AND Y
MOD 100 <> 0 OR Y MOD 400 = 0]
6. Write a sub program
to find whether the given number is perfect square number or not.
1.
Using
SUB…END SUB Write a program to print the following series 9,7,5,…1. [SLC 2065
R]
2.
Write a program using SUB…END SUB to print the series
1,1,2,3,5,8… upto ten terms. [SLC 2069 R]
3.
Write a program to print natural numbers from 1 to 5 using
SUB…END SUB. [SLC
2069 S]
4.
Write a program using SUB…END SUB to print the first ten odd
numbers.
[SLC 2071 S]
5.
Write a program to print the sum of digits of a given number
using SUB procedure. [SLC
2070 S]
6.
Write
a program using a SUB procedure module to print the multiplication table of any
input number up to tenth terms.[SEE 2075 S2]
1.
Write
a program using FUNCTION…END FUNCTION, to get a word from the user and the
print the word in reverse order. [SLC 2065 S], [SLC 2067 S], [SLC 2068 R] [SEE
2074 S]
2.
Write
a program to declare SUB procedure to print only the vowels from a given word.
[SLC 2066 R, 2075]
3.
Write a program using SUB…END SUB to get a word from the user
and then print it in reversed order. [SLC 2070 R], [SEE 2072]
4.
Write a program using FUNCTION…END FUNCTION to input a string
and count the total number of consonants. [SLC 2071 R]
5.
Write
a program to count the total number of vowels using FUNCTION…END FUNCTION. [SEE
2073]
6.
Write
a program using FUNCTION... END FUNCTION to count the number of words in a
sentence. [SEE 2074]
1. Write a program to create a
sequential data file “salary.dat” to store programmer’s name, salary and post
according to the need of the user. [SEE 2078]
2. Write a program to create a
sequential data file named “Employ.Dat” to store Name, Post, Address and Salary
for the number of employees. The program should terminate on user’s choice.
[MODEL SET 2]
3. Write a program in QBASIC
to create a file "EMP.DAT" and store employees Name, Address, Salary
and Telephone number on the basis of user choice. [PABSON PRE BOARD 2078 - 1]
4. Students Name, Class,
Section and Address are stored in a data file called “STUDENT.dat”. Write a
program to print all the records of students. [SEE GP 2078 - 2]
5. A sequential data file called “Record.dat” has stored data under the
field heading Roll No., Name, Gender, English, Nepali, Maths and Computer.
Write a program to display all the information of those students whose marks in
English is more than 40. [SEE GP 2078 -
1]
6. A sequential data file
“emp.dat” contains employee’s name, address, gender and salary. WAP to display
all the information of employees whose salary is more than Rs. 20,000 [NPABSON
PRE BOARD 2078]
7. A sequential data file
called “Record.txt” has stored data under the field heading Roll No., Name,
Gender, English, Nepali, Maths and Computer. Write a program to display all the
information of those students whose gender is “F” and obtained marks in
computer is more than 90. [MODEL SET 1]
8. Write a program to update
the rate by increasing 10% from a sequential data file "Data.dat"
that store item name, rate and quantity. [PABSON PRE BOARD 2078 - 2]
1.
Create a sequential data file “std.dat” to store
name and marks obtained in English, Math and Science subjects for a few students.
[SEE 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”. [SLC 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. [SLC 2065 S], [SLC 2067 S]
4.
Write a program to create a sequential data file “Employee.dat” to store employees’
name, address, age and gender. [SLC 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. [SLC 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) [SLC 2067 R]
7.
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. [SLC 2068 R]
8.
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 S]
9.
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 R]
10.
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. [SLC
2069 S]
11.
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 R]
12.
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. [SLC
2070 S]
13.
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. [SLC 2071 R]
14.
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. [SLC 2071 S]
15.
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. [SEE 2072]
16.
Create a data file to store the records of few
employees having Name, Address, Post, Gender and Salary fields. [SEE 2073]
17.
Write a program to store Roll no., Name, Class
and Address of any five students. [SEE 2074]
18.
A data file "STAFF. dat" has stored
records of few employees with EmPID, First name, Lastname, post and salary.
Write a program to display all the records of the employees whose salary is
more than 40,000. [SEE 2075]
19.
Write a program to create a sequential data file
"salary.data" to store programmer's Name, salary and post according
to the need of the user. [SEE 2075 S2]
20.
A Sequential data file called
"SEE.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. [SEE
2074 S]
21.
A sequential data file “person.txt” contains
information such as name, address and DOB of 20 people. Write a program to
display only those records whose age is below 18 and address is Lalitpur.
22.
A data file “Staff.dat” has stored records of
few employees with EmpID, name, address, post and salary. Write a program to
display all the records of the employee whose address is Butwal and salary is
more than 40,000.
23.
Write a program to update the rate by increasing
10% from a sequential data file “data.dat” that storte item name, rate and
quantity.
1. Write a program in C
language to ask length, breadth and height and display volume of box. [[PABSON
PRE BOARD 2078 - 1]]
2. Write a program in c
language to calculate simple interest. [PABSON PRE BOARD 2078 - 2]
3. Write a program in C
language that asks a number and check whether it is odd or even. [MODEL SET 1],
[NPABSON PRE BOARD 2078]
4. Write a C program that asks
a number and check whether it is negative, positive or zero. [SEE 2078], [MODEL
SET 2]
5. Write a program in C
language to input a number then check whether the number is fully divisible by
5 or not. [SEE GP 2078 - 2]
6. Write a program in C
language to input a number then check whether the number is fully divisible by 7
or not. [PABSON 2078 - 3]
7.
8. Write a program in C
language to input a number then check whether the number is divisible by 5 and
7 or not. [SEDIPS 2078]
9.
10. Write a program C language that asks any two numbers and displays the
greatest among them.
[SEE GP 2078 - 1], [NPABSON PRE BOARD 2078]
11. Write a program in C
language to display the series with their sum.1, 2, 3, 4 upto 10th terms.
[MODEL SET 1], [SEE GP 2078 - 1]
12. Write a program in C
language to display first 10 odd numbers. [SEE 2078]
13. Write a C program to find
the sum of first 10 natural numbers.
[PABSON PRE BOARD 2078 - 2]
14. Write a program in C
language to display the series 2, 4, 6, 8 up to 10th terms. [SEE
GP 2078 - 2]
15. Write a program in C
language to display the series 1, 1, 2, 3, 5, 8 upto 10th terms.
[MODEL SET 2]
16. Write a program in C
language to print series1, 8, 27, 64………..up to 10th terms. [JEC
2078]
17. Write a program in C language
to display the below series: 5, 10, 15, 20, ….50. [SOS 2078]
18. Write a program in C
language to display the series with their sum; 100, 95, 90, 85…..upto 10th
term. [SEDIPS 2078]
19. Write a program to print
the numbers from 1 to 100 using while loop in C language. [NPABSON 2078]
Please so answer of this question
ReplyDelete