BIT 2105 APPLICATION PROGRAMMING KCA Past Paper

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

QUESTION ONE
a) Explain the following terms as used in VB
i. Compile
ii. Solutions.
iii. Event
iv. Method
v. Control
(5 Marks)
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
(6 Marks)
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)
QUESTION TWO
a) Describe the three components of any Visual Studio installation on a computer,
(6 Marks)
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.
(8 Marks)
QUESTION THREE
a) i. Define the VB intelligence (2 Marks)
ii. Explain why you would prefer it for typing code to an ordinary text editor
(4 Marks)
b) Explain what is accomplished by the code statements below:
Dim MyVariable as String
MyVariable = Combobox1.Text
MsgBox MyVariable
(6 Marks)
c) Define a module. Visual Basic stores code in three different modules. List and
explain these modules. (8 Marks)
QUESTION FOUR
a) Assuming a database containing the following fields:
i. Name
ii. Address
iii. Town
b) Explain how you can access these fields in the database from VB environment.
(6 Marks)
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:
i. vbp
ii. frm
(2 Marks)
QUESTION FIVE
a) Compare and contrast option buttons and checkboxes as used in Visual Basic.
(4 Marks)
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)
(8 Marks)

(Visited 7 times, 1 visits today)
Share this:

Written by