UNIVERSITY EXAMINATION 2024/2025
SCHOOL OF COMPUTING AND INFORMATICS
DEPARTMENT OF INFORMATION TECHNOLOGY/ENTERPRISE COMPUTING
DIPLOMA IN INFORMATION TECHNOLOGY
REGULAR
UNIT CODE: DIT2210 UNIT TITLE: INTERNET PROGRAMMING
DATE: THUR 24TH JULY, 2025 2.00PM MAIN EXAM TIME: 2 HOURS
INSTRUCTIONS
Answer All Questions In Section A and any other Two In Section B.
No reference materials allowed.
SECTION A: (COMPULSORY – 30 MARKS)
QUESTION ONE
a) Discuss three benefits of using JavaScript (6 Marks)
b) Explain the following terms (8 Marks)
i. Client side scripting
ii. Server side scripting
iii. Form validation
iv. DOM
c) Using relevant examples, show three techniques of incorporating
JavaScript into HTML web pages (6 Marks)
d) Differentiate between [Link]() and [Link]() functions
as used in JavaScript. Support your answer using examples (4 Marks)
Paper One Page 1
e) Write some JavaScript code to check if a number entered into a text box
is a number or is not a number (6 Marks)
SECTION B: (40 MARKS)
QUESTION TWO
a) Explain the three main Javascript interactive dialog boxes. Support your
answer using relevant scripted examples (6 Marks)
b) Discuss three benefits of client scripting (6 Marks)
c) Explain two benefits of commenting scripts (4 Marks)
d) Differentiate between user defined functions and in built functions
(4 Marks)
QUESTION THREE
a) Discuss five JavaScript event handlers. (10 Marks)
b) Write Javascript code that validates the email address. (6 Marks)
c) Differentiate between data type and a variable. (4 Marks)
QUESTION FOUR
a) Discuss any three types of JavaScript operators (6 Marks)
b) Discuss three services offered by the internet (6 Marks)
c) Write some Javascript code that uses a loop to produce the following.
(8 Marks)
*****
****
***
**
QUESTION FIVE
a) Write some HTML code to produce the following login screen. (10 Marks)
Paper One Page 2
b) Illustrate how a variable is declared in JavaScript. (2 Marks)
c) Explain four factors to consider when designing a website. (8 Marks)
Paper One Page 3