DIT504  APPLICATION PROGRAMMING.

UNIVERSITY EXAMINATIONS: 2018/2019
EXAMINATION FOR THE DIPLOMA IN BUSINESS INFORMATION
TECHNOLOGY/ DIPLOMA IN INFORMATION
TECHNOLOGY
DIT 504: APPLICATION PROGRAMMING
DATE: APRIL, 2019 TIME: 2 HOURS
INSTRUCTIONS: Answer QUESTION ONE and any other TWO 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). Define the term “DIM” statement and show how it’s used. [2 Marks]
vii). Write a VB Program that captures two assignments (assignment 1 and assignment 2)
respectively. The program should compute the difference between the first assignment
and the second assignment. [3 Marks]
viii). 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.
[3 Marks]
ix) Explain the meaning of the following VB Buttons and code.
ResetEmployeeButton
Me.Close
ExitButton
MessageBox.Show(“OK”) [4 Marks]
QUESTION TWO
i). Explain the logic “If Statement” as used in VB Programming. [2 Mark]
ii). Differentiate between a Pseudo code and a Flow chart. [4 Marks]
iii). Describe three rules that must be followed when writing “If Statement” programs in
Visual Basic. [3 Marks]
iv). Differentiate between the following naming conventions and give examples in each case.
i. Camel Casing and
ii. Hungarian Naming Conventions
[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 THREE
i). State and explain any three types of database tables used in Visual Basic. [3 Marks]
ii). List any two database products. [2 Marks]
iii). Explain the meaning of the following form properties used in Visual basic. [5 Marks]
a. Visible property
b. Me.Close()
c. Textbox1.Clear()
d. Backcolor property
e. SizeMode property
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). Jamii University has decided to build a student database that can manage all the students
records. As a VB Programmer, suggest any three products they can use to build the
database. [3 Marks]
ii). Write VB Codes that changes the background color of a form for the following buttons:
RedradioButton
Blueradiobutton [2 Marks]
iii). Give outputs of the following codes
a) “Caroline” & “Mbugua”
b) “Computer” & ” ” & “Science”
c) “Computer” & ControlChars.NewLine & “Systems” [3 Marks]
iv). Using examples in each case, differentiate between object-oriented programming
language and event-driven programming language. [2 Marks]
v). Give three functions how an input box is used. [3 Marks]
vi). 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. [3 Marks]

Below 40 REPEAT THE UNIT
vii). Define the term Concatenation as used in VB coding system.
[2 Marks]
viii). Differentiate between the following types of constants.
a) Intrinsic Constants
b) Named Constants [2 Marks]
QUESTION FIVE
i). Define the term “Base Table”. [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). List any four advantages of using menus in Visual Basic environment. [4 Marks]
v). State the advantages of using comments when programming. [5 Marks]
vi). Explain the meaning of the word “Debugging” as used in Visual basic programming.
[1 Mark]
vii). Differentiate between the following words as used in database integration. [4 Marks]
a. Primary key and Foreign key.
b. Record and Attribute.

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

Written by