SCS 211 Visual Basic Programming
SCS 211 Visual Basic Programming
Instructions
1. Answer question one (compulsory) and any other two questions
2. Candidates are advised not to write on the question paper
3. Candidates must hand in their answer booklets to the invigilator while in the examinations
room
QUESTION ONE (30 MARKS)
a) Define Visual Basic programming language (2marks)
b) Explain the main difference between object oriented and procedural programming
languages (2 marks)
c) Describe the two elements of a Visual Basic Application. (2marks)
d) Explain the difference between the Dim and Global variable declaration (3 marks)
e) Giving examples explain the difference between methods and properties (4marks)
f) Describe the available commands for message box (4marks)
g) Define a V.B statement and explain two types of conditional statements (3marks)
h) Describe the difference between design time and run time in Visual Basic. (4marks)
i) The IDE environment consists of many elements. Describe any SIX elements displayed
when Visual Basic is started (By default) (6marks)
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
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)