BBIT 201 – INTERNET APPLICATION PROGRAMMING KCA Past Paper

UNIVERSITY EXAMINATIONS: 2019/2020
EXAMINATION FOR THE DEGREE OF BACHELOR OF BUSINESS IN
INFORMATION TECHNOLOGY
BBIT 201: INTERNET APPLICATION PROGRAMMING
FULL TIME/ PART TIME/ DISTANCE LEARNING
DATE: MAY, 2020 TIME: 6 HOURS
INSTRUCTIONS: Answer ALL Questions
SECTION B: (20 MARKS)

QUESTION ONE
a) Briefly explain what the code below will do [1 Mark]
<html>
<body>
<script type=”text/javascript”>
var i=0
for (i=0;i<=10;i++)
{
document.write(“The number is ” + i)
document.write(“<br />”)
}
</script>
</body>
<html>
b) Using the table below as a guide for grading, write a JavaScript program to grade student
marks for a single subject, using;
i. if..else structure [4 Marks]
ii. switch structure [5 Marks]
Marks     Grade
0-              39 F
40-            49 D
50-            59 C
60            -69 B
70-            100 A
c) Write HTML code to generate the following table [10 Marks]
KCA UNIVERSITY
DEPARTMENTS
FoCIMSoB SPP
Academic Programmes Academic Programmes Professional Programmes
1. BScIT 1. Bcom 1. ATC
2. BScSD 2. MBA 2. CPA
3. BScAC 3. MSc-Finance & Investment 3. CICT
4. BBIT 4. CCNA
5. MSc-Data Communications 5. A+ Certification
SECTION B: (20 MARKS)
QUESTION ONE
a) Write a JavaScript that display the first ten positive integers in ascending order using:
i. a while loop that display the first ten positive integers in ascending order [3 Marks]
ii. a for loop that display the first ten positive integers in ascending order [3 Marks]
b) Write HTML code that creates a form asking for the details listed below: [3 Marks]
Full Name
E-mail
Address
Post-code
Phone Contact
c) Radio buttons are often used on questionnaires to indicate a person’s opinion, or their
likes and dislikes. They can also be used for ‘yes’ or ‘no’ responses. Write codes that utilize radio
buttons to get information from the question “Do you agree that the Earth orbits the Sun?”, with
optional response as follows: [3Marks]
Strongly Agree
Agree
Disagree
Strongly disagree
d) Create an html page with the following specifications; Title should be about NAIROBI
CITY, Place the City name at the top of the page in large text and in blue color, Add names of
landmarks KICC, UHURU PARK, KENCOME, RAILWAYS, and KCA UNIVERSITY-TOWN
CAMPUS in different color, style and typeface. The name KCA UNIVERSITY should be
blinking . Add scrolling text with a message of reading “WELCOME TO NAIROBI”.
[5 Marks]
e) Write a HTML code to generate following output: [2 Marks]
1. Chapter One
a. Section One
b. Section Two
c. Section Three
2. Chapter Two
3. Chapter Three

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

Written by