Posted on Leave a comment

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.

Posted on Leave a comment

DIT502 E-COMMERCE.

UNIVERSITY EXAMINATIONS: 2018/2019
EXAMINATION FOR THE DIPLOMA IN INFORMATION
TECHNOLOGY
DIT502 E-COMMERCE
DATE: APRIL 2019 TIME: 2 HOURS
INSTRUCTIONS: ATTEMPT QUESTION ONE AND ANY OTHER TWO QUESTIONS.

QUESTION ONE
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.
[5 Marks]
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.
[5 Marks]
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]
QUESTION TWO
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
iii. CPM
iv. Hit
v. Visit
c) Explain the following internet security terms. [5 Marks]
i. Non- repudiation
ii. Salami slicing
iii. Denial of service attack
iv. Identity theft
v. Ransomware
d) You are the web administrator in your firm. Explain controls that can help counter the
above threats. [5 Marks]
QUESTION THREE
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]
QUESTION FOUR
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.
[5 Marks]
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.
[4 Marks]
QUESTION FIVE
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.
[4 Marks]

Posted on Leave a comment

DIT410  JAVA PROGRAMMING 2.

UNIVERSITY EXAMINATIONS: 2018/2019
EXAMINATION FOR DIPLOMA IN INFORMATION TECHNOLOGY
DIT 410: JAVA PROGRAMMING
MODE: FULL TIME/PART TIME
ORDINARY EXAMINATIONS
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.
4 Marks
b) Explain the FIVE states of a thread in Java programming.
5 Marks
c) Describe the following terms.
i. Byte code
ii. Interface
iii. Package.
iv. Class
v. Method
5 Marks
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.
4 Marks
e) Write a Java program to read six characters, store then in an array, sort then display in
descending order.
8 Marks
f) For each of these expressions, determine its result. Assume the value of text is a string
“Java Programming”
String text = “Java Programming”;
i. text.substring(0,4)
ii. text.length()
iii. text.substring(8,12)
iv. text.substring(0,1) + text.substring(7,9)
4 Marks
QUESTION TWO[20 MARKS]
a) What is an exception as used in Java programming?
2 Marks
b) What is the difference between checked and unchecked exceptions?
4 Marks
c) Briefly explain String Buffer as used in Java programming.
2 Marks
d) Briefly outline any three methods used in String Buffer class.
6 Marks
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
9102.
6 Marks
QUESTION THREE [20 MARKS]
a) Define a wrapper class as used in java langauge.
3 Marks
b) Complete the following table of primitive types using the corresponding wrapper class for
each type.


5 Marks.
c) Explain the concept of method overloading as used in java programming.
4 Marks
d) Write a java program to demonstrate the use of method overloading
8 Marks
QUESTION FOUR [20 MARKS]
a) Differentiate between a local variable and instance variable in java.
2 Marks
b) Write a Java program to calculate the area and circumference of a circle, given the following

8 Marks
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.
6 Marks
d) Write a java program to print integers that are multiples of five between 2 and 61.
4 Marks
QUESTION FIVE [20 MARKS]
a) Differentiate between order of precedence and associativity as used in java operators.
2 Marks
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.
9 Marks
c) Describe the steps involved in handling exceptions in Java.
4 Marks
d) Using an example describe constructor method as used in Java programming.
5 Marks