BBIT 201 INTERNET APPLICATION PROGRAMMING.

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

QUESTION ONE [30 MARKS]
a) Define the following concepts with respect to internet application programming.
i. Protocol
ii. Program
iii. Browser
[3 Marks]
b) Using a well labelled diagram, describe how internet application works.
[4 Marks]
c) Write html tags to display the following table

[8 Marks]
d) Differentiate between GET and POST values in method attribute of a form.
[4 Marks]
e) Describe the general steps for developing an internet application.
[6 Marks]
f) Write a JavaScript program to allow the user to key in two numbers then swap them using a
function called swap () and display the new values.
[5 Marks]
QUESTION TWO [20 MARKS]
a) Write html tags for each of the following form controls
i. Fieldset
ii. Legend
iii. Check box
iv. Radio options
v. Command button
[10 Marks]
b) Write a JavaScript program to prompt the user to enter quantity sold and price per unit then
calculate and display the total payable. Hint total payable= quantity sold * price per unit.
[6 Marks]
c) JavaScript is a loosely typed language, explain.
[4 Marks]
QUESTION THREE [20 MARKS]
a) Differentiate between client-side and server side scripting
[4 Marks]
b) Write a PHP program to print odd numbers between 3 and 300.
[6 Marks]
c) Write an html code to receive product code, product name, quantity and unit price through a
form then send them to PHP file using POST method. The PHP program calculates and
displays the total payable.

[6 Marks]
d) Discuss any FOUR lexical elements in a JavaScript program.
[4 Marks]
QUESTION FOUR [20 MARKS]
a) Describe any THREE rules followed when naming variables in JavaScript.
[3 Marks]
b) Describe any FOUR calculation operators you may use in a JavaScript program.
[8 Marks]
c) Write a JavaScript program that uses prompt dialogs to get two numbers, calculates their
product and display the result in a confirm dialog
[6 Marks]
d) Briefly outline the HTML elements on a web page.
i. Horizontal line.
ii. Marquee
iii. Superscript.
[3 Marks]
QUESTION FIVE [20 MARKS]
a) Describe THREE attributes you can use in a FORM element.
[6 Marks]
b) Apart from JavaScript outline any other two client scripting languages.
[2 Marks]
c) Write a JavaScript program to receive the final score and display appropriate grade using the
criteria below.


[8 Marks]
d) Identify the role of the following MySQL functions in a PHP program.
i. Mysqli_connection()
ii. MySQL_errno ()
[4 Marks]

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

Written by