
- jQuery Tutorial
- jQuery - Home
- jQuery - Overview
- jQuery - Basics
- jQuery - Syntax
- jQuery - Selectors
- jQuery - Events
- jQuery - Attributes
- jQuery - AJAX
- jQuery DOM Manipulation
- jQuery - DOM
- jQuery - Add Elements
- jQuery - Remove Elements
- jQuery - Replace Elements
- jQuery CSS Manipulation
- jQuery - CSS Classes
- jQuery - Dimensions
- jQuery - CSS Properties
- jQuery Traversing
- jQuery - Traversing
- jQuery - Traversing Ancestors
- jQuery - Traversing Descendants
- jQuery References
- 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 Useful Resources
- jQuery - Questions and Answers
- jQuery - Quick Guide
- jQuery - Useful Resources
- jQuery - Discussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
jQuery - Mock Test
This section presents you various set of Mock Tests related to jQuery Framework. You can download these sample mock tests at your local machine and solve offline at your convenience. Every mock test is supplied with a mock test key to let you verify the final score and grade yourself.

jQuery Mock Test III
Q 1 - 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 2 - 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 3 - Which of the following jQuery method finds all the child nodes inside the matched elements (including text nodes), or the content document, if the element is an iframe?
Answer : C
Explaination
The contents( ) method finds all the child nodes inside the matched elements (including text nodes), or the content document, if the element is an iframe.
Q 4 - Which of the following jQuery method reverts the most recent 'destructive' operation, changing the set of matched elements to its previous state?
Answer : B
Explaination
The end( ) method reverts the most recent 'destructive' operation, changing the set of matched elements to its previous state.
Q 5 - Which of the following jQuery method searches for descendent elements that match the specified selectors?
Answer : B
Explaination
The find( selector ) method searches for descendent elements that match the specified selectors.
Q 6 - Which of the following jQuery method gets a set of elements containing the unique next siblings of each of the given set of elements?
Answer : C
Explaination
The next( [selector] ) gets a set of elements containing the unique next siblings of each of the given set of elements.
Q 7 - Which of the following jQuery method finds all sibling elements after the current element?
Answer : C
Explaination
The nextAll( [selector] ) finds all sibling elements after the current element.
Q 8 - Which of the following jQuery method returns a jQuery collection with the positioned parent of the first matched element?
Answer : A
Explaination
The offsetParent( ) method returns a jQuery collection with the positioned parent of the first matched element.
Q 9 - Which of the following jQuery method gets the direct parent of an element?
Answer : C
Explaination
The parent( [selector] ) method gets the direct parent of an element. If called on a set of elements, parent returns a set of their unique direct parent elements.
Q 10 - 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 11 - Which of the following jQuery method gets a set of elements containing the unique previous siblings of each of the matched set of elements?
Answer : B
Explaination
The prev( [selector] ) method gets a set of elements containing the unique previous siblings of each of the matched set of elements.
Q 12 - 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 13 - 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 14 - Which of the following jQuery method gets the style property of an element?
Answer : C
Explaination
The css( name ) method returns a style property on the first matched element.
Q 15 - Which of the following jQuery method sets the style property of an element?
Answer : C
Explaination
The css( name, value ) method sets a style property on the first matched element.
Q 16 - Which of the following jQuery method sets the height property of an element?
Answer : C
Explaination
The height( value ) method sets the CSS height of every matched element.
Q 17 - 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 18 - Which of the following jQuery method sets the width property of an element?
Answer : C
Explaination
The width( value ) method sets the width of every matched element.
Q 19 - Which of the following jQuery method gets the width property of an element?
Answer : C
Explaination
The width( ) method gets the width of every matched element.
Q 20 - 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 21 - Which of the following jQuery method gets the inner width (excluding the border) of an element?
Answer : B
Explaination
The innerWidth( ) method gets the inner width (excludes the border and includes the padding) for the first matched element.
Q 22 - Which of the following jQuery method gets the current offset of the first matched element, in pixels, relative to the document?
Answer : A
Explaination
The offset( ) method gets the current offset of the first matched element, in pixels, relative to the document.
Q 23 - Which of the following jQuery method returns a jQuery collection with the positioned parent of the first matched element?
Answer : B
Explaination
The offsetParent( ) method returns a jQuery collection with the positioned parent of the first matched element.
Q 24 - 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 25 - 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.
Answer Sheet
Question Number | Answer Key |
---|---|
1 | B |
2 | C |
3 | C |
4 | B |
5 | B |
6 | C |
7 | C |
8 | A |
9 | C |
10 | C |
11 | B |
12 | B |
13 | C |
14 | C |
15 | C |
16 | C |
17 | C |
18 | C |
19 | C |
20 | B |
21 | B |
22 | A |
23 | B |
24 | C |
25 | C |