Get premium membership and access revision papers, questions with answers as well as video lessons.

Application Programming Question Paper

Application Programming 

Course:Bachelor Of Science In Information Technology

Institution: Kca University question papers

Exam Year:2009



UNIVERSITY EXAMINATIONS: 2008/2009
SECOND YEAR EXAMINATION FOR THE DEGREE OF BACHELOR OF
SCIENCE IN INFORMATION TECHNOLOGY
BIT 2105: APPLICATION PROGRAMMING
DATE: AUGUST 2009 TIME: 2 HOURS
INSTRUCTIONS: Answer question ONE and any other TWO questions
QUESTION ONE (30 MARKS) COMPULSORY
a) Explain the following terms:
(i) Object
(ii) Property
(iii) Event
(iv) Method
(v) Control [5 Marks]
b) Differentiate between:
(i) Event procedure and general procedures
(ii) Local and global variables
(iii) Immediate window and code window [9 Marks]
c) Briefly describe the terms below
(i) Event Driven Programming
(ii) Implicit Declaration
(iii) Explicit Declaration [6 Marks]
2
d) Differentiate between a list box and a combo box. [4 Marks]
e) The RecordSet Type property specifies the type of RecordSet that a Data Control is connected to,
explain three setting this property may take. [6 Marks]
QUESTION TWO (20 MARKS)
a) Define the following terms and clearly show how they are declared and initialized:
i) Variable
ii) Constant
iii) Array
[6 Marks]
b) List any 3 objects and 3 events used in VB and explain their functions. [6 Marks]
c) List and briefly describe 4 flow control constructs supported by Visual Basic. [8 Marks]
QUESTION THREE (20 MARKS)
a) Briefly explain the difference(s) between design-time and run-time modes in Visual Basic.
[4 Marks]
b) Explain briefly the following events stating one possible use for each.
i) Form Load
ii) KeyPress
iii) Query Unload
[6 Marks]
c) Define a module. Visual Basic stores code in three different modules. List and explain these
modules. [10 Marks]
QUESTION FOUR [20 MARKS]
a) Assuming a database containing the following fields:
(i) Name
(ii) Address
(iii) Town
Explain how you can access these fields in the database from VB environment. [6 Marks]
3
b) Explain the difference between:
(i) A data control and a data bound control.
(ii) An array and a record.
(iii) Name and caption property of a control in VB. [9 Marks]
c) Differentiate between procedural and event driven programming [3 Marks]
d) Explain the purpose of VB files with the following extensions:
(i) vbp
(ii) .frm [2 Marks]
QUESTION FIVE (20 MARKS)
a) Compare and contrast option buttons and checkboxes as used in Visual Basic. [4 Marks]
b) Briefly explain the importance of comments in a program. [4 Marks]
c) Briefly describe any TWO advantages of using sub procedures or functions in a program.
[4 Marks]
d) Write a program that accepts money in US dollars through an Input Box function and converts it to
Kenya Shillings, through the use of a function named convert. The program should output the
Kenya Shilling value through a Message Box function upon the click of a command button. (1 US
Dollar = 76 Kshs) [8 Marks]






More Question Papers


Popular Exams



Return to Question Papers