Time remaining
:
:
Test Status
JSJQUERYRANDOMTEST
Ques 1 :
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 2 :
Which JQuery method is used to hide selected elements?
(A) hidden()
(B) display(none)
(C) visible(false)
(D) hide()
Ques 3 :
What is mean by "this" keyword in javascript?
(A) It refers current object
(B) It referes previous object
(C) It is variable which contains value
(D) None of the above
Ques 4 :
Which of the following function of Number object formats a number with a specific number of digits to the right of the decimal?
(A) toExponential()
(B) toFixed()
(C) toPrecision()
(D) toLocaleString()
Ques 5 :
_______is use for alternately expand and collapse a page element
(A) .hover()
(B) stopPropagation()
(C) .toggle()
(D) .trigger()
Ques 6 :
live() function will not work in chaining
(A) True
(B) False
Ques 7 :
Highlight page element under mouse cursor by using ________
(A) .hover()
(B) stopPropagation()
(C) .toggle()
(D) .trigger()
Ques 8 :
.css(â??widthâ??) and .width() are the two ways to change the width of _________.
(A) selector
(B) element
(C) fade effect
(D) radio button
Ques 9 :
What is the output? x = 100 / "Mango";
(A) null
(B) undefined
(C) NaN
(D) Infinity
Ques 10 :
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 11 :
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 12 :
When does the function name become optional in JavaScript?
(A) Function is defined within a function
(B) Function is defined using Function constructor
(C) Function is defined as an expression
(D) Function is predefined
Ques 13 :
var city = ["delhi", "agra", "akot", "aligarh"];
console.log(city.sort());
(A) ["agra", "akot", "aligarh", "delhi"]
(B) ["delhi", "agra", "akot", "aligarh"]
(C) ["aligarh", "agra", "akot", "delhi"]
(D) ["akot", "agra", "delhi", "aligarh"]
Ques 14 :
What is the output of this strict equality operator? 5 === "5"
(A) False
(B) True
Ques 15 :
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 16 :
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 17 :
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 18 :
What is the output of the following code snippet?
var str = "Apple, Banana, Kiwi";
var res = str.substring(7,13);
(A) Banana
(B) Apple
(C) Kiwi
(D) Banana, Kiwi
Ques 19 :
JQuery.noConflict(true) is used to..
(A) Free up the $ symbol for use by other libraries
(B) Improve compatibility
(C) Remove all jQuery variables from the global scope
(D) All of the above
Ques 20 :
Which built-in method returns the calling string value converted to upper case?
(A) toUpperCase()
(B) toUpper()
(C) changeCase(case)
(D) None of the above.
Submit Answer
Don't Refresh the Page !! ...