- 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 - Which of the following is correct about jQuery?
A - The jQuery is very lightweight library - about 19KB in size ( Minified and gzipped ).
C - The jQuery supports CSS3 selectors and basic XPath syntax.
Answer : D
Explaination
All of the above options are correct.
Q 2 - Which built-in method calls a function for each element in the array?
Answer : C
Explaination
forEach() method calls a function for each element in the array.
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 removes an attribute from each of the matched elements?
Answer : B
Explaination
The removeAttr( name ) method can be used to remove an attribute from each of the matched elements.
Q 5 - Which of the following jQuery method sets the text of an element?
Answer : A
Explaination
The text( val ) sets the text contents of all matched elements.
Q 6 - Which of the following jQuery method gets a set of elements containing the closest parent element that matches the specified selector, the starting element included?
Answer : C
Explaination
The closest( selector ) method gets a set of elements containing the closest parent element that matches the specified selector, the starting element included.
Q 7 - Which of the following jQuery method finds all sibling elements in front of the current element?
Answer : B
Explaination
The prevAll( [selector] ) method finds all sibling elements in front of the current element.
Q 8 - Which of the following jQuery method checks if event.preventDefault() was ever called on this event object?
Answer : A
Explaination
The isDefaultPrevented() method of Event object returns whether event.preventDefault() was ever called on this event object.
Q 9 - Which of the following jQuery method stops the bubbling of an event to parent elements?
Answer : C
Explaination
The stopPropagation() method of Event object stops the bubbling of an event to parent elements, preventing any parent handlers from being notified of the event.
Q 10 - Which of the following jQuery method setups global settings for AJAX requests?
Answer : B
Explaination
The jQuery.ajaxSetup( options ) method setups global settings for AJAX requests.