DIT504  APPLICATION PROGRAMMING .

UNIVERSITY EXAMINATIONS: 2017/2018
EXAMINATION FOR THE DIPLOMA IN INFORMATION TECHNOLOGY
DIT504 APPLICATION PROGRAMMING
DATE: NOVEMBER, 2018 TIME: 1 ½ HOURS
INSTRUCTIONS: Answer question ONE and any other TWO questions.

QUESTION ONE
a) Explain the following terms as used in vb.net programming
(i) Console application.
(ii) Class Libraries
(iii) Common Language Runtime [CLR]
(iv) Event
(v) Object @2marks each [10 marks]
b) Differentiate between a sub procedure and a function [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) Using examples, Explain any THREE fundamental data types supported by the VB language.
[6 marks]
e) Draw a flowchart for a program to calculate the sum of ten numbers provided by a user
[4 marks]
QUESTION TWO
a) Explain FOUR controls used in visual Basic and state their functions [8 marks]
b) Write a code of a program that uses a loop to generate numbers between 10 and 50 and then the
program computes the sum of the numbers [6 marks]
c) Using the Do While loop write a program that displays a number, its square and its cube for the
numbers between 1 and 10 [6 marks]
QUESTION THREE
a) Write a program to calculate the sum of the first SIX positive integers using the Do while loop
[6 marks]
b) Rewrite the above code using the For..Next loop . [3 marks]
c) Explain the meaning of the following Visual Basic code. [2 marks]
i. Dim Test[5] as Integer
ii. ReDim Test[15] as Integer
d) Explain THREE types of errors encountered during program development [6 marks]
e) Write pseudo code for a program to calculate the sum of ten numbers provided by a user
[3 marks]
QUESTION FOUR
a) Write a vb.net program to accept a number then computes for the numbers’ square and square-root.
[6 marks]
b) Give TWO advantages of using select.Case [2 marks]
c) describe THREE data operators supported by VB.net [6 marks]
d) Write some simple code that can display a grade in a message box, given the marks through a
textbox txtTest, using the following grading system. Use Select..Case.
Marks Grade
0 – 49 Fail
50 – 64 Pass
65 – 74 Credit
75 – 100 Distinction
Any other Invalid [6 marks]
QUESTION FIVE
a) Distinguish between a selection control and a loop control structure [4 marks]
b) Outline FOUR characteristics of a good algorithm [4 marks]
c) Explain any THREE advantages of using functions in a program [3 marks]
d) Populate the steps followed when linking a project to Database [7 marks]
e) Explain the term debugging [2 marks]

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

Written by