Exam 11: Working With Events and Styles Tutorial

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

Which of the following are the charCode values for the cursor control keys when the keydown and keyup events occur?

(Multiple Choice)
4.9/5
(38)
Identify the letter of the choice that best matches the phrase or definition.
This event handler is used when a user copies some content into an element.
evt.clientX
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
oncut
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
evt.pageX
Correct Answer:
Verified
Premises:
Responses:
This event handler is used when a user copies some content into an element.
evt.clientX
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
oncut
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
evt.pageX
This event property returns the number of times the mouse button was clicked.
evt.button
This event handler is used when a user replicates the content of an element.
oncopy
This event handler is used when a browser window is rescaled.
onresize
This event handler is used when a user downsizes the content of an element.
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 after a page on the browser has been stacked.
onload
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
evt.detail
(Matching)
4.8/5
(41)

Which of the following browsers supports cursors only in CUR and ANI formats?

(Multiple Choice)
4.8/5
(38)

Identify the keyCode values of the modifier keys when the keyup and keydown events occur.

(Multiple Choice)
4.9/5
(38)

Which of the following is the correct syntax for a command in JavaScript to apply inline styles using the following style attribute? …

(Multiple Choice)
4.8/5
(31)

The onclick event handler recognizes the propagation of events through the capture and bubbling phases.

(True/False)
4.7/5
(44)

Which of the following event properties or methods returns a Boolean value that indicates whether an event can have its default action terminated?

(Multiple Choice)
4.9/5
(35)

Case-Based Critical Thinking Questions Case 11-3 Robin has developed a typing tutorial using JavaScript that contains instructions and interactive activities and games. A user is required to press certain keys. The instructions appear on the screen when the user is using the tutorial. The user is instructed to press the Windows key on the PC keyboard every five seconds to complete a game. Which of the following keyboard event properties identifies if the key has been pressed or not?

(Multiple Choice)
4.8/5
(34)

Explain function declaration in JavaScript. How is the method of function declaration in JavaScript more flexible?

(Essay)
4.8/5
(33)

All JavaScript properties must begin with an uppercase letter.

(True/False)
4.8/5
(41)

Identify the correct syntax to prevent a submit button from submitting a web form when clicked using the prevent default() method.

(Multiple Choice)
4.7/5
(39)

Why are functions treated differently in JavaScript? List some unique things that are possible with functions in JavaScript.

(Essay)
4.9/5
(45)

Identify the mouse event property that returns an integer indicating the mouse button that was pressed, where 0 = none, 1 = left, 2 = wheel or middle, and 3 = right.

(Multiple Choice)
4.8/5
(39)

The evt.target returns the object in which the event was initiated.

(True/False)
4.8/5
(36)

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 upload a video of a tourist destination onto the website but is unable to do so. Which of the following event handlers should Mark apply to handle the corresponding event in the browser?

(Multiple Choice)
4.9/5
(31)

The event model describes how events and objects interact within a web page and a web browser.

(True/False)
4.8/5
(38)
Showing 61 - 76 of 76
close modal

Filters

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