BIT2105  APPLICATION PROGRAMMING.

UNIVERSITY EXAMINATIONS: 2018/2019
EXAMINATION FOR THE DEGREE OF BACHELOR OF SCIENCE IN
INFORMATION TECHNOLOGY /BACHELOR OF BUSINESS
INFORMATION TECHNOLOGY / BACHELOR OF SCIENCE
APPLIED COMPUTING
BIT 2105: APPLICATION PROGRAMMING
FULL TIME/PART TIME/DISTANCE LEARNING
DATE: AUGUST, 2019 TIME: 2 HOURS
INSTRUCTIONS: Answer Question One & ANY OTHER TWO questions.

QUESTION ONE
a) Visual programming languages have an Integrated Development Environment that provide
most of the component tools required by a programmer in his/her software development
tasks. Briefly explain the following functionality of the Visual Basic IDE components
(10 Marks)
i) Toolbox
ii) Properties Window
iii) Project/Solution Explorer
v) Form Layout
vi) Code Window
b) Data required for each and every student in a university database include the following six
data items; registration number, name, date of birth, gender (Male/Female), number of
units enrolled for, and amount of money to pay for the semester. In a VB database
application state the most appropriate VB data type of the variable to be assigned EACH
of the data items and GIVE a reason for your choice. (6 Marks)
c) The figure below depicts a VB application program GUI that receives two numbers from a
user. When the user clicks the COMPARE NUMBERS button, if the numbers are equal,
the feedback “The numbers are equal” is displayed in the results text-box, if they are not
equal the result of the smaller and the larger number (eg: “Num 1 is greater than Num 2”)
is displayed in the results text-box.

COMPARE NUMBERS
For the intended purpose to be accomplished you are required to write an Event Procedure
for the button.
(Use appropriate naming conventions for all the variables and the GUI controls)(7 Marks)
d) Write a event procedure that implements a FOR loop to prompt the user for any TEN
numbers via Input dialog box, calculates their sum and average, and display those numbers
together with their sum and average in a List box named OutputListBox. (7 Marks)
QUESTION TWO
a) Explain each of the following terms as used in a VB environment (10 Marks)
i. Events
ii. Event Driven Programming
iii. Project
iv. Control
v. Option Explicit
b) The GUI shown below was designed to prompt the user to type-in the present
value(pValue) of a vehicle, its annual depreciation rate(r), and the time duration(n) in
years.The program uses these data to calculate and display the vehicle’s future
value(fValue) at the end of the specified time duration. The calculation of the depreciation
is based on the reducing balance method whose algebraic expression is;
fValue = pValue( 1 – r / 100)n


Study it and write an event procedure that performs the task. Use appropriate naming
conventions for all the variables and the GUI controls (10 Marks)
QUESTION THREE
a) In Visual application design, adding a professional touch is an important and desirable
aspect. Describe the effect of each of the following control properties and elements with
respect the GUI appearance and intractability with the application user (10 Marks)
i) BorderStyle property
ii) AcceptButton property
iii) CancelButton property
iv) Keyboard Access Keys(hot keys)
v) Tool tips
b) Describe appropriate situation under which either checkbox controls or radio-buttons
controls may be used in an application program
(4 Marks)
c) Sometimes an application user may accidentally click the Exit/Close button of an
application and it is therefore wise to provide the application with a facility like the dialog
box shown below that allow the user to confirm his/her intention. Study it and write an
event procedure of the applications Exit/Close button that triggers the dialog box shown
below (6 Marks)


QUESTION FOUR
a) With respect to Visual Basic differentiate between a syntax error and a semantic/logical
error and give an example of each. (4 Marks)
b) With the aid of diagrams describe the behavior and the functional differences between a
DO WHILE … LOOP and a DO… LOOP UNTIL structures in a VB environment
(6 Marks)
c) Write a program that uses text boxes to accept a student’s cat score assignment score and
exam score which are marked out of 20, 10 and 70 respectively. The program calculates
the total score for the student and use a Select Case structure to assigns a letter grade and
an order-of-merit as per the scale shown below. The program should also display the name
of the students name, scores, grade and his/her order-of-merit in a Message Box
(10 Marks)

QUESTION FIVE
a) Write event procedure for the SUBMIT and EXIT buttons shown on the GUI below. When
the user clicks on the SUBMIT button his/her selections are displayed in the List box as
shown and if she clicks on EXIT button the program execution terminates
(10 Marks)

b) Describe the ordered steps to follow when creating VB.Net database application program
(Assume an MS Access database linking) (10 Marks)
SUBM
IT
EXIT
Your are within 20 to 39 age bracket and your
sports are Basketball and Football

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

Written by