m qev- !
L'!a? j
iW"03
='?' s'n4 ,-
UNIVERSITY OF EMBU
2021/2022 ACADEMIC YEAR
FIRST SEMESTER EXAMINATIONS
SECOND YEAR EXAMINATION FOR THE DEGREE OF BACHELOR OF
SCIENCE IN COMPUTER SCIENCE, BACHELOR OF SCIENCE IN INFORMATION
TECHNOLOGY AND BACHELOR OF BUSINESS IN INFORMATION TECHNOLOGY
CSC 217: WEB PROGRAMMING AND APPLICATIONS
DATE:DECEMBER 6 ,2021 TIME: 2:00PM-5:OOPM
INSTRUCTIONS:
Answer Question ONE and ANY Other TWO Questions
i
QUESTION ONE (30 MARKS)
a) Define the following terms as used in network communication:
i. Internetworking (2 marks)
it. Tunneling (2 marks)
iii. Packet fragmentation (2 marks)
IV. Network protocol (2 marks)
v. Network infrastructure (2 marks)
b) Describe what is meant by "HTTP is stateless"? (2 marks:
r:':?
150 27001:2013 Certified Knowledge Trandorms u 150 9001:2015 Certified
Page 1 of 4
c) Illustrate two methods that can be used to insert comments in HTML document.
(2 marks)
d) Name and briefly describe the three types of links. (6 marks)
e) Differentiate between the spamming and phishing. (4 marks)
f) Describe what is embedded development? (3 marks)
g) Give an outline of the HTML document format. (3 marks)
QUESTION TWO (20 MARKS)
a) The following protocols are used in the application layer; write in full and briefly describe
each.
i. HTTP (2 marks)
it. SSH (2 marks)
iii. NTP (2 marks)
b) Describe the following components that make up an e-mail system:
i. Mailer (2 marks)
it, Mail Server (2 marks)
iii. Mailboxes (2 marks)
c) Explain any four guidelines that should be followed while working with email.
(4 marks)
d) Web robots are majorly classified into two categories; briefly explain and give an example in
eaclicategory. (4marks)
QUESTION THREE (20 MARKS)
a) Explain four merits of using JavaScript in web development. (4 marks)
b) Write JavaScript snippet code to display an alert message on an onclick even on a button.
(4 marks)
c) With the aid of an example, illustrate global and local variable declarations in a JavaScript
snippet code. (4 marks)
D
'-'::) 15027001:20l3Certified Knowledge Transforms e 150 9001:2015 Certified
Page 2 of 4
d) Using examples differentiate between variable declaration and variable initialization in
JavaScript.
(4 marks)
e) Write JavaScript code to warn user that the browser does not support JavaScript operations.
(4 marks)
QUESTION FOUR (20 MARKS)
a) Write HTML code to display the fo]lowing on a web page (10 marks)
WELCOME TO ABC OF NUTRITION
BASIC FOOD GROUPS
I FOOD GROUP:
l SOURCE:
I
1. Protein @
Dry cereals
*
meat
2. Carbohydrates * Bread
@
Potatoes
3. Vitamins *
Fruits
*
Vegetables
b) Briefly explain five application areas of CSS (5 marks)
c) Identify the main parts of CSS syntax. (3 marks)
d) Write code to include an external style sheet file in your HTML document.
(2 marks)
"' 15027001:20l3Certified Knowledge Transforms e 150 9001:2015 Certified
Page 3 of 4
QUESTION FIVE (20 MARKS)
You have been recruited by a business enterprise that deals with FMCG. The company urgently
requires a website for advertising their products. They require the following components to begin
with:
Some pages to advertise current products
A page with location, contact, opening times and key staff personnel
They foresee in future to open an online shop where they can sell products online and a page for
trending recipes for drinks and snacks.
Required:
a) Prepare design brief for the enterprise website. (10 marks)
b) Explain five ways which you can use to popularize the new website
(5 marks)
c) In your opinion, describe the front and back-end development tools that you would
recommend for the development of this website giving the advantage associated with
each. (5 marks)
END-
--l
i.?a='jR) 150 27001:2013 Certified
W
Knovvledge Trandorms e 150 9001:2015 Certified
Page 4 of 4