Time remaining
:
:
Test Status
JSJQUERYRANDOMTEST
Ques 1 :
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 2 :
Which of the following function of Array object extracts a section of an array and returns a new array?
(A) reverse()
(B) shift()
(C) slice()
(D) some()
Ques 3 :
What is an array-like object containing the arguments passed to the currently executing function.
(A) arguments
(B) function
(C) args
(D) None of the above
Ques 4 :
var city = new Array("delhi", "agra", "akot", "aligarh","palampur");
console.log(city.pop());
(A) delhi
(B) palampur
(C) agra
(D) akot
Ques 5 :
Which JQuery method should be used to deal with name conflicts?
(A) conflict()
(B) noConflict()
(C) noNameConflict()
(D) nameConflict()
Ques 6 :
Look at the following selector: $("div"). What does it select?
(A) The first div element
(B) All div elements
Ques 7 :
What is the output? x = 100 / "Mango";
(A) null
(B) undefined
(C) NaN
(D) Infinity
Ques 8 :
Which of the following attribute can hold the JavaScript version?
(A) language
(B) script
(C) version
(D) none of the above
Ques 9 :
Which jQuery method is used to switch between adding/removing one or more classes (for CSS) from selected elements?
(A) toggleClass()
(B) switch()
(C) altClass()
(D) switchClass()
Ques 10 :
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.
Ques 11 :
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 12 :
Which of the following method is used to hide the selected elements?
(A) visible(false)
(B) hidden()
(C) display(none)
(D) hide()
Ques 13 :
Which statement is true?
(A) To use jQuery, you do not have to do anything. Most browsers (Internet Explorer, Chrome, Firefox and Opera) have the jQuery library built in the browser
(B) To use jQuery, you can refer to a hosted jQuery library at Google
(C) To use jQuery, you must buy the jQuery library at www.jquery.com
Ques 14 :
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 15 :
JQuery is the programming language
(A) Yes
(B) No
Ques 16 :
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 17 :
Is it valid to nest functions in JavaScript?
(A) Yes
(B) No
Ques 18 :
If you pass less number of parameters than the expected number of parameters to a function, the missing parameters get assigned the value __.
(A) null
(B) undefined
(C) Syntax Error
(D) None of the above
Ques 19 :
How to delete a property of an object?
var obj = {a:5};
(A) delete obj.a;
(B) delete obj;
Ques 20 :
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
Submit Answer
Don't Refresh the Page !! ...