MCQGeeks
0 : 0 : 1
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Quiz
Javascript
Document Object Model And Event Handling
Quiz 4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Q.1
How many node object properties are there?
12
14
16
17
Q.2
Which of the following Node object property returns the node immediately before a node?
previousSibling
textContent
index
localName
Q.3
Which of the following is the child(s) of the node type EntityReference?
Element
Text
Both Element and Text
None of the mentioned
Q.4
What is the purpose of the method getUserData(key)?
Returns the associated object
Gets the user data
Returns the user data
None of the mentioned
Q.5
How to test if two nodes are equal?
isEqualNode()
equal()
==
none of the mentioned
Q.6
How many node types are there in total?
11
12
13
14
Q.7
What is the purpose of the Node object property ownerDocument?
Returns the root element
Returns the last element
Returns the parent node
Returns the immediate node
Q.8
How to associate an object to a key on a node?
getUserData()
cloneNode()
setUserData(key,data,handler)
none of the mentioned
Q.9
Which method is used to compare the placement of two nodes in the DOM hierarchy (document)?
compareDocumentPosition()
cloneNode()
getUserData()
getFeature()
Q.10
Which of the following Node object property returns the local part of the name of a node?
lastName
localName
firstName
none of the mentioned
Q.11
What is the property textContent?
Sets the textual content of a node
Returns the textual content of a node
Sets & Returns the textual content of a node
None of the mentioned
Q.12
How many Node object methods are available?
18
19
20
21
Q.13
Which of the following key property holds the key name as a string?
keyName
key
keyName(string)
Nameofkey(string)
Q.14
Which of the following is not the value the key property will hold if the key is a function key?
F8
F2
Home
Left
Q.15
Which method is used to add a binding?
binding()
add_bind()
bind()
None of the mentioned
Q.16
Which method is used to remove a binding?
Unbind()
removebind()
remove(Bind b)
unbind()
Q.17
Which of the following are the parameters passed to the keymap after installation?
Key property
Key name
Keydown event’s object
Key stroke
Q.18
When are the keyboard events fired?
When user manually calls the button
When user clicks a key
When the user calls the modifier
All of the mentioned
Q.19
How does a user generate multiple keydown events?
Repeating the same process
Pressing multiple keys
Pressing the key longer than usual
None of the mentioned
Q.20
What value does the keyCode property holds when a Shift key is pressed for adding punctuation character?
Special characters
Alphabets
Alphanumeric
Digits
Q.21
Which of the following are not key event properties?
Code key
Alt Key
Ctrl Key
Shift Key
Q.22
Which of the following is defined by the specification?
dataMethod
input
inputMethod
inputdataMethod
Q.23
Which two events will have the generated text for key events?
key and char
char and text
text and key
key and value
Q.24
DOM Level 3 Events standardizes which of the following events?
focusarea and focusover
focusall and focusnone
focusdown and focusup
focusin and focusout
Q.25
Which of the following are the unnecessary events currently?
DOMActivate
DOMFocusIn
DOMNodeInserted
All of the mentioned
Q.26
Which of the following are the drag and drop events?
drop
dragstart
both drop and dragstart
none of the mentioned
Q.27
Which property holds a DataTransfer object that contains information about the data being transferred and the formats in whichh it is available?
dataTransfer
transferData
dataExchange
exchangeData
Q.28
Which object is passed as the argument to handlers for keydown, keyup, and keypress events?
KeyboardEvent
Key Event
Mouse Event
Alphabet Event
Q.29
Which property reports rotation around three different mouse wheel axes?
ctrlKey
alterX
alterY
deltaX
Q.30
When is the mouseout event fired?
When mouse is no longer over an element
When mouse is over an element
When mouse is hovered
None of the mentioned
0 h : 0 m : 1 s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Report Question
×
What's an issue?
Question is wrong
Answer is wrong
Other Reason
Want to elaborate a bit more? (optional)
Support mcqgeeks.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page