Acsc 327 Exam
Acsc 327 Exam
CHUKA UNIVERSITY
UNIVERSITY EXAMINATIONS
INSTRUCTIONS:
Answer Question ONE and any other TWO questions.
Diagrams should be used whenever they are relevant to support an answer.
Sketch maps and diagrams may be used whenever they help to illustrate your answer
Do not write anything on the question paper
This is a closed book exam, No reference materials are allowed in the examination room
There will be No use of mobile phones or any other unauthorized materials
Write your answers legibly and use your time wisely
SECTION A
ANSWER ALL THE QUESTIONS IN THIS SECTION
QUESTION ONE [30 MARKS]
a) Explain the importance of web standards in web design and development. [2 Marks]
b) List and describe any four W3C standards important to web designers and developers.
[8 Marks]
Page 1 of 3
ACSC 327
e) Giving an example present and explain the structure of a CSS rule. [4 Marks]
i. HTML. [2 Marks]
ii. CSS. [2 Marks]
iii. XML. [2 Marks]
g) Write a JavaScript program that welcomes visitors to a website when the index page
loads.
[3 Marks]
SECTION B
ANSWER ANY TWO QUESTIONS FROM THIS SECTION
QUESTION TWO [20 MARKS]
a) A driving school only accepts students who are aged eighteen and above. Write a PHP
program that tests age and responds with an appropriate message. [4 Marks]
b) You are designing a Registration form for a Student Management System. Describe in detail
how you would apply each of Schneidermann’s rules of interface design in the design of the
form. [8 Marks]
c) Write a JavaScript code that through a function alerts users when they are about to leave a
web page and then goes ahead to ask the user for a confirmation whether to leave the page or
not. [8 Marks]
ii. Give examples of how you could design your web application to meet this heuristic.
[4 Marks]
Page 2 of 3
ACSC 327
c) Using HTML and PHP code, write a program to find Area of any circle. [6 Marks]
d) Write MySQL code to create a user named Admin with a password adminadmin on a
machine Localhost. [5 Marks]
b) Write CSS code as well as explain the usage of the following CSS styles:
i. Universal Selector. [4 Marks]
Page 3 of 3