DIT504  APPLICATION PROGRAMMING a.

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

QUESTION ONE
a) Define the following terms as used in programming and support your answer with examples.
i. Object Oriented Programming
ii. Event Driven Programming
iii. Start Debugging
iv. Stop Debugging [8 Marks]
b) Explain how the Common Language Runtime (CLR) works in Visual studio.
[2 Marks]
c) State and explain any four elements of the visual studio Integrated Development Environment
(IDE) [8 Marks]
d) Outline five programming languages inbuilt with Visual studio. [4 Marks]
e) List any two events of a Visual basic application. [2 Marks]
f) Differentiate between groupbox and picturebox. [2 Marks]
g) Identify any four advantages of using a Visual Basic application. [4 Marks]
QUESTION TWO
a) The following is VB program extracted from a student’s project. Study the code and
answer the questions below.
Public Class Form2
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
Button1.Click
Dim assignment1decimal As Decimal
Dim assignment2decimal As Decimal
Dim totalscoredecimal As Double
assignment1decimal = Assignment1TextBox.Text
assignment2decimal = Assignment2TextBox.Text
If assignment1decimal >= 15 And assignment2decimal >= 20 Then
totalscoredecimal = assignment1decimal + assignment2decimal
TotalscoreTextBox.Text = totalscoredecimal.ToString
ElseIf assignment1decimal <= 14 And assignment2decimal <= 19 Then
MessageBox.Show(“The student has a supplemetary”)
End If

End Sub
End Class
Identify the following:
i. Two variables [2 Mark]
ii. One operator [1 Mark]
iii. One class [1 Mark]
iv. Two objects [2 Mark]
v. Two data types [2 Mark]
b) Give any two uses of a textbox control. [2 Marks]
c) Define the term concatenation as used in VB coding system. [1 Mark]
d) List two techniques used to organize if statement program logic. [2 Marks]
e) Describe any three rules that must be followed when writing the If statement.
[3 Marks]
f) VB provides numerous data types to allow programmers to optimize the use of
computer memory.
Giving examples how each is applied, explain the use of any two data types.
[4 Marks]
QUESTION THREE
i). Explain the logic “If Statement” as used in VB Programming. [2 Mark]
ii). Write a Pseudo code and a flow chart based on the following scenario below.[4 Marks]
“James tends to go golfing, mow the grass or sit on the porch when the weather
becomes warm but often chooses to drink a hot cup of tea or read a book when the
weather isn’t warm enough.”
iii). Describe three rules that must be followed when writing “If Statement” programs in
Visual Basic. [3 Marks]
iv). List any five features of a Visual Basic application. [5 Marks]
v). Explain the term “Visual Basic loop” in VB.net. [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 FOUR
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. [6 Marks]

b) 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. [2 Marks]
c) Given the following obects:
passwordTextbox
Form3
Form4
Required:
Write a VB program that loads the object “Form3” if the password “123” is entered and
immediately hides the object “Form4”. Otherwise the program should display the
message “Incorrect Password”. [3 Marks]
d) Explain any five rules and conventions a programmer needs to follow when using Visual
Basic controls. [5 Marks]
e) Using example in each case, differentiate between Camel casing and Hungarian casing.
[4 Marks]
QUESTION FIVE
i). Write VB Program code for the “Deposit” and “Withdrawal” buttons.


In your code, show various variables and calculations. [4 Marks]
ii) Explain the meaning of the following terms as used in Database implementation
a) Base table
b) Association table
c) Validation table [6 Marks]
iii) State and explain any four security features of a database [4 Marks]
iv) Create a VB Code that will display the following Message box [4 Marks]


v) Differentiate between the following VB codes
a) Me.Hide ()
b) Form2.show () [2 Marks]

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

Written by