UNIVERSITY EXAMINATIONS: 2011/2012
SECOND YEAR EXAMINATION FOR THE BACHELOR OF
SCIENCE IN INFORMATION TECHNOLOGY
BIT 2105 APPLICATION PROGRAMMING
DATE: JULY, 2012 TIME: 2 HOURS
INSTRUCTIONS: Answer Question ONE and any other TWO
a) Explain the following terms as used in VB
b) Using vb.net to illustrate describe the input –process- output model of
programming (9 Marks)
c) Briefly describe the terms below:
i. Event Driven Programming
ii. Implicit Declaration
iii. Explicit Declaration
d) Differentiate between a list box and a combo box. (4 Marks)
e) VB has two different types of constants describe them using examples (6 Marks)
a) Describe the three components of any Visual Studio installation on a computer,
b) List any 3 objects and 3 events used in VB and explain their functions. (6 Marks)
c) List and briefly describe 4 flow control constructs supported by Visual Basic.
a) i. Define the VB intelligence (2 Marks)
ii. Explain why you would prefer it for typing code to an ordinary text editor
b) Explain what is accomplished by the code statements below:
Dim MyVariable as String
MyVariable = Combobox1.Text
c) Define a module. Visual Basic stores code in three different modules. List and
explain these modules. (8 Marks)
a) Assuming a database containing the following fields:
b) Explain how you can access these fields in the database from VB environment.
c) Explain the difference between:
i. A data control and a data bound control.
ii. An array and a record.
iii. Name and caption property of a control in VB. (9 Marks)
d) Differentiate between procedural and event driven programming (3 Marks)
e) Explain the purpose of VB files with the following extensions:
a) Compare and contrast option buttons and checkboxes as used in Visual Basic.
b) Briefly explain the importance of comments in a program. (4 Marks)
c) Briefly describe any TWO advantages of using sub procedures or functions in a
program. (4 Marks)
d) Write a program that accepts money in US dollars through an Input Box function
and converts it to Kenya Shillings, through the use of a function named convert.
The program should output the Kenya Shilling value through a Message Box
function upon the click of a command button. (1 US Dollar = 76 Kshs)