Time remaining
:
:
Test Status
JSJQUERYRANDOMTEST
Ques 1 :
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 2 :
The __ value is returned when you use an object property that does not exist, or a variable that has been declared, but has never had a value assigned to it.
(A) null
(B) undefined
(C) NaN
(D) None of the above
Ques 3 :
____________ is the tainted property of a window object.
(A) Pathname
(B) Protocol
(C) Defaultstatus
(D) Host
Ques 4 :
How to test the pattern for the given text?
var text = "testing: 1, 2, 3";
var pattern = /\d+/g;
(A) text==pattern
(B) text.equals(pattern)
(C) text.test(pattern)
(D) pattern.test(text)
Ques 5 :
To set up the window to capture all Click events, we use which of the following statement?
(A) window.captureEvents(Event.CLICK);
(B) window.handleEvents (Event.CLICK);
(C) window.routeEvents(Event.CLICK );
(D) window.raiseEvents(Event.CLICK );
Ques 6 :
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 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 :
var city = new Array("delhi", "agra", "akot", "aligarh","palampur");
console.log(city.shift());
(A) agra
(B) akot
(C) delhi
(D) aligarh
Ques 9 :
Which JQuery method is used to perform an asynchronous HTTP request?
(A) jQuery.ajaxSetup()
(B) jQuery.ajax()
(C) jQuery.ajaxAsync()
Ques 10 :
var city = new Array("delhi", "agra", "akot", "aligarh","palampur");
console.log(city.pop());
(A) delhi
(B) palampur
(C) agra
(D) akot
Ques 11 :
The CSS selector engine that JQuery uses is called?
(A) Badaboom
(B) Mango
(C) Sizzle
(D) AwesomeX
Ques 12 :
What is the difference between .width() and .outerWidth()?
(A) The methods are basically the same. The only difference is that .width() returns a number, whereas outerWidth() a string.
(B) width() returns the computed width of the element, while outerWidth() returns the width plus all the margins and paddings.
(C) No difference. width() is a shorthand alias for outerWidth()
Ques 13 :
1)jquery.size() 2) jquery.length Which is faster?
(A) jquery.length
(B) jquery.size()
Ques 14 :
If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph?
(A) "New Text"?
(B) para1.value="New Text";
(C) para1.firstChild.nodeValue= "New Text";
(D) para1.nodeValue="New Text";
Ques 15 :
jquery has _______ method for inserting element before other element.
(A) One
(B) Two
(C) Three
(D) Four
Ques 16 :
Is JQuery a W3C standard?
(A) No
(B) Yes
Ques 17 :
To enable data tainting, the end user sets the _________ environment variable.
(A) ENABLE_TAINT
(B) MS_ENABLE_TAINT
(C) NS_ENABLE_TAINT
(D) ENABLE_TAINT_NS
Ques 18 :
What is the output? x = 100 / "Mango";
(A) null
(B) undefined
(C) NaN
(D) Infinity
Ques 19 :
What is the output of the following code.
var city = new Array("delhi", "agra", "akot", "aligarh");
city.push('palampur');
console.log(city);
(A) ["palampur", "delhi", "agra", "akot", "aligarh"]
(B) ["delhi", "agra", "akot", "palampur", "aligarh"]
(C) ["delhi", "agra", "akot", "aligarh", "palampur"]
(D) None of them
Ques 20 :
By default .clone() method copy any event.
(A) Yes
(B) No
Submit Answer
Don't Refresh the Page !! ...