Tutorial Questions For Visual Basic Programming
Tutorial Questions For Visual Basic Programming
HND Revision
HIPE UNIVERSITY
a) During a lecture on Visual Basic programming, a lecturer mentioned four reasons for
implementing Visual Basic program as opposed to procedural languages like Pascal or
Basic. Explain the reasons (4marks)
b) A client is curious to know the steps involved in creating a visual basic application.
Advise him on the design steps required (4marks)
c) What is the difference between the Name property and the Text property? (5marks)
d) For the fundamental Object Types given below explain their uses (7marks)
Object Type
i. Label
ii. TextBox
iii. Button
iv. CheckBox
v. RadioButton
vi. ListBox
vii. ComboBox
1|Page
Describe any three events for the form object. (3 marks)
b) There are two types of dialog boxes which are input box and messagebox.Describe the
available icons for a message box (4marks)
c) Write a program to add and subtract two integer numbers after putting a suitable design.
Use message box for outputting. (6 marks)
d) The textbox is a box for entering and displaying text (characters or values) in user project.
This tool is used frequently in most of the application. The textbox has property window,
with no caption. Explain why this is so. (2marks
e) Write a programme for a form containing two textbox so that when click on command
button “copy" the text copied from first textbox to the second textbox but in size (28) (5
marks)
a) In Visual Basic program (code) there are four basic parts. Explain these parts to a student
who has just joined the V.B class (4marks)
b) Write a Visual Basic code to clear the contents of a text box
(5marks)
c) Describe the four structures of the IF statement (4marks)
d) Write a program to enter a mark of a student then print (pass) in size 18 if he is
successful. (5marks)
2|Page
3|Page