Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

UNIVERSITY EXAMINATION 2017/2018

SCHOOL OF COMPUTING AND INFORMATICS


DEPARTMENT OF INFORMATION TECHNOLOGY

BBIT/BIT

UNIT CODE: BIT1202 UNIT TITLE: INTRODUCTION TO WEB


DESIGN AND DEVELOPMENT

DATE: APRIL, 2018 1 TIME: 2 HOURS


INSTRUCTIONS:
 Question ONE is COMPULSORY and any other TWO from section B.

SECTION A
QUESTION ONE
a) Describe the following terms as used in web technologies. (4 Marks)
i. Web server
ii. Search engine
iii. Web browser
iv. URL

b) By giving examples briefly explain the client-side scripting language. (4 Marks)

c) Write a script that uses a function Area to prompt the user for the radius of a
circle and to calculate and print the area of a circle. (6 Marks)

d) Write a HTML code to produce the following data in a table. (6 Marks)


IT DEPARTMENT
FIRST
1 NAME SECOND NAME GENDER GRADE
2 Austin Mboya male A
3 Kelvin Kirui B
4 Martha
5 Jane Otieno female C

Library copy Page 1


e) Write a CSS rule that changes the color of all elements containing attribute
class=”blue” to blue and displays all links in green. When the mouse hovers over
a link, change the link’s background color to yellow. (5 Marks)

QUESTION TWO

a) Write a script that inputs a text through the prompt and outputs it in reverse.
(5 Marks)
b) What are the advantages of using CSS in web development? Explain any four
(4 Marks)
c) Design a web page that contains a validated form that will enable the user to
enter the name in the textbox, gender to use radio button, email, country to be
captured using drop down menu, favorite music to be captured using checkbox ,
and submit and reset buttons to be used. (7 Marks)

d) Differentiate between the following terms; (4 Marks)


i. Hypertext and Hyperlink
ii. Web-page and website
iii. Static and Dynamic web-pages

QUESTION THREE

a) Describe the structure of a uniform Resource Locator (URL), clearly explaining


each of its components. (4 Marks)

b) A new company in Kenya want someone to design a web site for the company in
that they can be able to interact with their customers. The manager of that
company has approached you as an expert in web design for an advice. Kindly
explain on the key areas the company (manager) needs to consider before giving
someone a job to design a web site. (6 Marks)

c) Write a cascaded style sheet that will achieve the following. (10 Marks)
a. Change the background color of the body section to green, font size to 18
and color to red
b. Highlight all the heading level (2) two with yellow color, font size to 24 and
should be bold and underlined
c. Make all the visited links purple , underlined ,bold ,font size to be 24 while
active links will be displayed in green color and font size of 18

Library copy Page 2


QUESTION FOUR

a) When designing web-pages one should consider designing a page that is


appealing. Briefly discuss any five Graphical user Interface (GUI) design elements
(10 Marks)

b) Using examples differentiate between the following control structures


(10 Marks)
i. While statement
ii. For statement

Library copy Page 3

You might also like