0% found this document useful (0 votes)
6 views3 pages

Internet Application Programming Exam Guide

Uploaded by

mosaimose.n
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views3 pages

Internet Application Programming Exam Guide

Uploaded by

mosaimose.n
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

UNIVERSITY EXAMINATIONS: 2023/2024

EXAMINATION FOR THE DEGREE OF BACHELOR OF BUSINESS IN


INFORMATION TECHNOLOGY
BBIT 201: INTERNET APPLICATION PROGRAMMING
FULLTIME/ PART TIME/DISTANCE LEARNING
ORDINARY EXAMINATION
DATE: DECEMBER, 2023 TIME: 2 HOURS
INSTRUCTIONS: Question One Is Compulsory, Choose Two Other Questions

QUESTION ONE (20 MARKS) Compulsory


(a) Explain the difference between the Internet and the Web (Wide World Web). [2 marks]
(b) Briefly explain the purpose of the following in the context of Internet Application
programming: [3 marks]
i) URL
ii) DNS
iii) Web browser
(c) What is a dynamic web page, and how does it differ from a static web page? [2 marks]
(d) Explain two ways in which Cascading Style Sheets (CSS) used for styling can be included
in an HTML file. [2 marks]
(e) Write a PHP script to compute and display the product of two integers values 4 and 5, that
are stored in variables x and y respectively. [4 marks]
(f) Users can provide input on a web page via HTML forms. Identify the two methods
commonly used for submitting the user input to the web server? [2 marks]
(g) Write a JavaScript function, FtoC, that converts temperature in Fahrenheit to degree
Celsius, using the formula C = 5/9 * (F – 32). [3 marks]
(h) The Common Gateway Interface (CGI) has been largely replaced by newer technologies.
Explain any two reasons why CGI is not widely used now. [2 marks]

QUESTION TWO (15 MARKS)


(a) Consider the following HTML code
<!DOCTYPE html>
<html>

1
<head>
<meta charset="UTF-8">
</head>
<body>
<h2>Colors in Nature</h2>
<p>Grass is green</p>
<p>Fire is red</p>
<p>(Adapted from "African Rhymes” - Author Unknown)</p>
</body>
</html>

Write a CSS code and embed it in a modified HTML document, so that [6 Marks]
- the words "green" and "red" are to be displayed in green and red color respectively.
- the last paragraph uses the font "Tahoma", size 18 and is in italics
(b) Write HTML code to make a list similar to the following: [5 Marks]
1. Saturday
a. General cleaning
b. Youth group meeting
c. Homework
2. Sunday
· Church
· Movie
(c) HTML forms contain elements called controls. Explain the controls given below.
[4 Marks]
i) Radio buttons
ii) Textbox
iii) Checkbox
iv) Text Area

QUESTION THREE (15 MARKS)


(a) Differentiate between client-side scripting and server-side scripting, giving examples of a
language that is suitable for each. [6 marks]
(b) Given the following HTML document:
<html>
<head></head>
<body>

2
<div id="dynamicText"></div>
</body>
</html>
Write JavaScript code using DOM element’s innerHTML that will add the following to
the HTML document. [5 marks]
This text is dynamically added using JavaScript
(c) Identify any four (4) JavaScript events, stating when they are invoked [4 marks]

QUESTION FOUR (15 MARKS)


(a) Write HTML code to create a page similar to the one below. [4 marks]

(b) PHP supports indexed and associative arrays. Using examples, differentiate between these
two types of arrays. [4 Marks]
(c) Develop a PHP script that displays all the information entered in the form below:
[7 Marks]
<form id="myform" action="[Link]" method="post">
<h4>Fill in your details</h4>
<label for="username">Name:</label>
<input type="text" id="username" /><br><br>
<label for="phone">Telephone no.:</label>
<input type="text" id="phone" /><br><br>
<label for="email">E-mail:</label>
<input type="text" id="email" /><br><br>
<fieldset>
<legend>Gender</legend>
<input type="radio" name="choice" id="opt1" value="M" />
<label for="opt1">Male</label>
<input type="radio" name="choice" id="opt2" value="F" />
<label for="opt2">Female</label>
</fieldset> <br>
<button type="submit" id="submit" >Submit</button>
</form>

You might also like