Your browser does not support JavaScript. You will need to view non-JavaScript portions of this page.

CGS 2820: Fall Term 2002
On-Line Quizzes

Test Timer

In order to forward you your test results please enter your name & email address below:

Enter First Name followed by a space then your Last Name here



Enter E-mail Address here:



DHTML Tutorial Four: Working with the Event Model

DHTML Tutorial 4 Quiz Masters:

Kris Bexley (bkbex@yahoo.com) [Text Input]

John Taylor (jtaylor@hcc.cc.fl.us) [Consultant]


Multiple Choice [One Answer Only]


Question 1

One of the most common ways to work with evetns is through an event

a) manager
b) filter
c) handler
d) script

Question 2

onUnload, onScroll, and onLoad are all examples of ________ event handlers.

a) browser
b) form
c) keyboard
d) mouse

Question 3

onRest, on Select, and onSubmit are all examples of _______ event handlers.

a) browser
b) form
c) keyboard
d) mouse

Question 4

onKeyDown, onKeyPress, and onDragStart are all examples of _______ event handlers.

a) browser
b) form
c) keyboard
d) mouse

Question 5

onBounce is an example of a _____ event handlers.

a) browser
b) marquee
c) keyboard
d) mouse

Question 6

The _____event handler indicates that the user has released the mouse button.

a) onMouseOff
b) onMouseON
c) onMouseOver
d) onMouseUP

Question 7

The < A > tag supports the _____event handler in Netscape.

a) onDblClick
b) onKeyDown
c) onKeyPress
d) onKeyUp

Question 8

Which of the following Netscape tags supports the onKeyDown event handler?

a) < IMG >
b) < AREA >
c) < TEXT AREA >
d) All of the above

Question 9

Which of the following Netscape tags supports the onKeyUp event handler?

a) < A <
b) < AREA <
c) < LAYER <
d) None of the above

Question 10

Which of the following are events that can be captured with Netscape?

a) Event.RELOAD
b) Event.MOVEUP
c) Event.BLUR
d) All of the above

Question 11

The OR operator is represented by the _______ symbol.

a) \
b) ^
c) |
d) ~

Question 12

In the command, window.captureEvents(Event.DBLCLICK);, DBLCLICK is the event

a) format.
b) type.
c) filter.
d) handler.

Question 13

An event _____ exists as a parameter in the function called when the event occurs.

a) type
b) format
c) object
d) manager

Question 14

The _____ property of a Netscape event object indicates the coordinates of an event, relative to the layer containing the object.

a) modifiers
b) layerX, LayerY
c) PageX, PageY
d) coordinates

Question 15

The process by which Interent Explorer tracks events is called event ______ .

a) handling.
b) tracking.
c) detection.
d) bubbling.

Question 16

Without event bubbling, you would have to create a separate event handler for every object that is nested within the ____ element.

a) target
b) child
c) related
d) parent

Question 17

The ____ property of Interent Explorer event ojbects is an integer specifying the mouse button pressed by the user.

a) user
b) mouse
c) button
d) leftRight

Question 18

The Netscape equivalent of the Internet Explorer event object properties clientX and clientY is/her

a) pageX and pageY.
b) target.
c) modifiers.
d) which.

Question 19

The coordinates of an object are always expressed in relation to the location of the ____ corner of the object.

a)lower-left
b) upper-right
c) upper-left
d) lower-right

Question 20

The code "Games ETc.".indexOf("Etc"); returns a value of ____.

a) -1
b) 0
c) 7
d) 4

Question 21

The NetScape equivalent fo the Internet Explorer event object properties altKey, ctrlKey, and shiftKey is/are

a) pageX and pageY.
b) target.
c) modifiers.
d) which.

Question 22

The codes "GamesEtc.:indexOf("Puzzles"); returns a value of ____.

a) -1
b) 0
c) 7
d) 4

Question 23

The ____ symbol is a negation operator and has the effect of switching the value of a Boolean variable.

a) |
b) !
c) ^
d) -

Question 24

The syntax of the cursor property is object.______,cursor="cursor_type";.

a) format
b) mode
c) style
d) auto

Question 25

