You are on page 1of 2

ICCT COLLEGES FOUNDATION

V.V. Soliven Ave. II Cainta Rizal

Preliminary Examination in ITComso08 (Javascripting)

I. Simple Recall (Fill in the blanks): Identify what is asking on the following items, use the pool
of words below in answering the following question, use only your test booklet in answering
the following questions.

1. _________________ is often used if you want the user to verify or accept something
2. With traditional programming languages, like C++ and Java, each code statement has to end
with a _____________
3. Variable is a ____________ for information you want to store
4. Many programmers continue this habit when writing JavaScript, but in general, semicolons are
_________
5. ___________________ was designed to add interactivity to HTML pages
6. Prompt box often used if you want the user to input a ________ before entering a page
7. _____________is often used if you want to make sure information comes through to the user
8. the syntax for javascript in displaying an output is __________________
9. _________________is a powerful and much more complex programming language - in the same
category as C and C++.
10. Variables must begin with a letter or the _______________ character
11. ________________means it can be defined anywhere in your JavaScript code
12. Storing a value in a variable is called ____________
13. JavaScript is ___________ language
14. A ______________ will be visible only within a function where it is defined.

Semicolon Confirm Box Optional Prompt Box


Java Document.write Underscore Javascript
Local Variable  Variable Alert Box  Global Variable
Untyped Variable initialization

II. Morse Type: Choose your answer on the selection in every item

1. This is the most frequently used event type which occurs when a user clicks the left button of his
mouse
a. OnMouseOver c. Onsubmit
b. OnClick d. OnMouseout
2. Triggers when media can be played to the end, without stopping for buffering
a. Ondblclick c. OnCanPlayThrough
b. OnPlay d. oncanplay
3. This event Triggers when an element has been dragged to a valid drop target
a. Ondragenter c. ondragend
b. Ondragover d. ondragstart
4. Triggers when an element is being dragged over a valid drop target
a. Ondrop c. ondragstart
b. Ondragenter d. ondragleave
5. Triggers when the duration and other media data of a media element is loaded
a. Onloadstart c. onloadedmetadata
b. Onloadeddata d. onload
6. Triggers when a media element's seeking attribute is no longer true, and the seeking has ended
a. Onseeked c. onselect
b. Onstalled d. onseeking
7. Triggers when there is an error in fetching media data
a. Onsubmit c. onstalled
b. Onselect d. onstorage
8. Triggers when media changes the volume, also when volume is set to "mute"
a. Onvolumemute c. onunload
b. Onvolumechange d. onundo
9. Triggers when media has stopped playing, but is expected to resume
a. Onwaiting c. onunload
b. Onresume d. onstop
10. Triggers when the mouse pointer moves out of an element
a. Onmousewheel c. onmouseover
b. Onmouseup d. onmouseout
11. Triggers when the message is triggered
a. Onload c. ononline
b. Onmessage d. onpageshow
12. Triggers when the document goes offline
a. Onpagehide c. onoffline
b. Onpageshow d. onoine
13. Triggers when a media element's seeking attribute is no longer true, and the seeking has ended
a. Onseeked c. onstalled
b. Onselect d. onseeking
14. Triggers when the browser has been fetching media data, but stopped before the entire media
file was fetched
a. Onsuspend c. onunload
b. Onfetched d. onwaiting
15. Triggers when the length of the media is changed
a. Onchange c. onformchange
b. Ondurationchange d. onhaschange
16. Triggers when a key is pressed
a. Onkeydown c. onkeyup
b. Onkeypress d. onload
17. Triggers when an error occur
a. Onresume c. onemptied
b. Onended d. onerror
18. Triggers when the document loads
a. Onloadeddata c. onload
b. Onloadedmetadata d. onloadstart
19. Triggers when the mouse pointer moves over an element
a. Onmouseover c. onmousewheel
b. Onmouseup d. onmouseout
20. Triggers when the window's history changes
a. Onhistorychange c. onreadystatechange
b. Onpopstate d. onpageshow

III. Write what the following syntax is asking for (5 points each)

1. declare multiple variables with the same var keyword


2. Declaring variable in multiple var keyword
3. Inserting element events in javascript

Prepared by:

Raymond A. Ramirez, MIT. (Cand.)


Instructor

You might also like