Descriptive Type Questions :
- What is Visual Basic ?
Ans. Visual Basic is an event driven programming language. An event refers to user’s action such as key press , mouse click , mouse movement etc. It means that the programmer will decide and write program about what the program will do when the user clicks on a button , enters text in a textbox etc. - Name any four components of the Visual Basic IDE screen and their uses.
Ans. * Form Window – It is the primary work area of the application.- Toolbox – It contains all the controls.
- Solution Explorer – It displays a list of all the forms in the current project.
- Properties Window – It shows the properties of Forms and Controls.
- What is the use of DIM statement in VB ?
Ans. DIM statement is used to tell VB compiler about the type of value that is going to be stored in a variable.
For eg : DIM a as integer.
This statement informs that a is a variable in memory that can store only integer values and cannot accept string or decimal values. - What is the purpose of Val function ?
Ans. Val function is used to return numbers that is entered as a string in a textbox to perform calculations.
For eg: Val(textbox1.text)
Returns the number that is entered in textbox1. If any text is entered it returns 0. - Name some common controls used in VB 2010.
Ans. Some common controls used in VB 2010 are :-
i) Form ii) Button iii) Label iv) Textbox v) Listbox
vi) Combobox vii) Radio button viii) Checkbox ix) Picture box
x) DateTime Picker.