BIT 4303 ADVANCED WEB DESIGN AND DEVELOPMENT KCA Past Paper

UNIVERSITY EXAMINATIONS: 2011/2012
THIRD YEAR EXAMINATION FOR THE BACHELOR OF
SCIENCE IN INFORMATION TECHNOLOGY
BIT 4303 ADVANCED WEB DESIGN AND DEVELOPMENT
DATE: AUGUST, 2012 TIME: 2 HOURS
INSTRUCTIONS: Answer Question ONE and any other TWO

QUESTION ONE
a) i. Using examples sample code describe how the three java script pop up
boxes can be used in a website (9 Marks)
ii. Use an example to show how you can define a function in java script
(5 Marks)
b) i. Define a java script function that can be used to capture and display the
names and ages of 1000 students on a website (10 Marks)
ii. Write the html code that can be used to call the function in part (i) above
(6 Marks)
QUESTION TWO
a) Use an example to show how the for…in statement can be used to loop through an
array in java script. (12 Marks)
b) Describe the use of unload and onload events in java script. Describe situations
where these two events can be used on a webpage (8 Marks)
QUESTION THREE
a) The Internet has the potential to provide many benefits to companies in terms of
communication. Describe FOUR processes that a business may carry out using
the Internet explaining the application involved and the benefit to the company.
Outline any drawbacks involved in each process. (8 Marks)
b) i. Describe one situation where one may need to write java scripts in an
external file. (3 Marks)
ii. Using an example to illustrate describe how you can write java script as an
external file (9 Marks)
QUESTION FOUR
a) Explain the following terms as used in PHP programming language
i. PHP (2 Marks)
ii. A Session? (3 Marks)
b) Describe how we can use php to determine the number of days between two given
dates using PHP? (6 Marks)
c) Describe three basic types of runtime errors in PHP: (9 Marks)
QUESTION FIVE
a) Explain the following events in Javascript
i. onBlur
ii. onChange
iii. onClick
iv. onFocus
v. onLoad
(10 Marks)
b) i. Define the term Applet (2 Marks)
ii. Explain four Design issues in web design (8 Marks)

(Visited 115 times, 1 visits today)
Share this:

Written by