BIT2105-BBIT112-BAC1304- APPLICATION PROGRAMMING .

UNIVERSITY EXAMINATIONS: 2017/2018
EXAMINATION FOR THE DEGREES OF BACHELOR OF SCIENCE IN
INFORMATION TECHNOLOGY/ APLIED COMPUTING/BUSINESS
INFORMATION TECHNOLOGY
BIT 2105/BBIT 112/BAC 1304: APPLICATION PROGRAMMING
FULLTIME/ PART TIME/DISTANCE LEARNING
ORDINARY EXAMINATIONS
DATE: AUGUST, 2018 TIME: 2 HOURS
INSTRUCTIONS: Answer Question One & ANY OTHER TWO questions.

QUESTION ONE [30 MARKS]
(a) Explain the following terms as used in VB
(i) MenuStrips controls
(ii) ToolStripMenuItems,
(iii) ToolStripComboBoxes,
(iv) ToolStripSeparators,
(v) ToolStripTextBoxes 5Marks
(b) Describe How to Call an Event Sub Procedure from a Menu Click Event 4Marks
(c) Briefly describe the terms below
(i) Class library
(ii) object
(iii) Event 6Marks
(d) Differentiate between a list box and a combo box. 4Marks
(e) VB has two different types of constants describe them using examples 4 Marks
f) Describe the use of Globalization enumeration in VB.net using examples to illustrate
5 Marks
QUESTION TWO (20 MARKS)
a) Design the interface and write a program in VB.net that can be used to calculate the balance
(change) to be given back to a customer after purchasing goods in store. The purchase should
include at least 5 items.
15 Marks
b) Differentiate between a masked text box and an ordinary text box 5 Marks

QUESTION THREE (20 MARKS)
a) i) Describe the data source object in VB.net 2 Marks
ii) Expand the following statements in full and explain their use
i) TotalSalesDecimal += SaleAmountDecimal 3Marks
ii) CountInteger -= 1 3Marks
b) Describe two looping statements used in VB.net 4 Marks
c) Define a module. Visual Basic stores code in three different modules. List and explain these
modules. 8 Marks
QUESTION FOUR (20MARKS)
Roberta must decide which courses to register for in the upcoming semester. She has a part-time
job and is waiting to find out how many hours per week she will be working during the
semester.
· If she works 10 hours (or less) per week, she will register for three classes.
· If she works more than 10 hours per week she will register for only two classes.
· If she receives the scholarship for which she has applied, she will quit her job and take five
classes.
Hours worked is entered into a TextBox control named HoursTextBox. A CheckBox control
named ScholarshipCheckBox will be checked if she gets the scholarship. Display the number of
classes for which she will register to a TextBox control named NumberOfClassesTextBox.
a) Design the interface and write the code to implement the logic above. 20 Marks
QUESTION FIVE (20 MARKS)
a) Using examples to illustrate differentiate between the Parse method and the Globalization
enumeration as used in vb.net 6 Marks
b) Using vb.net to illustrate describe the input –process- output model of programming
9 Marks
c) Explain why you would prefer using the VB.net intellisence for typing code to an ordinary
text editor 5 Marks

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

Written by