Time remaining
:
:
Test Status
JSJQUERYRANDOMTEST
Ques 1 :
Inside which HTML element do we put the JavaScript?
(A) <js>
(B) <scripting>
(C) <script>
(D) <javascript>
Ques 2 :
JQuery donā??t have DOM traversing capability.
(A) True
(B) False
Ques 3 :
$('p').click(function(){
// Code here
});
Inside the commented section, the value of the variable this is a..
(A) Array
(B) String
(C) Reference to the DOM node
(D) jQuery object
Ques 4 :
What does .size() method of jquery returns?
(A) No. of element in object
(B) No. of variable in object
(C) Both a and b
(D) None of these
Ques 5 :
______ JavaScript is also called client-side JavaScript.
(A) Microsoft
(B) Navigator
(C) LiveWire
(D) Native
Ques 6 :
Which of the following way can be used to indicate the LANGUAGE attribute?
(A) <SCRIPT LANGUAGE="JavaScriptVersion">
(B) <SCRIPT LANGUAGE="JavaScriptVersion">
(C) <SCRIPT LANGUAGE="JavaScriptVersion">JavaScript statements</SCRIPT>
(D) <SCRIPT LANGUAGE="JavaScriptVersion"!> JavaScript statements</SCRIPT>
Ques 7 :
Which popup box you use when want some information comes from user?
(A) alert("Write some text here")
(B) confirm("Write some text here")
(C) prompt("Write here some text","Write default value here")
Ques 8 :
______ tag is an extension to HTML that can enclose any number of JavaScript statements.
(A) SCRIPT tag
(B) BODY tag
(C) HEAD tag
(D) TITLE tag
Ques 9 :
Which of the following jQuery method checks if event.stopPropagation() was ever called on this event object?
(A) isDefaultPrevented( )
(B) isPropagationStopped( )
(C) isImmediatePropagationStopped( )
(D) None of the above.
Ques 10 :
live() function will not work in chaining
(A) True
(B) False
Ques 11 :
Which JQuery method is used to remove selected elements?
(A) detach()
(B) remove()
(C) Both methods can be used
(D) None of the above
Ques 12 :
Which of the following navigator object properties is the same in both Netscape and IE?
(A) navigator.appCodeName
(B) navigator.appName
(C) navigator.appVersion
(D) None of the above
Ques 13 :
In JavaScript, we can keep a reference to the context outside a function by assigning it to a variable: var self = this. In CoffeeScript, we use:
(A) self = this printScope -> console.log self
(B) printScope => console.log @
(C) printScope => console.log this
(D) All of the above
Ques 14 :
The______ method is used to represent an array or an object in serialize manner.
(A) size()
(B) length
(C) param()
(D) None of these
Ques 15 :
What is the output of the following code snippet?
typeof ([]), typeof (new Array())
(A) "array", "object"
(B) "object", "array"
(C) "array", "array"
(D) "object", "object"
Ques 16 :
Which of the following function of Array object returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found?
(A) indexOf()
(B) lastIndexOf()
(C) join()
(D) map()
Ques 17 :
How to determine whether a function exists by using the typeof operator?
var square = function(number1, number2) { return number1 + number2 };
(A) typeof square == 'function'
(B) typeof square == 'object'
Ques 18 :
Which of the following is not a valid JavaScript variable name?
(A) 2names
(B) _first_and_last_names
(C) FirstAndLast
(D) None of the above
Ques 19 :
What is the output of the following code snippet?
eval(20*4)=?
(A) NaN
(B) 204
(C) 24
(D) 80
Ques 20 :
Why do we usually add the stop() method before calling animate()?
(A) stop() halts the execution of the scripts on the page until the animation has finished.
(B) stop() ends any currently running animations on the element, and prevents conflicts and pile-ups.
(C) We tell jQuery that the animation has to be stopped at some point.
Submit Answer
Don't Refresh the Page !! ...