UNIVERSITY EXAMINATIONS: 2018/2019
EXAMINATION FOR THE DIPLOMA IN BUSINESS INFORMATION
TECHNOLOGY/ DIPLOMA IN INFORMATION
DIT 504: APPLICATION PROGRAMMING
DATE: APRIL, 2019 TIME: 2 HOURS
INSTRUCTIONS: Answer QUESTION ONE and any other TWO Questions.
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.
iii). Define the following controls used in Visual studio.
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.
ix) Explain the meaning of the following VB Buttons and code.
MessageBox.Show(“OK”) [4 Marks]
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
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
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
d. Backcolor property
e. SizeMode property
iv). Write a VB Program that will display the following output when the “CheckOut” button
In your code, show various variables and calculations. [10 Marks]
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:
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.
viii). Differentiate between the following types of constants.
a) Intrinsic Constants
b) Named Constants [2 Marks]
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.
vii). Differentiate between the following words as used in database integration. [4 Marks]
a. Primary key and Foreign key.
b. Record and Attribute.
UNIVERSITY EXAMINATIONS: 2018/2019
EXAMINATION FOR THE DIPLOMA IN INFORMATION
DATE: APRIL 2019 TIME: 2 HOURS
INSTRUCTIONS: ATTEMPT QUESTION ONE AND ANY OTHER TWO QUESTIONS.
a) E- commerce has brought about benefits to all aspects of life, advantages to the individual,
organization as well as the society as a whole. In your own words explain FIVE benefits
to the society. [5 Marks]
b) Using examples ccompare brick-and-mortar and click-and-mortar organizations. [4 Marks]
c) Limitations of E- Commerce can be classified as being technological or the nontechnological. Which ones can easily be overcome in Kenya? Explain why.
d) Distinguish the following terms:
i. Intranet and extranet. [2 Marks]
ii. Guided media and unguided media. [2 Marks]
e) An E-market place is an online market in which buyers and sellers exchange goods and
services. Outline FIVE advantages that e- market spaces have brought to consumers.
f) The success and security of E-commerce depends on the confidentiality, integrity and
availability of information and the business website. Elaborate. [6 Marks]
g) Define E- commerce. [1 Mark]
a) Web advertising has enabled marketers and advertisers to interact directly with customers.
With examples explain FIVE reasons why web advertising has become popular than the
traditional static advertising methods. [5 Marks]
b) Define the following internet advertising terminologies. [5 Marks]
i. Ad views
ii. Click through
c) Explain the following internet security terms. [5 Marks]
i. Non- repudiation
ii. Salami slicing
iii. Denial of service attack
iv. Identity theft
d) You are the web administrator in your firm. Explain controls that can help counter the
above threats. [5 Marks]
a) Personalization refers to matching of services, products and advertising content to
individuals and preferences also referred to as user profile. Explain FIVE major strategies
marketers use to compile user profiles. [5 Marks]
b) Explain the advantages that companies derive from having loyal customers. [5 Marks]
c) Describe how trust can be increased as far as online business is concerned. [5 Marks]
d) Explain the challenges of stopping e- commerce crimes. [5 Marks]
a) A number of factors come to play in determining whether a particular mode of e-payment
achieves critical mass. Explain any FIVE crucial factors according to Schmalensee.
b) Briefly describe the following payment cards. [6 Marks]
i. Credit cards
ii. Charge cards
iii. Debit cards
c) Explain the key players in processing card payments. [5 Marks]
d) Explain the term ethics and expound on FOUR ethical computer behaviors in the office.
a) Describe FOUR benefits of Electronic data interchange (EDI) in a business. [4 Marks]
b) Explain SIX drivers of E-Commerce in a society. [6 Marks]
c) Identify FIVE advantages of E- banking over traditional banking. [5 Marks]
d) Explain FIVE factors you would consider while designing a commercial website.
UNIVERSITY EXAMINATIONS: 2018/2019
EXAMINATION FOR DIPLOMA IN INFORMATION TECHNOLOGY
DIT 410: JAVA PROGRAMMING
MODE: FULL TIME/PART TIME
DATE: MARCH, 2019 TIME: 2 HOURS
INSTRUCTIONS: Answer question ONE and any other TWO.
QUESTION ONE[30 MARKS]
a) Give FOUR advantages of Java as an object oriented programming language.
b) Explain the FIVE states of a thread in Java programming.
c) Describe the following terms.
i. Byte code
d) Java has both primitive and reference types. Name an appropriate primitive data type to
represent each of the follow:
i. The number of students in a university
ii. The average age of a student in the university
iii. Whether or not a student has enrolled
iv. The response of the asked to type ‘y’ to continue or ‘n’ to exit.
e) Write a Java program to read six characters, store then in an array, sort then display in
f) For each of these expressions, determine its result. Assume the value of text is a string
String text = “Java Programming”;
iv. text.substring(0,1) + text.substring(7,9)
QUESTION TWO[20 MARKS]
a) What is an exception as used in Java programming?
b) What is the difference between checked and unchecked exceptions?
c) Briefly explain String Buffer as used in Java programming.
d) Briefly outline any three methods used in String Buffer class.
e) Write a java program to read a non-zero integer then reverse its digits then display the
resultant number e.g. if the user keys in 2019 the program will reverse the digits and display
QUESTION THREE [20 MARKS]
a) Define a wrapper class as used in java langauge.
b) Complete the following table of primitive types using the corresponding wrapper class for
c) Explain the concept of method overloading as used in java programming.
d) Write a java program to demonstrate the use of method overloading
QUESTION FOUR [20 MARKS]
a) Differentiate between a local variable and instance variable in java.
b) Write a Java program to calculate the area and circumference of a circle, given the following
c) In java language, a statement can be defined as a complete instruction to a computer to
perform some task. In this regard, describe the following types of java statements.
i. Empty statement.
ii. Selection statetement.
iii. Jump statement.
d) Write a java program to print integers that are multiples of five between 2 and 61.
QUESTION FIVE [20 MARKS]
a) Differentiate between order of precedence and associativity as used in java operators.
b) The table below shows the water billing criteria in a certain town. Use it to answer the
question that follows.
Write a java program that accepts the current and previous meter readings, the program then
computes and outputs amount pyable by client. Note that a standing charge of Ksh.120 is
chargeable for all customers regardless of the units used.
c) Describe the steps involved in handling exceptions in Java.
d) Using an example describe constructor method as used in Java programming.