UNIVERSITY EXAMINATION 2024/2025
SCHOOL OF COMPUTING AND INFORMATICS
DEPARTMENT OF ENTERPRISE COMPUTING / DEPARTMENT OF
INFORMATION TECHNOLOGY
DIPLOMA IN BUSINESS INFORMATION TECHNOLOGY & DIPLOMA IN
INFORMATION TECHNOLOGY
REGULAR
UNIT CODE: DIT2212/DIT2203 UNIT TITLE: WEB DESIGN/WEB
PROGRAMMING
DATE: MON 31ST MARCH, 2025 2.00PM MAIN EXAM TIME: 2 HRS
INSTRUCTIONS
Answer All Questions in Section A and any other Two in Section
B.
No reference materials allowed.
Time 2 hours.
SECTION A (COMPULSORY – 30 MARKS)
QUESTION ONE
a) Define the following terms as used in the internet technology
(5 Marks)
i) ISP
ii) Web browser
iii) Home page
iv) HTML
v) World Wide Web
b) Outline and briefly explain FIVE factors to consider when choosing
content to include on a website (5 Marks)
c) State and explain the four elements that form the basic structure of an
HTML document; Show how they are arranged in an HTML document.
(4 Marks)
Paper One Page 11
d) Explain the use of the following tags (3 Marks)
i) <A>
ii) <IMG>
iii) <P>
e) Define the term search engine and give an example (2 Marks)
f) Name the character entities used to describe the following terms
(4 Marks)
i) Ampersand
ii) Registered trademark
iii) Non-breaking space
iv) Copyright symbol
g) What does client-side scripting entail? (2 Marks)
h) Explain one advantage and one disadvantage of using frames. (2 Marks)
i) Explain the following terms (3 Marks)
i) Web publishing
ii) Web server
iii) PHP and JavaScript
Section B:
Question Two
a) Outline four uses of web forms (4 Marks)
b) Give sample code that creates any five controls used with the forms e.g.
a button, a text field, a text area; check box, radio buttons, select list
etc. (10 Marks)
c) State and explain the two most commonly and graphic formats
(2 Marks)
d) Differentiate between empty tags and container tags
(4 Marks)
Question Three
a) Write an HTML code to generate the following table. Note that Kenya
Airways, Emirates and British Airways are hypertext links to the
Paper One Page 22
following URLs; [Link] [Link]
and [Link] respectively (9 Marks)
FLIGHT SCHEDULE
KENYA AGENCIES
17/03/2011 REPORTING DEPARTURE DESTINATION ARRIVAL
KENYA 19:00 20:30 UNITED 3:00
AIRWAYS STATES OF
EMIRATES 20:00 22:00 AMERICA 12:00
BRITISH 19:15 21:30 11:30
AIRWAYS
b) State two differences between Radio and Checkbox elements. (4 Marks)
c) State and explain any THREE attributes of the BODY element
(3 Marks)
d) Using coded examples, state and explain two HTML lists formats as
used in HTML Web pages (4 Marks)
Question Four
a) Explain the functions of the following form attribute. (4 Marks)
i) Action
ii) Method
b) Define the term hyperlink (2 Marks)
c) State three uses of HTML tables (3 Marks)
d) State and explain any three services offered by the internet (3 Marks)
e) Write the code that loads an image into the background of a web page
(4 Marks)
f) Describe the structural parts of a URL (4 Marks)
Question Five
a) Write the HTML code that will interlinks two web pages named
[Link] and IT_Students.htm (6 Marks)
b) Name any two protocols in the world wide web (2 Marks)
c) Describe attributes “Name” and “Target” as used within the anchor tag
(4 Marks)
d) Explain the purpose of the following tags and classify them as either,
empty or container tags. (4 Marks)
i) < H1>
Paper One Page 33
ii) <BR>
iii) <SCRIPT>
iv) <B>
e) Using examples, Differentiate between the following (4 Marks)
i) GET and POST attributes
ii) <th> and <td> attributes
Paper One Page 44