DIT504  APPLICATION PROGRAMMING.

UNIVERSITY EXAMINATIONS: 2015/2016
EXAMINATION FOR THE DIPLOMA IN BUSINESS/ INFORMATION
TECHNOLOGY
DIT504 APPLICATION PROGRAMMING
DATE: AUGUST 2016 TIME: 1½HOURS
INSTRUCTIONS: Answer Any THREE Questions.

QUESTION ONE
a) Define the following terms as used in programming and support your answer with examples.
i. Method
ii. Variable
iii. Comments
iv. Event driven programming [8 Marks]
b) State the syntax of the functions msgbox[] and inputbox[] [2 Marks]
c) Write a windows application to accept inputs for the dimensions of a rectangle through the
input box function and then compute the area and perimeter of the rectangle. The Area and
Perimeter should be displayed through a Message Box [8 Marks]
d) Explain the term debugging [2 Marks]
QUESTION TWO
a) Outline FOUR characteristics of a good algorithm [4 Marks]
b) A program is required to process and award students grades for students in a class according
to the following summary table.

Write a VB program that prompts the user for the student’s Marks and outputs the
appropriate grade. [6 Marks]
c) Describe the THREE control structures used in programming [6 Marks]
d) List the steps you would follow to convert your visual basic project into an executable file
(.EXE) [4 Marks]
QUESTION THREE
a) Draw a flowchart for a program to calculate the sum of ten numbers provided by a user
[4 Marks]
b) Compare and contrast option buttons and checkboxes as used in Visual Basic. [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.. The program should output the Kenya Shilling value through
a Message Box function upon the click of a command button. (1 US Dollar = 105 Kshs)
[8 Marks]
QUESTION FOUR
a) Explain how you would come up with the following menu in an MDI form

NB: Applications is a main menu and the rest are sub Menu items. There is a separator bar
between Minimize forms and Exit [5 Marks]
b) Explain any TWO controls that can be used to group other controls [2 Marks]
c) With the help of a sample code, explain the following commands used in Visual basic
[4 Marks]
i. Me
ii. Show
d) Briefly explain the importance of comments in a program. [3 Marks]
e) The Screen interface below shows one of the elements of the Visual Basic IDE.
i. Name the parts labeled a, b and c [3 Marks]
ii. Briefly explain the functions of the parts you have named above. [3 Marks]

QUESTION FIVE
a) Create a database of your choice and explain how you will connect it to a GUI (design
this too) that reflects the content of the database for easy manipulation [12 Marks]
b) Explain the steps followed when creating a report from the database [8 Marks]

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

Written by