BIT2105  APPLICATION PROGRAMMING.

UNIVERSITY EXAMINATIONS: 2017/2018
EXAMINATION FOR THE DEGREE OF BACHELOR OF SCIENCE IN
INFORMATION TECHNOLOGY
BIT2105 APPLICATION PROGRAMMING
FULL TIME/PART TIME/ DISTANCE LEARNING
DATE: APRIL, 2018 TIME: 2 HOURS
INSTRUCTIONS: Answer Question One & ANY OTHER TWO questions.

QUESTION ONE (COMPULSORY 30 MARKS)
(a) Explain the following terms as used in VB
(i) Masked text box
(ii) properties window
(iii) Class
(iv) Method
(v) Lasso method 5Marks
(b) Using vb.net to illustrate describe the input –process- output model of programming, give
example controls used in each of the phases of this process 9Marks
(c) Briefly describe the terms below as used in VB.net
(i) Globalization enumeration
(ii) Parse
(iii) Explicit Declaration 6Marks
(d) Differentiate between the name and Text properties of any control 4Marks
(e) VB has two different types of constants describe them using examples 6 Marks
QUESTION TWO (20 MARKS)
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.
(20 Marks)
QUESTION THREE (20 MARKS)
(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 (6Marks)
(c) Define a module. Visual Basic stores code in three different modules. List and explain these
modules. (8 Marks)
QUESTION FOUR (20MARKS)
a) Describe the various ways of running VB programs (4 Marks)
b) Briefly explain how to add comments in a program in VB.net (4 Marks)
c) Briefly describe any TWO advantages of using sub procedures or functions in a program.
(4 Marks)
d) Desribe the main components of the VBinet IDE. (8 Marks)
QUESTION FIVE (20 MARKS)
a) Using examples to illustrate describe the various ways of declaring variables and their scope
in VB.net. (6 Marks)
b) Describe using an example in VB the use of ToUpper and Tolower methods
(6 Marks)
c) Using sample VB code declare a module-level array and store values to the array
immediately. (8 Marks)

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

Written by