You are on page 1of 3

MURANG’A UNIVERSITY OF TECHNOLOGY

SCHOOL OF COMPUTING AND INFORMATION TECHNOLOGY


DEPARTMENT OF INFORMATION TECHNOLOGY

UNIVERSITY ORDINARY EXAMINATION

2020/2021 ACADEMIC YEAR


THIRD YEAR SECOND SEMESTER EXAMINATION FOR, BACHELOR OF (BIT,
BSE, BCT, BBIT, BSC CS)

UNIT TITLE: SIT 300

UNIT TITLE: WEB APPLICATION DEVELOPMENT

DURATION: 2 HOURS

Instructions to candidates:

1. Answer question One and Any Other Two questions.


2. Mobile phones are not allowed in the examination room.
3. You are not allowed to write on this examination question paper.
4. Figure 1 to 6 are provided as attachments

1
SECTION A: ANSWER ALL QUESTIONS IN THIS SECTION

QUESTION ONE (30 MARKS)

a) i) Hyperlinking document is the heart of web application development. Using one example for
each differentiate Absolute URL and Relative URL (4marks)

ii) Outline the meaning of “well-formed” requirement of XHTML (2 marks)

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)

d) Using examples, explain two types of elements used in JavaScript (2marks)

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)

SECTION B – ANSWER ANY TWO QUESTIONS IN THIS SECTION

QUESTION TWO (20 MARKS)


a) The input form method attribute in the form of HTML defines the HTTP method for
sending form data
i) Differentiate fully the GET from the POST way of sending form data (4marks)
ii) Write a HTML program to output the displayed output in FIGURE 1 below.
(4marks)

FIGURE 1

b) Explain the three types of pop-up boxes in Java Script (3marks)


c) Write a program that will display below pop up box in FIGURE 2
(3marks)

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)

QUESTION FOUR (20 MARKS)

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)

You might also like