INTE 221 - WEB APPLICATION PROGRAMMING
INTE 221 - WEB APPLICATION PROGRAMMING
UNIVERSITY EXAMINATIONS
MAIN CAMPUS
INSTRUCTIONS
i) Answer question ONE and any other TWO questions
ii) Write on both sides of the answer sheet
iii) Begin each new answer on a separate page of the answer sheet
As members of Kabarak University family, we purpose at all times and in all places, to set
apart in one’s heart, Jesus as Lord. (1 Peter 3:15) Page 1 of 3
e) Write code to validate the following (i) Postal Address and Pin (ii) Number of
Characters [3*2 =6 marks]
(a) Write a java script program to check whether the number entered id odd or even [4 marks]
b) Using suitable program describe the following as used in java script [2*3 = 6marks]
(i) For loop
(ii) While loop
c) Describe internal style sheet using suitable example [ 4 marks]
d) Describe user driven events that occur in java script [ 4 marks]
e) Describe URL syntax [2marks]
d.html a.html
b.html
c.html
b) Write a Php code to validate user name and password before the user can access a
page [5 marks]
As members of Kabarak University family, we purpose at all times and in all places, to set
apart in one’s heart, Jesus as Lord. (1 Peter 3:15) Page 2 of 3
QUESTION FOUR (20 marks)
a) Write Html code to create a form having following contents Name, Address, City, State,
Zip, and finally php code to transfer the above fields to the database. [8marks]
b) Write a PHP code to demonstrate how checkbox button is used. [5 Marks]
c) Write PHP code to validate user login before he can access some pages. [5 marks]
d) Using a suitable program describe hyperlink [2 marks]
d) Explain five attributes of java script making it suitable for web applications. [5 marks]
As members of Kabarak University family, we purpose at all times and in all places, to set
apart in one’s heart, Jesus as Lord. (1 Peter 3:15) Page 3 of 3