0% found this document useful (0 votes)
35 views

BBIT 201 INTERNET APPLICATION PROGRAMMING - Distance Learning

The document contains instructions and questions for an examination on Bachelor of Business Information Technology. It covers topics like HTML, JavaScript, PHP, and MySQL. There are 5 questions, with parts asking about coding HTML tags, JavaScript functions, PHP scripts, and MySQL functions and concepts. Students are asked to write codes and explain concepts related to web development using various scripting languages. Overall, the exam tests students' knowledge of key languages and technologies used to build dynamic web applications.

Uploaded by

james kilonzo
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views

BBIT 201 INTERNET APPLICATION PROGRAMMING - Distance Learning

The document contains instructions and questions for an examination on Bachelor of Business Information Technology. It covers topics like HTML, JavaScript, PHP, and MySQL. There are 5 questions, with parts asking about coding HTML tags, JavaScript functions, PHP scripts, and MySQL functions and concepts. Students are asked to write codes and explain concepts related to web development using various scripting languages. Overall, the exam tests students' knowledge of key languages and technologies used to build dynamic web applications.

Uploaded by

james kilonzo
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

UNIVERSITY EXAMINATIONS: 2014/5

ORDINARY EXAMINATION FOR THE BACHELOR OF BUSINESS


INFORMATION TECHNOLOGY

BBIT 201 INTERNET APPLICATION PROGRAMMING- DIS-


TANCE 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]

1
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.

Empno Firstname Surname Department Designation Age

E001 George Mutwiri HR Clerk 29

E002 Amina Omar Sales Clerk 27

E004 Fatuma Bidii Sales Supervisor 26

E008 Festus Kitonga Sales Clerk 25

E012 John oduor Marketing Clerk 24

E015 Kellen Makori HR Manager 38

[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]

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

3
[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]

You might also like