BBIT 201 INTERNET APPLICATION PROGRAMMING - Distance Learning
BBIT 201 INTERNET APPLICATION PROGRAMMING - Distance Learning
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]
a) Explain three ways how you can place a javaScript in an html document.
[6 Marks]
1
c) Write a javaScript function to validate the following checkboxes in the form named
team.
[10 Marks]
[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.
2
[8 marks]
[10 mark]
3
[4 Marks]
ii). Print the Floyd’s triangle below using a two nested for loop
[6 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]