0% found this document useful (0 votes)
5 views

INTE 221 - WEB APPLICATION PROGRAMMING

This document outlines the examination details for the Bachelor of Science in Computer Science/Information Technology at Kabarak University for the 2017/2018 academic year. It includes instructions for the exam, a series of programming questions covering HTML, JavaScript, PHP, and web application concepts, with a total of five questions to be answered. The exam is scheduled for August 6, 2018, from 11:00 AM to 1:00 PM.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

INTE 221 - WEB APPLICATION PROGRAMMING

This document outlines the examination details for the Bachelor of Science in Computer Science/Information Technology at Kabarak University for the 2017/2018 academic year. It includes instructions for the exam, a series of programming questions covering HTML, JavaScript, PHP, and web application concepts, with a total of five questions to be answered. The exam is scheduled for August 6, 2018, from 11:00 AM to 1:00 PM.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

KABARAK UNIVERSITY

UNIVERSITY EXAMINATIONS
MAIN CAMPUS

THIRD SEMESTER, 2017/2018 ACADEMIC YEAR

EXAMINATION FOR THE DEGREE OF BACHELOR OF SCIENCE COMPUTER


SCIENCE/ INFORMATION TECHNOLOGY

COMP 310/ INTE 221/ COSF 112: WEB APPLICATION PROGRAMMING

STREAM: BSC COMP /IT & BMIT TIME: 11.00-1.00PM

EXAMINATION SESSION: AUGUST DATE:6/8/2018

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

Question One – Compulsory (30 Marks)

a) Write html code to execute the following table [6 marks]


DAY 8-11 11-1 2-5
Monday COMS 110 COMP 210
Tuesday COMP Library
221
Wednesday INTE 221 Bmgt 112
Thursday Comp 332
Friday Comp 541

b) Using a program example describe external style sheet [ 6 marks]


c) (i) Define is a function as used in java script? [2 marks]
(ii) Write a program to add two numbers using a function [ 5 marks]
d) Write a java script program to accept three numbers from the key board and compare and
print the highest number among the numbers entered [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 1 of 3
e) Write code to validate the following (i) Postal Address and Pin (ii) Number of
Characters [3*2 =6 marks]

QUESTION TWO (20 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]

QUESTION THREE (20 marks)


a) Write the html code to create the following frame [ 5 marks]

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]

c) Explain the use of the following operators [3 marks]


(i) New
(ii) Typeof
(iii) this
c) Using form controls, write a program to create a form to accept user information ( use all html
controls) [1*7 = 7 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]

QUESTION FIVE (20 marks)


a) Describe five features good interface for organization website sites [5marks]
b) Write the steps used to connect between front end and back end [5 marks]
c) Write a java script program to perform arithmetic computations of two numbers entered from
the key board [5marks]

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

You might also like