END
OF SEMESTER ONE EXAMINATION 2014
DIPLOMA IN
COMPUTING AND INFORMATION TECHNOLOGY
(NTA LEVEL 5)
EXAMINATIONS
CIT 05110-
Design and Implementation of interactive websites
TIME: 3 HOURS DATE:
4/12/2014
![]()
Instructions
- This
examination consists of sections A, B and C.
- Answer
all questions in section A and B.
- In
section C attempt three questions, question 9 is compulsory to be
attempted.
- Marks
for each question are indicated at the end of it.
- Do not
write any thing on the Question paper.
- Do not
use mobile phone in the examination room.
- All Answers
should be written in answer book provided
______________________________________________________________________________________
SECTION A: (10
marks)
Question 1:
multiple choice
i.
When a user views a page containing
a JavaScript program, which machine actually executes the script?
a.
The User's machine running a Web
browser
b.
The Web server
c.
A central machine deep within
Netscape's corporate offices
d.
None of the above
ii.
What should appear at the very end
of your JavaScript?
The <script LANGUAGE="JavaScript">tag
a.
The </script>
b.
The <script>
c.
The END statement
d.
None of the above
iii.
Which of the following are
capabilities of functions in JavaScript?
a.
Return a value
b.
Accept parameters and Return a value
c.
Accept parameters
d.
None of the above
iv.
What is the correct JavaScript
syntax to write "Hello World"?
a.
System.out.println("Hello
World")
b.
println ("Hello World")
c.
document.write("Hello
World")
d.
response.write("Hello
World")
v.
The correct example of class selector is.
a.
h2.type1
{color: #000000;}
b.
h2
type1 {color: #000000;}
c.
h2
#type1 {color: #000000;}
d.
#h2
type1 {color: #000000;}
vi.
Which
of the following is / are the measurement units in CSS?
i) % ii) cm iii) em iv) pc v) px
a.
i,
ii, iii and iv only
b.
i,
ii, iii and v only
c.
i,
ii, iv and v only
d.
All
i, ii, iii, iv and v
vii.
CSS
comments are inserted inside
a.
//...................//
b.
<!..................>
c.
/*..................*/
d.
None of the above
viii.
What is
the correct HTML for creating a hyperlink?
a.
<a
name="">A</a>
b.
<a>B</a>
c.
<a
href="http://www.example.com">example</a>
d.
<a
url="http://www.example.com">example</a>
ix.
How can
you create an e-mail link
a.
<mail href="a@b">
b.
<mail>a@b</mail>
c.
<a href="a@b">
d.
<a href="mailto:a@b.com">
x.
When you
count to 15 using hexadecimal numbers, the highest number is what?
a.
F
b.
B
c.
15
SECTION B: (25 Marks)
Question 2:
a) Mention five
JavaScript’s data type? (5 marks)
b) What is === operator mean in JavaScript’s?(3 marks)
c) Write the syntax you will use to assign object properties in JavaScript’s.(2 mark)
Question 3:
- Answer
the following questions in CSS.
- How can you eliminate the extra space after a
</form> tag? (2
marks)
- If
background and color should always be set together, why do they exist as
separate sheet? (3 marks)
Question 4:
- Answer
the following questions in HTML.
- Write the
syntax of creating a link that opens to another tab/window (2 marks)
- How do I make a frame with a vertical
scrollbar but without a horizontal scrollbar? (3 marks)
- Define
the following HTML tag (5 marks)
i. <Frameset>
ii. <em>
iii. <fieldset>
iv. <textarea>
v. <q>
SECTION
C: (25 Marks)
Attempt
Question 9 and any other TWO Questions from this Section
Question 5:
a.
Mention
three advantages and disadvantages of
external style sheet(6 marks)
b.
Mention
three (3) advantages and one (1) disadvantages of embedded style sheet (4marks)
Question 6:
Study the below diagram and generate
the HTML code. (10 marks)

Question 7:
a) Mention four (4) advantages and three (3)
limitations of JavaScript’s (7 marks)
b) Mention two
important attributes that are included in script tag (3 marks)
Question 8:
a) Mention
three Ways to Attach CSS to HTML Documents? (3 marks)
b) Mention five
(5) things you will do with CSS(5
marks)
c)
What
is the difference between Java and JavaScript?
(2 mark)
Question 9:
Write
a JavaScript program to validate a date in dd/mm/yyyy format. If the user input
matches with the format, the program will display a message "Valid
Date" otherwise display a message "Invalid Date!”. (5 marks)







No comments:
Post a Comment