Sit 300-Web Application Development
Sit 300-Web Application Development
Sit 300-Web Application Development
DURATION: 2 HOURS
Instructions to candidates:
1
SECTION A: ANSWER ALL QUESTIONS IN THIS SECTION
a) i) Hyperlinking document is the heart of web application development. Using one example for
each differentiate Absolute URL and Relative URL (4marks)
iii) Explain the meaning of the term” empty elements” in HTML (2marks)
iv) Describe the purpose of web browser in web application development (2marks)
b) Explain two advantages and limitations of using java script when developing websites
(4marks)
c) Using if-else statement in JavaScript write a program that will display “Good morning” if time is
less than 12pm, else “Good day” (4marks)
e) Write a code in a PHP that will output on the screen “Hello world” when executed. (6marks)
f) Write a HTML code coupled with CSS code to output text in paragraph as colour red, aligned to the
centre, initialize the text and background colour of document to be black in colour (4marks)
FIGURE 1
FIGURE 2
d) Describe the three types of array that can be used in PhP (6marks)
2
QUESTION THREE ( 20 MARKS)
a) Write a html program to out put the table in FIGURE 3 below (6marks)
FIGURE 3
b) Write a program in JavaScript that will find the length of the text below
“HELLO COMPUTING STUDENTS” (6marks)
c) Study the CSS file in FIGURE 4 below saved with name “formating.css”
FIGURE 4
i. Write a html statement to link the CSS file to a web page (3marks)
ii. Describe the effects of applying the CSS file in a web page (5marks)
Study the PHp code in FIGURE 5 below and answer the questions that follow.
FIGURE 5
i. Describe the purpose of each of the statement in the code above (4marks)
ii. List at least two characteristic of Php –msql that make it popular in website development
(2marks)
b) Explain the advantages of using cascading stylesheet in developing websites (4marks)
c) Write the output of the following html program FIGURE 6. (4marks)
FIGURE 6
d) With the aid of examples explain any three objects found in JavaScript (6marks)