0% found this document useful (0 votes)
17 views3 pages

Internet Programming

This document outlines the examination details for the Diploma in Information Technology, specifically for the unit titled Internet Programming. It includes instructions for answering questions, a breakdown of sections A and B with various topics related to JavaScript, including benefits, scripting techniques, and code examples. The exam is scheduled for July 24, 2025, and consists of compulsory and optional questions.

Uploaded by

douglaskpt
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views3 pages

Internet Programming

This document outlines the examination details for the Diploma in Information Technology, specifically for the unit titled Internet Programming. It includes instructions for answering questions, a breakdown of sections A and B with various topics related to JavaScript, including benefits, scripting techniques, and code examples. The exam is scheduled for July 24, 2025, and consists of compulsory and optional questions.

Uploaded by

douglaskpt
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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

You might also like