Acsc 226 Exam
Acsc 226 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 use of the following HTML tags:
i. <sup></sup>
ii. <hr/>
iii. ®
iv. <strong></strong>
v. ¼ [5 Marks]
Page 1 of 4
ACSC 226
c) Write a JavaScript program to display the string “Hello World” when a web page loads
[3 Marks]
d) Explain the importance of the ID attribute in HTML [2 Marks]
f) There are five components of multimedia that are implemented in a typical website.
Identify and describe each of them [5 Marks]
g) Highlight any three advantages of GIF images over JPEG image [3 Marks]
h) Integer num1=4 and integer num2=6. Write a JavaScript program to sum the two integers
and display the result as another integer [3 Marks]
SECTION B
ANSWER ANY TWO QUESTIONS FROM THIS SECTION
QUESTION TWO [20 MARKS]
a) Design the following using HTML
Ricotta pancake ingredients:
1 ½ ¾ cups ricotta
¾ cup milk
4 eggs
1 cup plain white flour
1 teaspoon baking powder
75g 50g butter
pinch of salt [10 Marks]
b) Headings 1, 2 and 3 are to be bold, of font type Arial, white in color and have a black
background. All paragraphs are to be blue in color and of size 36 points. The background
color of the web page is to be pink. Implement this in a web page using:
i. External CSS styles. [3 Marks]
ii. Internal CSS styles. [3 Marks]
c) Explain the role of Definition List in web pages. Write HTML code to demonstrate a
Definition List. [4 Marks]
Page 2 of 4
ACSC 226
b) Write the HTML code to reproduce the following part of a webpage. [10 Marks]
c) Write a JavaScript program that prompts the user to enter their SurName. The SurName is
then displayed on a JavaScript Alert box [6 Marks]
QUESTION FOUR [20 MARKS]
a) The following comments are made depending on a grade a student attains in an exam.
Grade Comment
A EXCELLENT
B GOOD
C FAIR
D POOR
Write a JavaScript Switch... Case program that takes in Grade as an input then gives appropriate
comment. [10 Marks]
b) Write CSS code as well as explain the usage of the following CSS components:
i. Universal Selector. [4 Marks]
ii. Type Selector. [3 Marks]
iii. Class Selector. [3 Marks]
Page 3 of 4
ACSC 226
a) You are designing a website for a certain institution. Discuss in detail how you could apply
Nielsen’s heuristics for a usable interface [10 Marks]
b) The following is a website layout. Implement this Layout Container by use of CSS and DIV.
[10 Marks]
LOGO
MENU MAIN CONTENTS ADVERTS
FOOTER
---------------------------------------------------------------------------------------------------------------------
Page 4 of 4