DIT504  APPLICATION PROGRAMMING .

UNIVERSITY EXAMINATIONS: 2017/2018
EXAMINATION FOR THE DIPLOMA IN INFORMATION
TECHNOLOGY
DIT504 APPLICATION PROGRAMMING
FULLTIME/PARTTIME
DATE: AUGUST, 2018 TIME: 1 ½ HOURS
INSTRUCTIONS: Answer any THREE questions.

QUESTION ONE
i). Define the following IDE components of a Visual studio.
a. Form Designer
b. Solution explorer
c. Properties window
d. Toolbox window [4 Marks]
ii). Give three rules in naming VB control in Visual studio.
[3 Marks]
iii). Define the following controls used in Visual studio.
a. GroupBox
b. MenuStrip
c. CheckBox
d. ComboBox
e. ListBox [5 Marks]
iv). Explain the word Concatenation as used in VB programming. Give any two examples on
how it is applied. [3 Marks]
v). Give any three examples of variable names with their respective data types.
[3 Marks]
vi). Show how the variable names listed above can be declared. [2 Marks]
vii). Define the following terms as used in programming and support your answer with
examples.
a. Object
b. Event
c. Class
d. Debug [8 Marks]
viii). Differentiate between a message box and an input box [2 Marks]
QUESTION TWO
i). Explain the logic “If Statement” as used in VB Programming. [2 Mark]
ii). Study the flow chart below and write a pseudo code of the same [4 Marks]


iii). Describe three rules that must be followed when writing “If Statement” programs in
Visual Basic. [3 Marks]
iv). 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”. [5 Marks]
v). Differentiate between ToUpper and ToLower character methods in VB coding.
[2 Mark]
vi). State the meaning of the following Visual basic loops. [4 Marks]
a. While Loops
b. Do Loops
c. For Loops
d. For Each Loops
QUESTION THREE
i). State and explain any three types of database tables used in Visual Basic. [3 Marks]
ii). State the meaning of the MenuStrip control [2 Marks]
iii). State any Five database products. [5 Marks]
iv). Write a VB Program that will display the following output when the “CheckOut” button
is clicked.


In your code, show various variables and calculations. [10 Marks]
QUESTION FOUR
i). Give the clear steps of linking a database to a VB system. [6 Marks]
ii). Using examples in each case, differentiate between record and a fieldname. [2 Marks]
iii). State the meaning of the word “DIM” statement. Give two examples of how it used.
[3 Marks]
iv). State and explain two different types of constants. [4 Marks]
v). List any two levels of variable scope. [2 Marks]
a) Give the output of the following string concatenations.
i). “10” & “00”
ii). “20” & ” ” & “20”
iii) “20” & ControlChars.NewLine & “20” [3 Marks]
QUESTION FIVE
i). Define the term Database Design. [2 Marks]
ii). Briefly explain the meaning of the following components of visual studio. [3 Marks]
a. .NET Framework Class Library
b. Common Language Runtime (CLR).
c. MSDN (Help).
iii). State any four programming languages today. [2 Marks]
iv). Give any four reasons of using menus in Visual Basic environment. [4 Marks]
v). State the advantages of using comments when programming. [4 Marks]
vi). Explain the meaning of the word “Submenu” as used in Visual basic programming.
[1 Mark]
vii). Write a VB programme that will display the following output message. [4 Marks]

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

Written by