BIT4303  ADVANCED WEB DESIGN.

UNIVERSITY EXAMINATIONS: 2017/2018
EXAMINATION FOR THE DEGREE OF BACHELOR OF SCIENCE IN
INFORMATION TECHNOLOGY
BIT4303 ADVANCED WEB DESIGN
FULL TIME/PART TIME/ DISTANCE LEARNING
DATE: APRIL, 2018 TIME: 2 HOURS
INSTRUCTIONS: Answer Question One & ANY OTHER TWO questions.

QUESTION ONE (COMPULSORY 30 MARKS)
(a) Describe the need for style sheets in web development toady 4 Marks
(b) Describe the different ways of adding Styles to a html page 9 Marks
(c) Describe the various parts of a style rule using an example to illustrate? 4 Marks
d) Describe the three kinds of arrays in php, use code examples to explain their use 5 Marks
e) Differentiate between the class and the ID as used with style sheets. 5 Marks
(f) Explain how you get information from a form that is submitted using the “get” method?
3 Marks
QUESTION TWO (20 MARKS)
a) Write the correct Java script syntax for creating a function that can be used to calculate the area of a
circle in PHP. 6 Marks
b) Write a php program that can be used to call the function above 8 Marks
c) Describe using an example the use of throw try and catch in java script using an example to illustrate
6 Marks
QUESTION THREE (20 MARKS)
(a) Describe the correct way to create a function in PHP? [6 Marks]
(b) Where is the correct place to insert a JavaScript statement? [4Marks]
(c) Write the correct syntax for referring to an external script called “xxx.js”?
[5 Marks]
(d) Describe the following Javascrpt events
i. onBlur
ii. OnChange
iii OnLoad
iv OnFocus
v OnClick
[5 Marks]
QUESTION FOUR (20 MARKS)
a) How do you write “Hello World” in an alert box? [5Marks]
b) Describe how you call a function named “myFunction”? [3 Marks]
c) Describe the three pop up boxes in Java script [6 Marks]
d) Define Event Handlers as used in JavaScript [2 Marks]
e) List the functions of any four form input types. [4 Marks]
QUESTION FIVE (20 MARKS)
a) Using relevant examples describe the use of the for.. each loop in php [6 Marks]
b) Describe the purpose of each of the following statements in the code above
(i) mysql_connect() function
(ii) mysql_select_db()
(iii) mysql_query()
(iv) mysql_result() [8 Marks]
c) Which event occurs when the user clicks on an HTML element? [4 Marks]
(d) Define a class in CSS [2 Marks]

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

Written by