BBIT 201 INTERNET APPLICATION PROGRAMMING- distance learning KCA Past Paper

UNIVERSITY EXAMINATIONS: 2014/5
ORDINARY EXAMINATION FOR THE BACHELOR OF BUSINESS
INFORMATION TECHNOLOGY
BBIT 201 INTERNET APPLICATION PROGRAMMING- DISTANCE LEARNING
DATE: DECEMBER, 2014 TIME: 2 HOURS
INSTRUCTIONS: Answer Question ONE and any other TWO

QUESTION ONE [30 MARKS]
a) Explain any four html text formatting elements. [4 marks]
b) Explain any two elements used to create a list in html. [2 marks]
c) Write an html code to display a frameset with three frames whose cols specifications
are 25%,* and 30% . [6 Marks]
d) Write an html code that displays the following video clips in the same web page.
• Mteule.mp4
• NBCNews.mp4
• Utanaswa.mp4 [6 Marks]
e) Write down a JavaScript code to print odd numbers between 1 and 101 while loop.
[5 Marks]
f) Differentiate between GET and POST values as used in a method attribute for a PHP
form. [4 marks]
g) Describe any three types of operators you can use in a PHP program. [3 marks]
QUESTION TWO [20 MARKS]
a) Explain three ways how you can place a javaScript in an html document.
[6 Marks]
b) Briefly explain the use of the following functions in PHP.
i) Echo()
ii) Print() [4 marks]
c) Write a javaScript function to validate the following checkboxes in the form named
team.


[10 Marks]
QUESTION THREE [ 20 MARKS]
a) Discuss any four controls of a form in html and state the html code snippet for each
control. [4 Marks]
b) Write an html code to create a table shown below.

[8 Marks]
c) Given the following form that is used to process transaction, write a javascript code to
test if the user has entered values in all the textboxes then calculate and displays the
total price in the field total price(hint total price=product quantity*unit price) after the
user clicks Calculate button.


[8 marks]
QUESTION FOUR [20 MARKS]
a) Write an html code to display the form whose action attribute value is cashier.php
and method attribute value is GET as shown below.


[10 mark]
b) Write a PHP script to accomplish each of the following tasks.
i). Add two numbers stored in two different variables and display the sum
[4 Marks]
ii). Print the Floyd’s triangle below using a two nested for loop


[6 Marks]
QUESTION FIVE [20 MARKS]
a) Discuss the difference between client side scripting and server side scripting. Give an
example of a scripting language for each case. [4 Marks]
b) Compare and contrast SWITCH and IF statements as used in PHP. [4 Marks]
c) Discuss the importance of a DBMS as used in online applications. Hence give two
examples of open source DBMS products apart from mySQL. [6 Marks]
d) Discuss the importance of the following functions as used in mySQL.
i) Mysqli_connect_errno()
ii) Mysqli_real_escape_string()() [6 Marks]

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

Written by