0% found this document useful (0 votes)
20 views4 pages

BBT 2102 - Web Applications Development - July 2018

Web Application Research Paper

Uploaded by

Marie Merveille
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)
20 views4 pages

BBT 2102 - Web Applications Development - July 2018

Web Application Research Paper

Uploaded by

Marie Merveille
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
You are on page 1/ 4

FACULTY OF INFORMATION TECHNOLOGY

BACHELOR OF BUSINESS IN INFORMATION TECHNOLOGY


BBT 2102: WEB APPLICATIONS DEVELOPMENT
Date: 16th July 2018 Time: 2 Hours
Instructions:
i. This Examination consists of 5 Questions
ii. Answer Question One and any other two Questions
iii. Be exhaustive in your answers.

Question One (30mks)


A. Explain two ways in which CSS supports the concept of Do Not Repeat Yourself
(DRY)
(2mks)
B. Given the following code snippet, explain how many alert dialogs the code will
generate, stating what will be displayed in each of them.
(4mks)

C. Using code, illustrate how to create a JavaScript function that accepts one parameter,
and displays “Hooray, Even Number again” when a number is divisible by 2
(3mks)

D. Using code examples, explain how we can be able to integrate styling into our website
(6mks)
E. Explain how content in a PHP file is displayed on a browser
(2mks)

F. You have been given a html file called test.html, which has a div with the id mydiv.
The div has no html content within it. Write JavaScript code to add the text, My Div now
has words. Yay!. (3mks)
G. Name and write the syntax of any two html tags that do not require an opening
and closing tag, but utilize only one tag to implement themselves
(2mks)

H. Your friend John, is trying to post a status on a social networking site. He however
gets a popup that says Error 502. He knows that you have studied web development and
has asked you for help. Explain to John what this error means, and what could be done to
solve it
(5mks)

I. Write a PHP function to generate the months of the year as shown below (3mks)
January
February
March
Question Two (15mks)
During a visit to your former high school, you noted that the school lacked a system to
manage the student records, especially a system to manage the exam marks. Suppose you
were to develop a web based system to capture the information as shown in Table 1.
Table

Std. Name Gender Subject Mean Score


No.

Surname Other Maths English Kiswahili Science Avg. Grade


Names Score

005 Towett Julie Female 89 76 55 89 77.25 A


Cheptoo

007 Kyallo Kandie Male 45 80 64 77 66.4 B


Peter

015 Ochieng Richard Male 65 68 72 56 65.25 B


Oduor

a) Write HTML code to create an input form within a valid html file to be used to input
the Names, Gender and Subject’s marks. (6mks)

b) Suppose you have a database with a table called, students, which has the fields, id,
surname, othername, gender, maths, english, kiswahili, science, write PHP code to
capture the data and insert them into the database. (5mks)

c) Write HTML code to generate the table 1. (4mks)


Question Three (15mks)
a) Search Engine Optimization was a part of web development that was considered
lucrative. Explain what it is and how it relates to web development. (3mks)

b) Answer whether the following are true or false giving a reason. (5mks)
i) JavaScript is a version of Java.
ii) Given the JavaScript code below:

x ==y and x===y are Not the same.

iii) A session and a cookie are the same.


iv) JavaScript is a server side language.
v) HTML is a programming language.

c) A friend of yours came across a news article on the issue of net neutrality.
i) They have come to you for explanation on what it is. Explain to them what net
neutrality is and how it affects them. (2mks)

ii) The Kenyan government is set to implement laws (Computer and Cybercrimes
Bill 2017) to regulate against fake news and cyberbullying. Explain to your
friend how the government can regulate the Internet. (5mks)

Question Four (15mks)


a) You have been appointed a senior programmer in a leading company in Kenya. A
new team member has recently joined the company. Explain to them how they can
use the Git source versioning tool to collaborate with the other team members.
(5mks)

b) Using code examples, differentiate between a JavaScript array and a JavaScript


Object. (5mks)

c) Using code examples show how you can target elements in a web page to change the
font color of a paragraph from red to green. (5mks)
Question Five (15mks)
a) Using code examples, differentiate between an indexed array and associative array
as used in PHP. (5mks)

b) Differentiate between local and global variables in JavaScript and using code snippets,
show how they are implemented. (5mks)

c) Enumerate the differences between GET and POST. (3mks)

d) Name any two CSS frameworks and outline the benefits of using frameworks in web
development. (2mks)

You might also like