BBIT201 INTERNET APPLICATION PROGRAMMING.

UNIVERSITY EXAMINATIONS: 2018/2019
EXAMINATION FOR DEGREE OF BACHELOR SCIENCE OF BUSINESS
INFORMATION TECHNOLOGY
BBIT 201: INTERNET APPLICATION PROGRAMMING
MODE: FULL TIME/PART TIME/DISTANCE LEARNING
ORDINARY EXAMINATIONS
DATE: DECEMBER, 2018 DURATION: 2 HOURS
INSTRUCTIONS: Answer Question ONE and any other TWO questions

QUESTION ONE [30 MARKS]
a) Describe the steps followed in developing a web application.
4 Marks
b) Discuss the two-tier architecture for a web application.
4 Marks
c) Describe any three web technologies
6 Marks
d) Explain the difference between the following CSS rules.
i. .odd { border: dashed; color:red }
ii. #x { border: dashed; color:blue }
4 Marks
e) Write sample HTML code to create the document below


8 Marks
f) Write a JavaScript program to print odd numbers between 3 and 21.
4 Marks

QUESTION TWO [20 MARKS]
a) Write a javaScript program that uses two functions. The first function receives two integers
from the user using dialog boxes then passes the values to another function that calculates the
product of the two numbers and returns the correct answer to the calling function.
10 Marks
b) Describe THREE uses of a form in an online application.
6 Marks
c) Differentiate between GET and POST method values in a form.
4 Marks
QUESTION THREE [20 MARKS]
a) Define the concepts of a well-formed XML document, and a valid XML document.
6 Marks
b) Differentiate between an attribute and an element in HTML.
4 Marks
c) Write the HTML code to make the word kca an absolute hyperlink to www.kca.ac.ke
5 Marks
d) Write the CSS code to add a pink background color to a class selector called “drivein”
5 Marks

QUESTION FOUR [20 MARKS]
a) Write a JavaScript program to receive ten floating point values, store them in an array, then
calculate and display their average.
8 Marks
b) Write a JavaScript program to get the user input for the floor the user wants to go using a lift
and displays the appropriate remark using switch case.


8 Marks
c) Describe TWO uses of graphics in a web page.
2 Marks
d) Write html tags to display an image stored in the path c:\Documents\Folder2\mypic.gif
2 Marks

QUESTION FIVE [20 MARKS]
a) Explain the use of marquee element in a web page.
2 Marks
a) Discuss the importance of a DBMS as used in online applications. Hence give two examples
of open source DBMS products apart from mySQL.
4 Marks
b) Write a PHP program to calculate and display cost of the products using the formula:
Cost=TAX * (quantity*unit price). Assume the TAX is a constant 0.16. The values of
quantity and unit price are send as form values to the backend for server side processing.
10 Marks
c) Write a PHP program to print even numbers greater than 1 and less than 100 on a web page
the browser opens.
4 Marks

(Visited 105 times, 1 visits today)
Share this:

Written by