- 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 type of variable is visible only within a function where it is defined?
Answer : B
Explaination
Local Variables: A local variable will be visible only within a function where it is defined. Function parameters are always local to that function.
Q 2 - Which built-in method combines the text of two strings and returns a new string?
Answer : B
Explaination
concat() method returns the character at the specified index.
Q 3 - Which of the following jQuery selector selects elements with the given element tag-name?
Answer : A
Explaination
$('tag-name') selects all element of type tag-name in the document. For example, $('p') selects all paragraphs <p> in the document.
Q 4 - Which of the following jQuery method adds the specified class if it is not present, remove the specified class if it is present?
Answer : B
Explaination
The toggleClass(class) method adds the specified class if it is not present, removes the specified class if it is present.
Q 5 - Which of the following jQuery method checks the current selection against an expression?
Answer : B
Explaination
The is( selector ) method checks the current selection against an expression and returns true, if at least one element of the selection fits the given selector.
Q 6 - Which of the following jQuery method gets a set of elements containing all of the unique immediate children of each of the matched set of elements?
Answer : B
Explaination
The children( [selector]) method gets a set of elements containing all of the unique immediate children of each of the matched set of elements.
Q 7 - Which of the following jQuery method gets the height property of an element?
Answer : C
Explaination
The height( ) method gets the CSS height of every matched element.
Q 8 - Which of the following jQuery method returns the top and left position of an element relative to its offset parent?
Answer : C
Explaination
The position( ) method gets the top and left position of an element relative to its offset parent.
Q 9 - Which of the following jQuery method can be used to attach a function to be executed whenever an AJAX request completes?
Answer : B
Explaination
The ajaxComplete( callback ) method can be used to register a callback to be executed whenever an AJAX request completes.
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.