- jQuery - Home
- jQuery - Roadmap
- jQuery - Overview
- jQuery - Basics
- jQuery - Syntax
- jQuery - Selectors
- jQuery - Events
- jQuery - Attributes
- jQuery - AJAX
- jQuery CSS Manipulation
- jQuery - CSS Classes
- jQuery - Dimensions
- jQuery - CSS Properties
- jQuery Traversing
- jQuery - Traversing
- jQuery - Traversing Ancestors
- jQuery - Traversing Descendants
- jQuery References
- jQuery - Selectors
- jQuery - Events
- jQuery - Effects
- jQuery - HTML/CSS
- jQuery - Traversing
- jQuery - Miscellaneous
- jQuery - Properties
- jQuery - Utilities
- jQuery Plugins
- jQuery - Plugins
- jQuery - PagePiling.js
- jQuery - Flickerplate.js
- jQuery - Multiscroll.js
- jQuery - Slidebar.js
- jQuery - Rowgrid.js
- jQuery - Alertify.js
- jQuery - Progressbar.js
- jQuery - Slideshow.js
- jQuery - Drawsvg.js
- jQuery - Tagsort.js
- jQuery - LogosDistort.js
- jQuery - Filer.js
- jQuery - Whatsnearby.js
- jQuery - Checkout.js
- jQuery - Blockrain.js
- jQuery - Producttour.js
- jQuery - Megadropdown.js
- jQuery - Weather.js
jQuery - Online Quiz
Following quiz provides Multiple Choice Questions (MCQs) related to jQuery Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.
Q 1 - How can you get the total number of arguments passed to a function?
A - Using args.length property
Answer : B
Explaination
Using arguments.length property, we can get the total number of arguments passed to a function.
Q 2 - Which of the following is correct about callbacks?
A - A callback is a plain JavaScript function passed to some method as an argument or option.
Answer : C
Explaination
A callback is a plain JavaScript function passed to some method as an argument or option. Some callbacks are just events, called to give the user a chance to react when a certain state is triggered.
Q 3 - Which of the following jQuery selector selects all elements available in a DOM?
Answer : A
Explaination
$('*') selects all elements available in a DOM.
Q 4 - Which of the following jQuery method sets attributes of an element?
Answer : A
Explaination
The attr(name, value) method can be used to set the named attribute onto all elements in the wrapped set using the passed value.
Q 5 - Which of the following jQuery method removes elements matching the specified selector from the set of matched elements?
Answer : C
Explaination
The not(selector) method removes elements matching the specified selector from the set of matched elements.
Q 6 - Which of the following jQuery method gets a set of elements containing the unique ancestors of the matched set of elements?
Answer : C
Explaination
The parents( [selector] ) method gets a set of elements containing the unique ancestors of the matched set of elements (except for the root element).
Q 7 - Which of the following jQuery method gets a set of elements containing all of the unique siblings of each of the matched set of elements?
Answer : C
Explaination
The siblings( [selector] ) method gets a set of elements containing all of the unique siblings of each of the matched set of elements.
Q 8 - Which of the following jQuery method removes all child nodes from the set of matched elements?
Answer : A
Explaination
The empty( ) method removes all child nodes from the set of matched elements.
Q 9 - Which of the following jQuery method binds a handler to one or more events (like click) for an element?
Answer : A
Explaination
The bind( type, [data], fn ) function binds a handler to one or more events (like click) for each matched element. Can also bind custom events.
Q 10 - Which of the following jQuery method loads a remote page using an HTTP GET request?
A - jQuery.get( url, [data], [callback], [type] )
B - jQuery.getJSON( url, [data], [callback] )
Answer : A
Explaination
The jQuery.get( url, [data], [callback], [type] ) method loads a remote page using an HTTP GET request.