Time remaining
:
:
Test Status
JSJQUERYRANDOMTEST
Ques 1 :
You can test whether the browser supports specific features using...
(A) $.support
(B) $.browser
(C) $.featureTest
(D) $.browserTest
Ques 2 :
How to delete a property of an object?
var obj = {a:5};
(A) delete obj.a;
(B) delete obj;
Ques 3 :
Which JQuery function is used to prevent code from running, before the document is finished loading?
(A) $(document).load()
(B) $(body).onload()
(C) $(document).ready()
Ques 4 :
Triggers, or binds a function to the error event of selected elements.
(A) click()
(B) error()
(C) event.pageX
(D) click.error()
Ques 5 :
Which popup box you use to verify something 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 6 :
Which JQuery method is used to switch between adding/removing one or more classes (for CSS) from selected elements?
(A) switchClass()
(B) switch()
(C) toggleClass()
(D) altClass()
Ques 7 :
____________ is the tainted property of a window object.
(A) Pathname
(B) Protocol
(C) Defaultstatus
(D) Host
Ques 8 :
______ JavaScript is also called client-side JavaScript.
(A) Microsoft
(B) Navigator
(C) LiveWire
(D) Native
Ques 9 :
Which of the following jQuery method returns the outer height (including the border) of an element?
(A) getCSSHeight( )
(B) getHeight( )
(C) outerHeight( [margin] )
(D) None of the above.
Ques 10 :
Which JQuery method is used to hide selected elements?
(A) hidden()
(B) display(none)
(C) visible(false)
(D) hide()
Ques 11 :
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 12 :
AJAX stand for____________
(A) Alternate java script and XML
(B) Asynchronous java script and XML
(C) Asynchronous java and XML
(D) None of these
Ques 13 :
What is the alternate name for Java script?
(A) LimeScript
(B) Coffee Script
(C) ECMScript
(D) ECMAScript
Ques 14 :
Look at the following selector: $("div p"). What does it select?
(A) All div elements with a p element
(B) All p elements inside a div element
(C) The first p element inside a div element
Ques 15 :
Which of the following is the structure of an if statement?
(A) if (conditional expression is true) then execute this code end if
(B) if (conditional expression is true)execute this code end if
(C) if (conditional expression is true) {then execute this code>->}
(D) if (conditional expression is true) then {execute this code}
Ques 16 :
Which JQuery method is used to perform an asynchronous HTTP request?
(A) jQuery.ajaxSetup()
(B) jQuery.ajax()
(C) jQuery.ajaxAsync()
Ques 17 :
What is the correct JQuery code to set the background color of all p elements to red?
(A) $("p").manipulate("background-color","red");
(B) $("p").layout("background-color","red");
(C) $("p").style("background-color","red");
(D) $("p").css("background-color","red");
Ques 18 :
The JQuery html() method works for both HTML and XML documents
(A) True
(B) False
Ques 19 :
Which of the following function of Boolean object returns a string of either 'true' or 'false' depending upon the value of the object?
(A) toSource()
(B) toString()
(C) valueOf()
(D) None of the above.
Ques 20 :
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'
Submit Answer
Don't Refresh the Page !! ...