Javascript Pre Test: A) Event Type
Javascript Pre Test: A) Event Type
A) event type
B) even target
2. Which is the object on which the event occured or with which the event is associated?
A) event type
B) event target
A) function
B) interface
C) event
D) handler
A) Program begins
A) Type B) Target
A) Event Triggering
B) Event Listening
C) Event Handling
D) Event propogation
A) Event Propogation
B) Event Registration
C) Event Capturing
D) Default Actions
8. The events that are directly tied to a specific input device are
B) Device-independent events
C) Device-dependent events
10. The events that are not directly tied to a specific input device are
B) Device-independent events
C) Device-dependent events
A. isarrayType()
B. ==
C. ===
D. Typeof
15. Consider the following code snippet :
var a = [];
a.unshift(1);
a.unshift(22);
a.shift();
a.unshift(3,[4,5]);
a.shift();
a.shift();
a.shift();
The final output for the shift() is
A. 1
B. [4,5].
C. [3,4,5].
D. Exception is thrown
16. What will happen if a return statement does not have an associated expression?
A. It returns the value 0
B. It returns the value 0
C. It returns the undefined value
D. None of the mentioned
17. A function with no return value is called
A. Procedures
B. Method
C. Static function
D. Dynamic function
18. Which of the following is the correct code for invoking a function without this
keyword at all, and also too determine whether the strict mode is in effect?