0% found this document useful (0 votes)
9 views8 pages

Practical Questions Bca 5th Vbnet

create file with code

Uploaded by

sharifkhan.fzd66
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views8 pages

Practical Questions Bca 5th Vbnet

create file with code

Uploaded by

sharifkhan.fzd66
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Practical Questions

VB.NET
BCA 5TH SEM
Ques1. Write a Program to accept a string in a textbox from user and when user
click on button, check whether string is palindrome or not.

Ques2. Write a Program to display following series:


a. (x-1), (x-22), (x-33), …………, (x-nn)
b. 6, 66, 666, 6666, 66666

Ques3. Write a Program that displays rental table in a list box, and an invoice in
another list box, when an appropriate is clicked.
The bill should include a $30 deposit.
The display rental rates will show the rental rates, when clicked.
Using Select item checkbox user will choose item to be rented and using select
duration user will choose whether item to be selected for half day and full day.
And when user click on display customer bill, then bill will be shown according
to choices.

Ques4. Write a Program to accept a year in a textbox from user and when user
click on button, check whether year is leap year or not.
Ques5. Write a program to accept age, number of days and gender from user
and calculate wages according to following condition:
Age Gender Wages
Male Rs 800/day
>=18 and <=30
Female Rs 850/day
Male Rs 900/day
>30 and <=50
Female Rs 950/day

Ques6. We had to write a program to calculate a student's GPA. The user should
enter the grade (A, B, C, D, or F), and the number of credit hours for a course,
and then click on the “record this course” button.
Then the user should repeat the process for all the student's courses. After all
the courses have been recorded, the user should click on the “calculate GPA”
button and the function procedure should be used to calculate the quality
points for a course.
Grade Rules
A=4.0
B=3.0
C=2.0
D=1.0
F=0
Credit Hours
Max 4
Min 1
Max Possible Grades: 16 (Student gets A and 4 credit Hours -> 4*4 = 16)
Actual Course Grade: Student Grade * Credit Hour
Final Grade: (Actual Course Grade / MAX Possible Grade)*4

Ques7. A binary search looks for a value by first determining in which half of the
list it resides. The other half of the list is then ignored and the retained half is
temporarily regarded as the entire list, and the process is repeated until the
item is found or the entire list has been searched.
We will also set a Boolean variable flag that keeps track of whether or not the
search value has been found.

Ques8. We are to write a program that handles an election when the program is
first run. The label at the top of the page should read as follows. “Nominate
candidate” to enter a candidate or “start voting” to end nominations and start
the voting. The program should add each candidate to a list box as he or she is
nominated.
After the nomination process is complete, club members should be able to
approach the computer one at a time and double click on the candidate of their
choice. When the tally of votes button is clicked, a second list box showing the
number of votes received by each candidate should appear alongside the first
list box. Also, the names of the candidates with the highest number of votes
should be displayed in a message box.
We will click nominate candidate and an input dialog box will appear. We will
enter the names and each time we enter a name it will be entered in the list
box.
Then we'll click start voting now, be able to double click any of the names and
each double click equals one vote.
And then when we click the Tally Votes button, this list box will appear with the
number of votes for each candidate and a message box declaring the winner or
winners because there could be multiple winners.

Ques9. Write a program to accept any 10 number from user in a array and
display prime numbers only
Example:
Input: 12, 34, 56, 17, 3, 5, 7, 9, 10, 64
Output: 17, 3, 5, 7

Ques10. Write a program to accept two matrix of 3*3 from user and show
multiplication of matrix.

Ques11. Write a program to accept a name of a person and display initals of first
or second name and full third name
Example:
Input: Mohandas Karamchand Gandhi
Output: M. K. Gandhi

Ques12. Suppose automobile repair customer billed the rate $35 per hour for
labor. Also, suppose cost for parts and supplies to a 5% sales tax.
Write a Program to display a simplified bill. The customer’s name. the number
of hours of labor, and the cost of parts and supplies should be entered into the
program via text boxes.

When a button is clicked, the customer’s name and the three costs should be
displayed in a list box.
We have our three text boxes for the name hours of labor and cost of parts and
a button that, when clicked, will display all that into the list box.

You might also like