A. Programs using IF---ELSE statements
Q1. Create a VB project to perform a temperature converter. The program will perform following operations---
User will select the conversion option ( degree/Fahrenheit)
User will input a value to convert of his choice
User will click a <convert button> to convert it
A clear button should be provided to clear the form
If user input non-numeric value, necessary message should be shown to the user.
Q2. Create a VB project to find out the maximum of three numbers. The program will perform following operations-----
User will input three numbers
User will click a <find greatest> to find out the greatest number
A clear button should be provided to clear the form
An exit button should be provided to end the program
If user input non-numeric value, necessary message should be shown to the user.
Q3. Create a VB project to perform marks calculations. The program will perform following operations-----
User will input marks for six subjects as well as total marks in each subject.
User will click a <calculate> to calculate the total marks
A clear button should be provided to clear the form
An exit button should be provided to end the program
The program should also show the necessary results (Pass/Fail/div/dist.)
If user input non-numeric value, necessary message should be shown to the user.
Q4. Display a form where you can view the grade of students after counting the average marks of each student. (Please give facility for entering marks from the keyboard, maximum marks in a subject can be 100. Also check for errors in inputs. )
Condition:
average >=75 then Grade A
average >=60 and average <75 then Grade B
average >40 and average <60 then Grade C
Otherwise Grade D
Q.5 Write an appropriate block of statements that will examine the value of a single-precision variable to Temperature. The temperature should be inputted through the keyboard. Conditions--------------
(i) "Ice", if the value of Temperatureis less than 0.
(ii) "Water", if the value of Temperature lies between 0 and 100.
(iii) "Stream", if the value of the Temperatureexceeds 100.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
B. Programs using select-----case statements
Q6. Create a VB project to perform a currency exchange program. The program will perform following operations---
User will select the currency name ( US dollar/sterling/swiss franc/yen/Saudi riyal)
User will input an amount
User will click a <convert button> to convert it
A clear button should be provided to clear the form
The program will show the equivalent amount in rupees.
If user input non-numeric value, necessary message should be shown to the user.
List of Currency name | Equivalent amount in Rupees |
U.S.Dollar | 42.43 |
sterling | 71.30 |
Swiss Franc | 25.25 |
Saudi riyal | 140.40 |
Q7. Create a VB project to perform a day indicator. The program will perform following operations-----
User will input a number between 0 and 6
Condition: 0 for Sunday, 1 for Monday, 2 for Tuesday, 3 for Wednesday, 4 for Thursday, 5 for Friday, 6 for Saturday
The program will show ‘invalid day’ if number is not in the given range.
User will click a <show day> to show the respective day
A clear button should be provided to clear the form
An exit button should be provided to end the program
If user input non-numeric value, necessary message should be shown to the user.
Q.8. Create a VB project to perform a simple calculator. The program will perform following operations---
User will select the operation (0 for addition /1 for subtraction/2 for multiplication/3 for division)
User will input two numbers
User will click a <calculate button> to perform the selected operation
A clear button should be provided to clear the form
The program will show ‘invalid option’ if number is not in the given range.
If user input non-numeric value, necessary message should be shown to the
Q9. Create a VB project to perform a Railway fare calculator. The program will perform following operations-----
User will select a class ( from a list) {AC-2ties/ac-3tier/first class/second class/slipper/general}
User will click a <calculate fare> to calculate the fare
A clear button should be provided to clear the form
An exit button should be provided to end the program
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
C. Programs using for---next statements
Q10. Create a visual basic form to display the pyramid given below.
13 15 17 19
7 9 11
3 5
1
The Level of the pyramid should be inputted through the keyboard.
Q11. Create a visual basic form to FIND OUT THE SUM OF THE FOLLOWING SERIES.
1!+2!+3!+4!+5!+6!+…………………………………..
The number of terms should be inputed should be inputted through the keyboard.
Q12. Create a VB project to perform Factorial calculator. The program will perform following operations-----
User will input a number to find out its factorial
User will click a <calculate> to calculate the factorial
A clear button should be provided to clear the form
An exit button should be provided to end the program
If user input non-numeric value, necessary message should be shown to the user.
Q13. Create a VB project to perform a power function operation. The program will perform following operations-----
User will input two numbers one is as number itself and other is as its raising power.
User will click a <calculate> to calculate the operation
User have to create a function “Power (number as first argument, power value as second argument)” which will be activated once the calculate button is clicked.
An exit button should be provided to end the program
If user input non-numeric value, necessary message should be shown to the user.
Q.14. Create a visual basic form to display the pyramid given below.
1
1 2
1 2 3
1 2 3 4
The Level of the pyramid should be inputted through the keyboard.
Q.15 Create a visual basic form to display the pyramid given below.
1
1 2 1
1 2 3 2 1
The Level of the pyramid should be inputted through the keyboard.
D. Programs using do---while/while---wend statements
Q16. Create a visual basic form to display the pyramid given below.
* * * *
* * *
* *
*
The Level of the pyramid should be inputted through the keyboard.
Q17. Create a visual basic form to display the pyramid given below.
1 2 3 2 1
1 2 1
1
The Level of the pyramid should be inputted through the keyboard.
Q18. Create a VB project to perform Factorial calculator. The program will perform following operations- ----------------------------------------------------------------------------------------------------------------------------------------------------
User will input a number to find out its factorial
User will click a <calculate> to calculate the factorial
A clear button should be provided to clear the form
An exit button should be provided to end the program
If user input non-numeric value, necessary message should be shown to the user.
Q19. Create a VB project to perform a power function operation. The program will perform following operations -----------------------------------------------------------------------------------------------------------------------------
User will input two numbers one is as number itself and other is as its raising power.
User will click a <calculate> to calculate the operation
User have to create a function “Power (number as first argument, power value as second argument)” which will be activated once the calculate button is clicked.
An exit button should be provided to end the program
If user input non-numeric value, necessary message should be shown to the user.
Q.20 Create a visual basic form to display the pyramid given below.
1 2 3 4
1 2 3
1 2
1
The Level of the pyramid should be inputted through the keyboard.
E. Programs using Mixed Features
Q.21 Create a visual basic project to display the factorial of an integer number. The number should be inputted with the help of “input box” . Also checks for appropriate errors.
Q.22 Create a visual basic form to input three strings. Provide two click events such that one will show the complete sentence (combinations of the three string) and other will show the lengths of the individual strings as well as the complete string. Provide also an click event to exit the project/program created by you.
Q.23 Create a login form (user name & password.). If user name and password is same then load a second form. In the second form show your login information i.e. user name and password. If not message should be given as “Invalid login” with an exclamation symbol.
Q.24 Create a form to add and remove elements to and from combo box and list box respectively. Also provide clear button to clear them and end the program. The elements name should be given from the keyboard.
Q.25 Create a form to perform to reverse a number given by the user in inputbox. The title of the input box should be “IT VB EXAM-08”. The default value should be 213. Restrict the user show that he can only give numerical value. If he does not provide it, show message as “Please insert integer number.”
Q.26 Create a form with three option buttons such as minimize, maximizeand normal on clicking which form will be minimized, maximized and in normal state. On clicking also give meaningful message to the user.
Q.27 Create a visual basic form to display the pyramid given below.
1
2 3
4 5 6
7 8 9 10
The Level of the pyramid should be inputted through the keyboard.
Q.28 Create a form with three check buttons such as Basic, HRAand DA. On clicking which form user will be provided to enter the respective input otherwise not. If not provided than take the default amount for the respective input as 0 (zero). Provide a click option to find the total amount using the formula----
( Basic %10 ) + ( 2 *HRA) + DA
Q.29 Create a form to input the following information of the Faculties. Such as name, address, salary, age for three persons.Provide search options to search the person having maximum salary, maximum age etc.
Q.30 Create a Visual basic form two input two strings. Give facilities to perform the following operations:
Compare the strings
Show the length of the strings
Lowercase conversion of the strings
Uppercase conversion of the strings.
On performing each of the above operation, appropriate message should be provided to the user. E.g. “Strings are successfully converted to uppercase.”
Q.31 Create a Visual Basic form to input a date in (month/day/year) format. Provide facility to show the day, month, yearfrom the given date. Also display the current time.
Q.32 Create a visual basic form to with following menu facilities—
File | Color
----Exit ----Red Color
----Log in ----Green
----Black
On Clicking the following buttons operation performed should be-----
Exit :- Program should end
Log in :- Show a different form
Red Color :- Form background should be Red
Green :- Form background should be Green
Black :- Form background should be Black
Q.33 Create a visual basic form to with following menu facilities—
Date Entry | Color
----Get Date ----Red Color
----Green - ---Black
On Clicking the following buttons operation performed should be-----
“Invalid Date”. If correctly entered than display the day from the given date.
Red Color :- Form background should be Red
Green :- Form background should be Green
Black :- Form background should be Black
F. Programs using Date functions
Q.34 Create a Visual basic Project to input two dates. Give facilities to perform the following operations:
Find out the differences between the no of days among two given dates
Find out the differences between the no of months among two given dates
Find out the differences between the no of years among two given dates.
Q.35 Create a Visual basic form to perform the following operations:
A Date Add Calculate Button for the user
On clicking the button, user is asked to enter a valid date
Then he will be asked to enter option ( month/year/date)
Then asked to enter the value to be added
Then result will be shown.
Q.36 Create a PC configuration form to perform the following operations as given in the figure below:
Q.37 Create the Payroll form shown below. Number of hours must be entered as well as the appropriate rate. Gross salary = rate * hours. Net salary = gross salary - deductions.
Q.38 Create VB form shown below. Here the use of directories, drivers and files are established.
Q.39 Create a Visual basic project to perform whether two input strings are palindrome or not.
Q.40 Create a Visual basic project to perform whether two input numbers are palindrome or not.
Q.41 Create a Visual basic project to perform the following animation