You are on page 1of 4

UNIVERSITY EXAMINATION 2017/2018

SCHOOL OF COMPUTING AND INFORMATICS


DEPARTMENT OF INFORMATION TECHNOLOGY

BBIT/BIT
REGULAR

UNIT CODE: BIT1202 UNIT TITLE: INTRODUCTION TO WEB


DESIGN AND DEVELOPMENT

DATE: AUGUST, 2018 SPECIAL/SUPP TIME: 2 HOURS

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

SECTION A (30 MARKS)


Question One
a) Distinguish between
i. HTML element and Attributes (2 Marks)
ii. onBlur and onChange event handlers (2 Marks)
iii. Server side scripting and client side scripting (2 Marks)

b) Highlight two merits and two demerits of using frames in website development.
(4 Marks)
c) A form statement is found to have the following content;
<FORM METHOD=POST ACTION=”http://192.168.13.101/cgi-bin/demoapp.pl”>
Explain the elements of the above statement. (4 Marks)

d) Create html that will render the table below. (6 Marks)


Fruit PalaceTM
Fruit Old Price New Price

Library copy Page 1


Fruit PalaceTM
Fruit Old Price New Price
Apple $1.25 $0.25
Orange $2.50 $1.50
Banana $1.80 $0.80
Pineapple $2.00 $1.00
Total $7.55 $3.55

e) Determine the output of the program snippet below (4 Marks)


<SCRIPT LANGUAGE=”JavaScript”>
Vara,b,c;
a=4;
b=++a;
c=a++;
document.write(“a is ”,a);
document.write(“<br> b is ”,b);
document.write(“<br> c is ”,c);
</script>

f) Discuss four key elements of a good web site. (8 Marks)

Question Two
a) Write the correct HTML code for the following:
i. Adding and image saved as logo.gif with an alternative name ‘MKU Logo’
ii. Adding a hypertext link on a page that leads to MKU’s homepage.
iii. Adding a background color to a page
iv. Changing the font color of the entire page to color red. (4 Marks)

b) Explain three advantages of using cascading style sheets on web sites. (6 Marks)

c) Using examples explain the following in relation to cascading style sheets


i. The class selector
ii. The id selector (4 Marks)

d) Write a HTML code that would render the list below (6 Marks)

Library copy Page 2


Question Three

a) Giving examples distinguish the following;


i. Static pages and dynamic pages.
ii. Local and global variables in JavaScript
iii. Pre-increment and post increment operators (6 Marks)

b) Explain the function of any three members of the TCP/IP Protocol Suite. (6 Marks)

c) Write JavaScript codes that will perform the following


i. Get three numbers from the user through a prompt box then display the
sum and average of these numbers on the web browser. (3 Marks)

ii. Define a JavaScript function that receives a person’s age and if the age is
greater than or equal to 18 it displays the word “Adult” on the browser
else it displays “Child” (3
Marks)

iii. Write a script that displays all even numbers between 20 and 100 on the
users’ web browser. (2 Marks)

Library copy Page 3


Question Four
a) Write a HTML code that will yield the form in the figure below. The image is logo.jpg.
(8 Marks)

b) A form is an object in the document object model. Discuss at least four elements
(objects) under the form object and possible use of each object during web application
development (4 Marks)

c) Discuss four principles that you would consider when designing the user interface.
(8 Marks)

Question Five
a) List four goals of web usability. (2 Marks)

b) Define a website wireframe and describe the elements of a wireframe. (8 Marks)

c) As the project manager you are required to develop a website. Explain the processes
that this website project would undergo from inception to completion. (10 Marks)

Library copy Page 4

You might also like