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:2010



UNIVERSITY EXAMINATIONS: 2010/2011
FIRST YEAR STAGE EXAMINATION FOR THE DEGREE OF BACHELOR
OF SCIENCE IN INFORMATION TECHNOLOGY
BIT 2105: APPLICATION PROGRAMMING
DATE: DECEMBER 2010 TIME: 2 HOURS
INSTRUCTIONS: Answer question ONE and any other TWO questions
QUESTION ONE (30 marks compulsory)
a) Explain the following terms
i) Program
ii) Project
iii) Control
iv) Events
v) Methods
vi) Objects
vii) Properties (14 Marks)
b) Differentiate between event driven programming and procedural programming (4 Marks)
c) Describe the three steps followed when creating a VB application (9 Marks)
d) List three kinds of modules used in VB (3 Marks)
QUESTION TWO (20 MARKS)
a) List any 3 intrinsic controls and 3 events used in VB and explain their functions. (6 Marks)
b) List and briefly describe 4 flow control constructs supported by Visual Basic. (8 Marks)
2
Using examples to illustrate describe two ways of passing arguments to a VB program (6 Marks)
QUESTION THREE (20 MARKS)
a) Describe three different ways of declaring variables in VB (6 Marks)
b) A code segment to add the east Africa countries to a list control (6 Marks)
c) Write Visual Basic code that can be used to produce the following message box (6 Marks)
d) Explain two properties of the data control (2 Marks)
QUESTION FOUR (20 MARKS)
(a) Distinguish between compile time errors and logic errors, briefly explaining any two (2) causes
for each. (4 Marks)
(b) Outline the procedure of adding a toolbar in a VB application and show how you can access
each of the inserted buttons. Use proper names to describe this. (4 Marks)
(c) With an example, describe the structure of do…until loop and do until…loop (4 Marks)
(d) Compare and contrast a for loop and a while….loop Wend (4 Marks)
(e) Write a subroutine to implement the following algorithm:
i) Declare an array ‘score’ for storing 5 subject scores for each of the 30 students in
a class.
ii) Repeat the following for all students:
• Input the 5 subject scores into the array.
• Compute the total and average mark for each student.
• If average is at least 50 and not more than 100, then output “Student
3
passed” otherwise output “Student failed” (4 Marks)
QUESTION FIVE (20MARKS)
(a) Assuming a database containing the following fields:
(i) Name
(ii) Address
(iii) Town
(b) Explain how you can access these fields in the database from VB environment. ( 6 Marks )
(c) 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 )
(d) Differentiate between procedural and event driven programming ( 3 Marks )
(e) Explain the purpose of VB files with the following extensions:
(i) vbp
(ii) .frm ( 2 Marks )






More Question Papers


Popular Exams



Return to Question Papers