Specifying a cursor type of ___ allows the browser to determine the appearance of the pointer fo ryou.

a) auto
b) default
c) move
d) text

Question 26

Keys are identified by their ____ numbers.

a) UNIX
b) Unicode
c) ASCII
d) ANSI

Question 27

In Netscape the syntax for determining which key is being pressed is: _______ .

a) key = event.keyCode;
b) Key = keyCode();
c) key = c.this;
d) key = e.which;

Question 28

In Interent Explorer the syntax for determining which key is being pressed is: __________ .

a) key = event.keyCode;
b) key = keyCode();
c) key = c.this;
d) key = e.which;

Question 29

Which of the following is a modifier key?

a) F1
b) Tab
c) Alt
d) All of the above

Question 30

Which of the following is a modifier key?

a) Insert
b) Caps Lock
c) Enter
d) Ctrl



True/False Questions


Question 31

Events are actions that can be inititated by the user, the browser, or another software program.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 32

The most common and oldest way of creating an event handler is by adding an event handler property to the object's HTML tag.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 33

The event handlers created as tag properties are case sensitive, so onClick and OnClick will not be recognized as being the same.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 34

Event handlers created as tag properties are applied to specific tags on the Web page and have no influence outside that tag.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 35

Creating event handlers as tag properties is supported by version 2.0 or above of Netscape and Interent Explorer.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 36

Netscape can apply browser, form, and other event handlers to most of the tags in your HTML file, but Interent Explorer's event handlers apply to only a few specific tags.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 37

If you are trying to create a cross-browser Web page with support for mouse and keyboard events, you have to take into account Netscape's limitations when you apply our event handlers.

b) The statement above is TRUE.
a) The statement above is FALSE.


Question 38

Creating event handlers with < SCRIPT > tags is supported only by versions 4.0 or above of Netscape.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 39

Because most event handlers are placed with the HTML tag for the object (to make tham cross-browers-compatible), you will not usually see event handlers created with < SCRIPT > tags.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 40

Event handlers created with < SCRIPT > tags must be in uppercase.

a) The statement above is TRUE.
b) The statement above is FALSE.



Fill-in-the-Blank


Fill in the Blank with the word(s) that best fits the definition:

(hint: use vocabulary from the checkboxes below)

Question 41. If you need to relate the layout of the page to the actions of the mouse, you do that by working with


Question 42. are actions that can be initiated by the user, by the browser, or by another software program.


Question 43. Event handlers can be created within an object's tag.


Question 44. Event handlers can be created within the < SCRIPT > for a collection of code.


Question 45. An event specifies what response the browser has to the occurrence of an event.


Question 46. Event handlers invoked as tag properties are case


Question 47. The (case sensitive) event handler indicates that the suer has pressed the F1 key for help.


Question 48. The (case sensitive) event handler indicates that the browser has completed loading the document.


Question 49. The (case sensitive) event handler indicates that the user has moved the browser window.


Question 50. The (case sensitive) event handler indicates that the content of an input field has changed.





I have


Please add a comment below



The 'Muddy Water' Issues that I need help on are as follows:





I need class review on the following vocabulary words from this chapter:

SCRIPT Oject.Capture Release Events LayerX, LayerY Event Bubbling

Keycode FromElement Canel Event Actions Onmousedown Event Position

Dragitem Moveit Dropit Drag and Drop Feature Snapback Function


Change Cursor Style DiffX, DiffY KeyDrag Modifier Keys Modifier Mask



When you have completed this quiz, press the ALL DONE-CHECK TEST button below to check the test! Then you may go back and change the incorrect answers before you submit the test. You may check the answers as many times as you need until you achieve a perfect grade. Sometimes the pop-up box does not appear when you click on the button after checking the test the first time. If this happens, minimize the test and the answer box will be behind the browser. close the box and maximize the test to continue checking the test and finally submitting it.



When you have finished checking the test, press the SUBMIT button to send answers to your instructor


Back to CGS 2820 Course Menu Page






Caution: Click reset to clear all answers

Users whose browser does not support JavaScript, when you have completed this quiz click the submit button below to send answers to your instructor



Quiz Page was last modified by John Taylor: