UNIVERSITY EXAMINATIONS 2017/2018
EXAMINATION FOR THE DEGREE OF BACHELOR OF SCIENCE
IN INFORMATION TECHNOLOGY/ BACHELOR OF BUSINESS IN
INFORMATION TECHNOLOGY/ BACHELOR OF SCIENCE IN
APPLIED COMPUTING
BIT 2105/BBIT 112/BAC 1304: APPLICATION PROGRAMMING
FULL TIME/PART TIME/DISTANCE LEARNING
DATE: DECEMBER, 2017 TIME: 2 HOURS
INSTRUCTIONS: Answer Question One & ANY OTHER TWO questions.
QUESTION ONE: 30 MARKS (COMPULSORY)
(a) Explain the following terms as used in VB
(i) Solution explorer
(ii) Properties window
(iii) Component tray
(iv) Code window
(v) Lasso method
5Marks
(b) Differentiate between the name and text properties of controls in vb.net4Marks
(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.
15Marks
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
1. TotalSalesDecimal += SaleAmountDecimal 3Marks
2. 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)
a) Compare and contrast command buttons and menus as used in Visual Basic.
4Marks
b) Briefly explain the importance of a good UI in a program. 4 Marks
d) Briefly describe any TWO advantages of using an IDE in programing 4 Marks
e) Describe using examples how to perform selection in VB.net 6 Marks
f) Explain the use of hot keys in VB .net 2Marks
QUESTION FIVE (20 MARKS)
a) Using examples to illustrate differentiate between the Parse method and the
Globalization enumeration as used in vb.net 6Marks
b) Using vb.net to illustrate describe the input –process- output model of programming
9Marks
c) Explain why you would prefer using the VB.net intellisence for typing code to an
ordinary text editor 5 Marks