BBIT201  INTERNET APPLICATION PROGRAMMING.

UNIVERSITY EXAMINATIONS: 2017/2018
EXAMINATION FOR DEGREE OF BACHELOR IN BUSINESS
INFORMATION TECHNOLOGY
BBIT201 INTERNET APPLICATION PROGRAMMING
MODE: FULL TIME/PART TIME/DISTANCE LEARNING
ORDINARY EXAMINATIONS
DATE: APRIL, 2018 DURATION: 2 HOURS
INSTRUCTIONS: Answer question ONE and any other TWO questions

QUESTION ONE [30 MARKS]
a) Define the following concepts as used in Internet application programming.
i. Protocol
ii. Cookie
iii. Array
iv. Script
4 Marks
b) Write an HTML tag to display a sound clip specified in the path below:
C:\Folder1\Folder2\song1.mp3.3 Marks
c) Given the XML tree below, write the corresponding XML code for the document.
6 Marks


d) Write a PHP code to print odd numbers between 3 and 123 on a web page.
4 Marks
e) Differentiate between server side scripting and client side scripting.
2 Marks
f) Write a JavaScript program to validate the following checkboxes
<form name=”checkboxfrm”>
<input type=”checkbox” name=”chk” value=”Bread”> Bread<br>
<input type=”checkbox” name=”chk” value=”Sugar”> Sugar<br>
<input type=”checkbox” name=”chk” value=”Flour”> Flour<br>
<input type=”button” value=”validate” onclick=”Choose()”>
</form>
5 Marks
g) Explain THREE differences between CSS and HTML markup languages.
3 Marks
h) Write an HTML code to display a frameset with three web pages stored in the paths given below
C:\Users\Desktop\home.html
C:\Users\Desktop\Products.html
C:\Users \Desktop\Order.html
3 Marks
QUESTION TWO [20 MARKS]
a) Outline the structure of a JavaScript program.
4 Marks
b) Explain how JavaScript is included in HTML documents.
3 Marks
c) Briefly explain any THREE rules for naming JavaScript variables.
3 Marks
d) Explain what the JavaScript function will use to check the form input below:
<form name=”frm” action=””>
<input type=”button” name=”select” onclick=”A()”>
</form>
4 Marks
e) Discuss the looping constructs provided by JavaScript.
6 Marks
QUESTION THREE [20 MARKS]
a) Discuss the steps involved in connecting database in PHP.
3 Marks
b) Henry has created an employee database in MySQL called EMPLOYEEDB. The database has two
tables Employee and Department. Employee table has EmpID, FirstName, LastName while
DEPARTMENT has DeptID, DeptName.Write a PHP statement in each of the following cases.
i. statement to retrieve all records stored in DEPARTMENT table
3 Marks
ii. Fetch department records retrieved in i) above
3 Marks
iii. Display the records fetched in ii) above in a row as DeptID, DeptName.
3 Marks
c) Describe the use of each of the following functions
i. mysqli_connect_error()
ii. mysqli_query()
iii. mysqli_fetch_array()
iv. mysqli)_real_escape_string()
8 Marks
QUESTION FOUR [20 MARKS]
a) Web technology can be defined as means by which computers communicate with each other using
markup languages and multimedia packages. In this regard, discuss any FOUR web technologies.
8 Marks
b) Web application architecture can be defined as the plan and design of the technical, functional and
visual components of an application. In this regard, and with an aid of a diagram discuss the
following web application architectures.
i. 2-Tier architecture
ii. 3-Tier architecture.
8 Marks
c) Describe the general steps followed when developing a web application.
4 Marks
QUESTION FIVE [20 MARKS]
a) Briefly describe the following concepts:
i. Hyperlink
ii. Hypermedia
iii. Hypertext.
iv. Markup language
4 Marks
b) Cascading Style sheet(CSS) file is essentially a list of rules. Each rule comprises of a selector and one
or more declarations. In each of the following cases write a CSS rule.
i. Table whose attributes are width 50%, height 40% and border is 1 pixel.
ii. Paragraph whose attributes are color green, font size is 12 points and font family is Tahoma.
6 Marks
c) Describe any TWO advantages and TWO disadvantages of CSS.
4 Marks
d) Describe the following types of CSS files:
i. External CSS
ii. Internal CSS
iii. Inline CSS
6 Marks

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

Written by