- 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?
C - jQuery is a JavaScript toolkit designed to simplify various tasks by writing less code.
Answer : D
Explaination
All of the above options are correct.
Q 2 - Which of the following type of variable takes precedence over other if names are same?
Answer : B
Explaination
A local variable takes precedence over a global variable with the same name.
Q 3 - Which built-in method returns the characters in a string beginning at the specified location?
Answer : A
Explaination
substr() method returns the characters in a string beginning at the specified location through the specified number of characters.
Q 4 - Which of the following jQuery method returns true if the specified class is present on at least one of the set of matched elements?
Answer : C
Explaination
The hasClass( class ) method returns true if the specified class is present on at least one of the set of matched elements.
Q 5 - Which of the following jQuery method set the value of an element?
Answer : B
Explaination
The val(val) method sets the value attribute of every matched element if it is called on <input> but if it is called on <select> with the passed <option> value then passed option would be selected, if it is called on check box or radio box then all the matching check box and radiobox would be checked.
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 gets the inner height (excluding the border) of an element?
Answer : B
Explaination
The innerHeight( ) method gets the inner height (excludes the border and includes the padding) for the first matched element.
Q 8 - Which of the following jQuery method returns the outer height (including the border) of an element?
Answer : C
Explaination
The outerHeight( [margin] ) method gets the outer height (includes the border and padding by default) for the first matched element.
Q 9 - Which of the following jQuery method binds a function to be executed whenever the DOM is ready to be traversed and manipulated?
Answer : A
Explaination
The ready(fn) function binds a function to be executed whenever the DOM is ready to be traversed and manipulated.
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.