Exam 11: Working With Events and Styles Tutorial

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Identify the syntax that allows the click point of the cursor to change the color of the cursor image with the coordintaes of the centre of the image being 12, 6 respectively.

(Multiple Choice)
4.9/5
(40)

Function operators are more flexible than function declarations, allowing a function to be placed anywhere a variable can be placed.

(True/False)
4.8/5
(35)

The _____ is a mouse event object property that references the secondary object, where for the mouseover event, it i s the element that the pointer is leaving and for the mouseout event it is the element that the pointer is entering.

(Multiple Choice)
4.8/5
(27)

Case-Based Critical Thinking Questions Case 11-1 Mark has created a multimedia website about tourism that contains multiple images and videos of different tourist destinations. He wants to make certain changes to the website. These changes can be performed within the browser with the help of event handlers. Mark wants to add content to the website that he is creating by copying it from another web page. Which of the following event handlers must Mark use to administer the event in the browser window of the website?

(Multiple Choice)
4.9/5
(35)

The _____ object property references the browser window in which the event has occurred.

(Multiple Choice)
4.8/5
(38)

In the evt.eventPhase property, identify the phase of the event propagation the object is currently at when its value is 2.

(Multiple Choice)
4.8/5
(39)

The _____ event handler is applied to a page when it is about to be unloaded by the browser.

(Multiple Choice)
4.8/5
(23)

The event object contains properties and methods associated with an event.

(True/False)
4.9/5
(38)

Named functions are more concise and easier to manage than anonymous functions.

(True/False)
4.7/5
(37)
Identify the letter of the choice that best matches the phrase or definition.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
evt.clientX
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
evt.detail
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
onresize
Correct Answer:
Verified
Premises:
Responses:
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
evt.clientX
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
evt.detail
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
onresize
This event handler is used when a user copies some content into an element.
oncopy
This event property returns the number of times the mouse button was clicked.
evt.screenY
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
onpaste
This event handler is used when a user downsizes the content of an element.
evt.button
This event property returns the number of times the mouse button was clicked.
evt.pageX
This event handler is used when a browser window is rescaled.
oncut
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
onload
(Matching)
4.9/5
(44)
Identify the letter of the choice that best matches the phrase or definition.
This event handler is used when a user downsizes the content of an element.
oncopy
This event handler is used when a user copies some content into an element.
evt.pageX
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
evt.button
Correct Answer:
Verified
Premises:
Responses:
This event handler is used when a user downsizes the content of an element.
oncopy
This event handler is used when a user copies some content into an element.
evt.pageX
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
evt.button
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
oncut
This event handler is used when a user replicates the content of an element.
evt.clientX
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
evt.detail
This event property returns the number of times the mouse button was clicked.
onload
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
onresize
This event handler is used when a browser window is rescaled.
onpaste
This event handler is used after a page on the browser has been stacked.
evt.screenY
(Matching)
4.9/5
(32)

Which of the following keyboard event properties returns a Boolean value indicating whether a specific key was used in an event?

(Multiple Choice)
4.8/5
(34)

Case-Based Critical Thinking Questions Case 11-5 Ashton has created a website for his company using JavaScript. He wants to add dialog boxes to the website to display messages and allow the user to input text. Ashton wants to create a dialog box for his website that asks the user to select OK or Cancel when he or she decides to leave the website. Which of the following commands should Ashton use to do this?

(Multiple Choice)
4.8/5
(41)

Case-Based Critical Thinking Questions Case 11-2 Matt has developed a game using JavaScript that involves clicking of different mouse buttons continuously for a minute. The game provides instructions on which mouse button must be clicked and the number of times a button must be clicked to play the game. Which of the following mouse event object properties counts the number of times the player clicks the mouse button during the game?

(Multiple Choice)
4.9/5
(32)

Identify the syntax to remove an event listener.

(Multiple Choice)
4.8/5
(43)

Identify the sequence of the occurrence of events when a user types a keyboard key.

(Multiple Choice)
4.7/5
(30)

Which of following codes of an event handler records the exact window position of the mouse pointer as it maneuvers across an element?

(Multiple Choice)
4.8/5
(43)

Which of the following is a true statement about an event listener?

(Multiple Choice)
4.9/5
(39)

During a mouse action, events cannot be fired more than once.

(True/False)
4.8/5
(34)

The dblclick event indicates that the mouse button has been double-clicked.

(True/False)
4.8/5
(35)
Showing 41 - 60 of 76
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)