DIT504  APPLICATION PROGRAMMING.

UNIVERSITY EXAMINATIONS: 2016/2017
EXAMINATION FOR THE DIPLOMA IN INFORMATION
TECHNOLOGY
DIT504 APPLICATION PROGRAMMING
DATE: AUGUST, 2017 TIME: 2 HOURS
INSTRUCTIONS: Answer Question One & ANY OTHER TWO questions.

QUESTION ONE [30 MARKS] – COMPULSORY
a) Define the following terms as used in programming and support your answer with examples.
i. Object
ii. Event
iii. Class
iv. Debug [8 Marks]
b) Differentiate between a message box and an input box [2 Marks]
c) State and explain any four elements of the visual studio Integrated Development Environment
(IDE) [8 Marks]
d) List any four controls found in the toolbox. [4 Marks]
e) List any two programming languages. [2 Marks]
f) Using examples in each case, differentiate between object-oriented programming language
and event-driven programming language. [6 Marks]
QUESTION TWO [20 MARKS]
a) Briefly explain the meaning of the following components of visual studio
i). .NET Framework Class Library
ii). Common Language Runtime (CLR).
iii). MSDN (Help). [6 Marks]
b) Name the following controls contained in the form below:

d) Write a program that accepts price as decimal through an Input Box function and quantity as
integer. The program should output the subtotal of the price multiplied by quantity in another
input box. [10 Marks]
QUESTION THREE [20 MARKS]
a) Explain the meaning of the following commands used in Visual basic
i). Me.Show()
ii). Me.Close()
iii). Textbox1.Clear()
iv). Me.Backcolor()
v). Me.Forecolor() [5 Marks]
b)Give the output of the following string concatenations.
i). “42” & “16”
ii). “42” & ” ” & “16”
iii). “42” & ControlChars.NewLine & “16” [3 Marks]
c) State and explain five data types found in VB.NET coding system. [10 Marks]
d) Using an example, explain the meaning of the word “DIM” statement.
[2 Marks]
A
B
C
D
QUESTION FOUR [20 MARKS]
a) 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 will generate the grading system below. [10 Marks]

b) Write a VB Program that captures the student names, marks for Assignment one and Assignment
two. If Assignment one is greater than or equal to 15 and Assignment two is greater than or equal
to 20, then the program should display the total of Assignment one and Assignment two. Else if
assignment one is less than or equal to 14 and assignment two is less than or equal to 19 then the
program should display the message “The student has a Supplementary”.
[10 Marks]
QUESTION FIVE [20 MARKS]
a) Define the following terms as used in VB Studio.
i). MENU
ii). Rows
iii). Columns [3 Marks]
b) List any three database products. [3 Marks]
c) Write a VB Program that captures two values (Value 1 and Value 2) respectively. The
program should compute the difference between Value 1 and Value 2. [7 Marks]
d) Write a VB Program that captures two values (Value 1 and Value 2) respectively. The
program should compute the sum of Value 1 and Value 2 raised to the power of two.
[7 Marks]

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

Written by