Time remaining
:
:
Test Status
JSJQUERYRANDOMTEST
Ques 1 :
Which of the following jQuery method removes elements matching the specified selector from the set of matched elements?
(A) getNotEquals( selector )
(B) isNotEquals( selector )
(C) not(selector)
(D) None of the above.
Ques 2 :
Look at the following selector: $("p#intro"). What does it select?
(A) All p elements with class="intro"
(B) The p element with id="intro"
Ques 3 :
______ 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 4 :
What is the output of this code typeof null
(A) Number
(B) String
(C) Object
(D) NaN
Ques 5 :
Which JQuery method is used to set one or more style properties for selected elements?
(A) css()
(B) html()
(C) style()
Ques 6 :
Is it valid to nest functions in JavaScript?
(A) Yes
(B) No
Ques 7 :
$('#pcds').attr('disabled', true); these code is used for the ______ form element.
(A) enable
(B) disable
Ques 8 :
Which of the following best describes JavaScript?
(A) a low-level programming language.
(B) a scripting language pre-compiled in the browser.
(C) a compiled scripting language.
(D) an object-oriented scripting language.
Ques 9 :
What does isNaN function do?
(A) Returns false if the argument is not a number.
(B) Returns true if the argument is not a number.
(C) Returns true if the argument is a number.
(D) None of the above
Ques 10 :
The __ statement breaks the loop and continues executing the code after the loop.
(A) break
(B) continue
(C) return
(D) None of the above
Ques 11 :
Which of the following method is used to hide the selected elements?
(A) visible(false)
(B) hidden()
(C) display(none)
(D) hide()
Ques 12 :
Load remote data using HTTP GET
(A) $.get(url,data,callback,type)
(B) $.ajax(options)
(C) $.post(url,data,callback,type)
(D) $.getScript(url,callback)
Ques 13 :
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 14 :
var city = new Array("delhi", "agra", "akot", "aligarh","palampur");
console.log(city.slice(2));
(A) ["delhi","agra","akot"]
(B) ["akot","aligarh","palampur"]
(C) ["delhi","agra","akot","aligarh","palampur"]
(D) None
Ques 15 :
To deal with cookies in JQuery we have to use ______ cookie plugin
(A) Dough
(B) Session
(C) Dazzler
(D) None of these
Ques 16 :
How do you fetch the first span on the page, which has the class "green"
(A) $('span, .green, :first')
(B) $('first .green span')
(C) $('span.green:first')
(D) null
Ques 17 :
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 18 :
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 19 :
How to add properties to object?
var car = {};
(A) car.make = "Ford";
(B) car["make"] = "Ford";
(C) var car = {make: Ford};
(D) All of the above
Ques 20 :
JQuery ______is used to set/return arbitrary data to/from an element.
(A) .data()
(B) .item()
(C) .all
(D) All of these
Submit Answer
Don't Refresh the Page !! ...