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

Event Driven Programming Question Paper

Event Driven Programming 

Course:Diploma In Information Technology

Institution: Kca University question papers

Exam Year:2010



UNIVERSITY EXAMINATIONS: 2008/2009
STAGE V EXAMINATION FOR DIPLOMA IN INFORMATION
TECHNOLOGY
DIT 504: EVENT DRIVEN PROGRAMMING
DATE: APRIL 2010 TIME: 1½HOURS
INSTRUCTIONS: Answer any THREE questions
Question One
a) State the meaning of the following terms as used in event driven programming
i. Object
ii. Property
iii. Procedure
iv. Project
v.Method [10 Marks]
b) Explain any FIVE parts of visual basic IDE [10 Marks]
Question Two
The Screen interface below shows one of the elements of the Visual Basic IDE.
a) Name the parts labeled a, b and c [3 Marks]
b) Briefly explain the functions of the parts you have named above. [6 Marks]
c) Code in Visual Basic is stored in modules. Discuss the THREE main modules. [6 Marks]
A
B
C
2
d) Write a short program that displays “Event Driven Programming is Non-Procedural
Programming Language” 50 times on the form when click a command button. [5 Marks]
Question Three
a) List the steps followed when: -
i. Setting the start-up object for your application [2 Marks]
ii. Adding an Active-X object to your toolbar [2 Marks]
iii. Converting VB project into an executable file (.EXE) [2 Marks]
b) Explain any TWO controls that can be used to group other controls. [4 Marks]
c) Explain the difference between the following as used in VB 6.0 programming
i. Function procedure and a Sub procedure [2 Marks]
ii. Check box and Option button [2 Marks]
iii. Label and Textbox [2 Marks]
iv. IDE and Form designer [2 Marks]
v. Implicit and Explicit declarations [2 Marks]
Question Four
Consider the Visual Basic program below & answer the questions that follow
Private sub cmdCompute_Click ()
Dim x As Integer
X=1
Do While x=<10
If x<6 And x>2
Print x*3
X=x+1
Loop
End Sub
a) Write down the output produced by this program [4 Marks]
b) Rewrite the same program using Do Until…Loop instead of Do While…. Loop [4 Marks]
c) Write a Visual Basic program to calculate the area of a semi-circle. Use InputBox () function to
enter the value of the radius. Declare Pi as a constant. [5 Marks]
3
d) Explain TWO ways of writing a comment in Visual Basic [4 Marks]
e) Explain briefly the TWO main types of constants found in Visual Basic [3 Marks]
Question Five
a) A database in drive C:\ and is named dbcollege.mdb is contained in a folder called students
system. You are required to use a data control (DatCollege) to link the database to a visual
basic program. The following are the fields in the database table named tblstudents, which are
displayed using textboxes. Admission Number, Name, Town, Course.
Required:
i) State the values for each of the following properties of the data control.
?? Database name [2 Marks]
?? Record source [2 Marks]
ii) State the values for the following properties of the bound controls (Text Boxes)
?? Datasource
??Datafield
Control Datasource Datafield
[4 Marks]
b) Write the codes to perform the following tasks. [6 Marks]
i. Add a new record
ii. Update the record
iii. Move to next record
c) Write code to search for a value entered through an input box dialog given that the
RecordSetType setting of the data control is Dynaset. [6 Marks]






More Question Papers


Popular Exams



Return to Question Papers