1D0-720 · Question #14
Which of the following is a common JavaScript event handler?
The correct answer is D. All of the above. All three options - onclick, onmouseover, and onchange - are genuine, commonly used JavaScript event handlers, which makes D (All of the above) correct. onclick fires when a user clicks an element, onmouseover fires when the mouse cursor enters an element's area, and onchange…
Question
Which of the following is a common JavaScript event handler?
Options
- Aonclick
- Bonmouseover
- Conchange
- DAll of the above
How the community answered
(62 responses)- A2% (1)
- B2% (1)
- C3% (2)
- D94% (58)
Explanation
All three options - onclick, onmouseover, and onchange - are genuine, commonly used JavaScript event handlers, which makes D (All of the above) correct. onclick fires when a user clicks an element, onmouseover fires when the mouse cursor enters an element's area, and onchange fires when the value of a form element (like an input or select) changes. Since A, B, and C are each valid on their own, none of them can be a "distractor" - they're all correct, which is exactly why D is the answer.
Memory tip: Think of event handlers as "on + action" pairs - on + click, on + mouseover, on + change. If you see on followed by a user action, it's almost certainly a real event handler. When an exam lists multiple things that are all true, "All of the above" is usually the trap hiding in plain sight.
Topics
Community Discussion
No community discussion yet for this question.