MSc-IT Study Material
June 2010 Edition

Computer Science Department, University of Cape Town

Review Questions

Review Question 1

An event takes place and is conveyed to the Web browser and thence to the document. Describe what it means to handle an event.

You can find the answer to this question at the end of the unit.

Review Question 2

Regardless of whether a handler has been provided, when a user of a Web browser clicks the mouse an mouse-down event occurs. True or false?

You can find the answer to this question at the end of the unit.

Review Question 3

Do all events have to be captured by JavaScript code?

You can find the answer to this question at the end of the unit.

Review Question 4

When do you return true from an anchor event handler?

You can find the answer to this question at the end of the unit.

Review Question 5

What is the special keyword that acts like a variable that you use to refer to an object in its event handler?

You can find the answer to this question at the end of the unit.

Review Question 6

What is the basic strategy for animating button rollovers?

You can find the answer to this question at the end of the unit.

Review Question 7

What is the name of the variable that refers to the browser object?

You can find the answer to this question at the end of the unit.

Review Question 8

True or false: you can't capture a mouseOver event unless the mouse is over an anchor or an image.

You can find the answer to this question at the end of the unit.

Review Question 9

Which is not an event handler attribute?

  1. onMouseClick

  2. onMouseOut

  3. setTimeout

  4. onLoad

You can find the answer to this question at the end of the unit.

Review Question 10

True or false: Events occur on objects.

You can find the answer to this question at the end of the unit.