BIT2105 BBIT112  APPLICATION PROGRAMMING . KCA Past Paper

UNIVERSITY EXAMINATIONS 2016/2017
ORDINARY EXAMINATION FOR BACHELOR OF INFORMATION
TECHNOLOGY/ BACHELOR OF BUSINESS INFORMATION
TECHNOLOGY
BIT2105 BBIT112 APPLICATION PROGRAMMING
FULLTIME/PARTTIME/DISTANCE LEARNING
DATE: AUGUST, 2017 TIME: 2 HOURS
INSTRUCTIONS: Answer question ONE and Any other TWO questions

QUESTION ONE (30 MARKS) COMPULSORY
(a) Explain the following terms as used in VB
(i) Solution Explorer
(ii) The component tray
(iii) Option explicit
(iv) Properties window
(v) Class library
5Marks
(b) Differentiate between the modules and procedures 4Marks
(c) Briefly describe the terms below
(i) Intrinsic constants
(ii) Standard procedure
(iii) General procedure
(iv) Association table 8 Marks
(d) Differentiate between Option Explicit and Option Strict as used in VB.net 4Marks
f) Describe the various variable scopes in VB.net and explain how there are declared marks.
9 Marks
QUESTION TWO (20 MARKS)
Develop the interface and Write the code to process the logic below:
A normal work week is 40 hours. The university employs both salary and hourly workers.
Hourly workers are paid an hourly base with time-and-a-half (1.5 of normal hour) for hours
exceeding 40 hours. Hours are measured to the nearest 1/10th of an hour. Salaried employees
receive a salary base of $800/week. Data are entered into two TextBox controls for the hours
worked (HoursWorkedTextBox) and pay rate (PayRateTextBox). Two RadioButton controls are
available for selection – these are named HourlyRadioButton and SalaryRadioButton. Compute
the gross pay for an individual and display the value formatted as currency to a TextBox control
named GrossPayTextBb).
20 Marks
QUESTION THREE (20 MARKS)
(a) i) Define the VB intelligence 2 Marks
ii) Write the following statements in full and explain their use
TotalSalesDecimal += SaleAmountDecimal
3Marks
CountInteger -= 1 3Marks
b) Describe the use of the function Public shared variables as 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.
4 Marks
b) Briefly explain the importance of comments in a program. 4 Marks
d) ) Write code for a button named Agechecker that allow the user to tests if a person is a) A
teenager, b) in their twenties, c) in their thirties, or d) none of the above. Clicking the button is
the same as clicking the menu Agechecker on the menu. 12 Marks
QUESTION FIVE (20 MARKS)
a) Using examples explain the use of the method, Globalization enumeration as used in vb.net
6 Marks
b) Describe using an example the use of ToString and ToLower methods as used inVB.net
6Marks
c) Using sample VB code declare a module-level array and store values to the array
immediately. 8Marks

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

Written by