ExamVeda
Login
Home
91
DOM Level 3 Events standardizes which of the following events?
Discuss
Answer & Solution
Answer: Option D
Solution:
The DOM Level 3 Events specification standardizes the focusin and focusout events as bubbling alternatives to the focus and blur events.
92
Which of the following are the unnecessary events currently?
Discuss
Answer & Solution
Answer: Option D
Solution:
Browsers are still allowed to generate events like DOMActivate, DOMFocusIn, and DOMNodeInserted, but these are no longer required.
93
Which object is passed as the argument to handlers for keydown, keyup, and keypress events?
Discuss
Answer & Solution
Answer: Option A
Solution:
What is new in the DOM Level 3 Events specification is standardized support for twodimensional mouse wheels via the wheel event and better support for text input events with a textinput event and with a new KeyboardEvent object that is passed as the argument to handlers for keydown, keyup, and keypress events.
94
Which property reports rotation around three different mouse wheel axes?
Discuss
Answer & Solution
Answer: Option D
Solution:
A handler for a wheel event receives an event object with all the usual mouse event properties, and also deltaX, deltaY, and deltaZ properties that report rotation around three different mouse wheel axes.
95
Which of the following property specifies the string of text that was entered?
Discuss
Answer & Solution
Answer: Option B
Solution:
A textinput event handler has a data property that specifies the string of text that was entered.
96
Which of the following is defined by the specification?
Discuss
Answer & Solution
Answer: Option C
Solution:
The specification defines an inputMethod property on the event object and a set of constants representing different kinds of text input (keyboard, paste or drop, handwriting or voice recognition, and so on).
97
Which two events will have the generated text for key events?
Discuss
Answer & Solution
Answer: Option A
Solution:
For key events that generate printable characters, key and char will be equal to the generated text.
98
Which of the following are the drag and drop events?
Discuss
Answer & Solution
Answer: Option C
Solution:
The API defines the following seven event types :
1. dragstart
2. drag
3. dragend
4. dragenter
5. dragover
6. dragleave
7. drop
99
Which property holds a DataTransfer object that contains information about the data being transferred and the formats in whichh it is available?
Discuss
Answer & Solution
Answer: Option A
Solution:
The property, dataTransfer, holds a DataTransfer object that contains information about the data being transferred and the formats in which it is available.
100
Which API allows scripts in a document from one server to exchange messages with scripts?
Discuss
Answer & Solution
Answer: Option A
Solution:
The Cross-Document Messaging API allows scripts in a document from one server to exchange messages with scripts in a document from another server. This works around the limitations of the same-origin policy in a secure way. Each message that is sent triggers a message event on the Window of the receiving document.