UNIVERSITY EXAMINATIONS: 2017/2018
EXAMINATION FOR THE DEGREES OF BACHELOR OF BUSINESS IN
INFORMATION TECHNOLOGY
BBIT 201 INTERNERT APPLICATION PROGRAMMING
FULLTIME/ PART TIME/DISTANCE LEARNING
ORDINARY EXAMINATIONS
DATE: AUGUST, 2018 TIME: 2 HOURS
INSTRUCTIONS: Answer Question One & ANY OTHER TWO questions.
QUESTION ONE
a) Briefly explain the following as used in JavaScript
(i) onBlur
(ii) document.WriteIn –
(iii) onSubmit
(3 Marks each)
b) i) When frames were introduced, web designers were excited about their functionalities.
However frames have many drawbacks. Describe any three drawbacks of frames
[6 Marks]
ii) Describe the three methods of adding style rules to HTML using examples to illustrate
[6 Marks]
c) Explain the function of the following servers
(i) File server
(ii) Printer server
(iii) Proxy server
(iv) Application server [10 Marks]
QUESTION TWO
a) Write the code in JavaScript that when executed displays on the screen “Welcome”.
[6Marks]
b) Write a java script function that allows the user to enter and convert Kenyan shillings into US
Dollars when a button is clicked on a web page. Rate is 1$ dollar 115 ksh. [8 Marks]
c) Write a html Code to produce the following table [6 Marks]
Q3 Create a webpage for KCAU that allows 40 students each taking 6 subjects to register.
Include the reg_no , name and faculty. The output should include name, registration number
faculty and units registered for each student. [20 Marks]
QUESTION FOUR
(a) (i) Explain what you understand by the term Web Page editor (3 Marks)
(ii) Discus three advantages of a web page editor (4 Marks)
b) (i) Style sheet were designed to solve a problem. Explain (4 Marks)
(ii) Describe the different ways of adding Styles to a html page (9 Marks)
QUESTION FIVE
a) (i) Describe the use of the statement Document.Write in Java script? (3 Marks)
(ii) Describe the three kinds of arrays in php, use code examples to explain their use
(5 Marks)
b) Differentiate between server side and client side scripting using examples to illustrate
(6 Marks)
c) Describe the use of throw try and catch in java script using an example to illustrate
(6 Marks)