Jquery Is
Jquery Is
1. jQuery is - Server
a).Light weight b).Interpreter compiled - Both a and b
c).parallelly processed d).Runs in js shell - None of these
63. Minified and compressed version of 10. To deal with cookies in jQuery we have to use
jQuery is usually used as ______ cookie plugin
a).Development version b).Production version - Dough
c).Beta Version d).Alpha version - Session
- Dazzler
1. request? - None of these
2. How many types of selectors available in jquery. 11. $('#pcds').attr('disabled', true); these code is
- One used for the ______ form element.
- Two - enable
- Three - disable
- Four
12. For the purposes of selecting specific class, class
3. Is it compulsory to add jquery file both at master must contain prefix as “__“.
page and content page? -$
- Yes -#
- No -.
-%
4. ________________ is use for alternately expand
and collapse a page element 13. In which version of the jquery, efficiency of the
- .hover() web page increased.
- stopPropagation() - minified version
- .toggle() - normal version
- .trigger()
14. The .each method is the more convenient form
5. CDN stands for_______ of _______ loop.
- Content Distribution Network - do while
- Common Distribution Network - for
- Collective Distribution Network - for each
- None of these - None of these
6. “ Jquery is faster than javascript at execution 15. ”Jquery is the programming language”
time.” - Yes
- True - No
- False
16. Which of the following is jquery primary method
7. jquery has _______ method for inserting element for wrapping element around other element.
before other element. - .hover()
- One - .wrapall()
- Two - .wrap()
- Three - .each()
- Four
17. ”JQuery don’t have DOM traversing capability.”
8. jquery html() method works for _______ - True
- HTML - False
- XML
- HTML and XML 18. jquery written in which scripting language?
- None of these - java script
- VBscript
9. Jquery is a library for _______ scripting.
Thursday, August 20, 2020 Page |1
- HTML - 178KB
- None of these - 76.7 KB
24. AJAX stand for____________ 7. The jQuery html() method works for both HTML
and XML documents
- Asynchronous java script and XML A. False
- Alternate java script and XML B. True
- All time java and XML Ans:A
- None of these
25. There are how many ways to check or unchecked 8. What is the correct jQuery code to set the
the radio button. background color of all p elements to red?
- One A. $("p").layout("background-color","red");
- Two B. $("p").manipulate("background-color","red");
- Three C. $("p").css("background-color","red");
- Four D. $("p").style("background-color","red");
Ans:C
26. What is the file size of minified version of
jQuery.x.x.x-min.js?
10. Which jQuery method is used to hide selected 17. Which jQuery method should be used to deal with
elements? name conflicts?
A. hidden() A. noNameConflict()
B. hide() B. noConflict()
C. visible(false) C. nameConflict()
D. display(none) D. conflict()
Ans:B
11. Which jQuery method is used to set one or more 18. Which jQuery method is used to switch between
style properties for selected elements? adding/removing one or more classes (for CSS) from
A. css() selected elements?
B. html() A. toggleClass()
C. style() B. switch()
Ans:A C. altClass()
D. switchClass()
12. Which jQuery method is used to perform an
asynchronous HTTP request?
A. jQuery.ajaxAsync() 19. Look at the following jQuery selector: $
B. jQuery.ajax() ("div#intro .head"). What does it select?
C. jQuery.ajaxSetup() A. The first element with id="head" inside any div
Ans:B element with class="intro"
B. All elements with class="head" inside the first div
13. What is the correct jQuery code for making all div element with id="intro"
elements 100 pixels high? C. All div elements with id="intro" or class="head"
A. $("div").height="100" Ans:C
B. $("div").height(100)
C. $("div").yPos(100) 20. Is jQuery a W3C standard?
Ans:C A. No
B. Yes
14. Which statement is true? Ans: B
A. To use jQuery, you must buy the jQuery library at
www.jquery.com 21. Which statement best explains what "unobtrusive
B. To use jQuery, you do not have to do anything. JavaScript" is?
Most browsers (Internet Explorer, Chrome, Firefox A. JavaScript that doesn't annoy users
and Opera) have the jQuery library built in the B. JavaScript that is separate from HTML
browser C. JavaScript that does not affect a web page
C. To use jQuery, you can refer to a hosted jQuery D. JavaScript that works even with scripting turned off
library at Google Ans: B
22. Which of these is NOT a valid comment in
JavaScript?
15. What scripting language is jQuery written in? A. // This is a comment
A. VBScript B. /* This is a comment. */
B. JavaScript C. /* This is a comment
C. C# D. .<!-- This is a comment.
D. C++ Ans: C
Ans: B 23. How do you use JavaScript within CoffeeScript
code?
Thursday, August 20, 2020 Page |3
A. Use the JavaScript keyword
B. Wrap the code in <script> tags 31. $(document).ready(function() {
C. Wrap the code in backticks or grave accents [`] // Some code.
D. You can't embed JavaScript code within });
CoffeeScript The above code is used to..
Ans: C A. Make sure no code is executed till the entire page is
24. In JavaScript, we can keep a reference to the fully loaded
context outside a function by assigning it to a variable: B. Make sure no code is executed till the DOM is fully
var self = this. In CoffeeScript, we use: loaded
C. Both A and B
A. self = this printScope -> console.log self D. Neither A nor B
B. printScope => console.log @ Ans: B
C. printScope => console.log this
D. All of the above 32. Can you can use CSS3 selectors to select or find
Ans: D elements using jQuery?
25. What is the correct JavaScript syntax to write A. Yes
"Hello World"? B. No
A. document.write("Hello World") Ans: A
B. ("Hello World")
C. response.write("Hello World") 33. You can test whether the browser supports
D. "Hello World" specific features using...
Ans: A A. $.support
B. $.browser
26. jQuery is a... C. $.featureTest
A. JavaScript library D. $.browserTest
B. Ruby Gem Ans: A
C. PHP Framework
D. None of the above 34. Multiple document.ready blocks can be placed in a
Ans: A page without detriments. This statement is..
27. jQuery's main focus is.. A. True
A. AJAX B. False
B. DOM Manipulation Ans: A
C. Animations
D. All of the above 35. Query.noConflict(true) is used to..
Ans: D A. Free up the $ symbol for use by other libraries
28. $.foo() is equivalent to.. B. Improve compatibility
A. javascript.foo() C. Remove all jQuery variables from the global scope
B. document.foo() D. All of the above
C. jQuery.foo() Ans: D
D. None of the above
Ans: C 36. $('p').click(function(){
// Code here
29. Can jQuery be used on the same page alongside });
other libraries? Inside the commented section, the value of the
A. Yes variable this is a..
B. No A. Array
Ans: A B. String
C. Reference to the DOM node
30. var ps = $("p"); D. jQuery object
ps will be.. Ans: C
A. A linked list
B. A hash or dictionary 37. The method that provides AJAX functionality
C. An array within jQuery is named..
D. A jQuery object A. ajax
Ans: D B. easyAJAX
Thursday, August 20, 2020 Page |4
C. jQueryajax a) $.get(url,data,callback,type)
D. jQajax b) $.ajax(options)
Ans: A c) $.post(url,data,callback,type)
38. The CSS selector engine that jQuery uses is called? d) $.getScript(url,callback)
A. Badaboom Ans: A
B. Mango
C. Sizzle 45) Triggers, or binds a function to the error event of
D. AwesomeX selected elements.
Ans: C a) click()
b) error()
39. You can attach a handler to an event using which c) event.pageX
method? d) click.error()
A. eventBind Ans: B
B. bind
C. attach 46. What are the :odd and :even filters?
D. eventAttach a) They allow you to determine if a number is odd or
Ans: B even.
b) They allow you to determine if a specific element is
40. $('#masterList').find('li') in an odd or even position.
.width(500).addClass('selected'); c) None of the above.
The phenomena occuring in the above code is called? Ans: B
A. Chaining 47. When referencing an HTML element preceded by
B. Event bubbling a # (pound or hash), what javascript function is this
C. AJAX equivalent to?
D. Animating a) getElementById
Ans: A b) getElementByClassName
c) getElementByTagName
41. What is jQuery? d) None of the above
a) jQuery is a library of JavaScript Functions. Ans: A
b) jQuery stands for Structured Query Language
c) jQuery stands for Cascading Style Sheets. 48. When referencing an HTML element preceded by
d) jQuery communication between computers on the a . (dot), what javascript function is this equivalent to?
Internet. a) getElementById
Ans: A b) getElementByClassName
42) The jQuery library contains the following features c) getElementByTagName
a) HTML element selections. HTML element d) None of the above
manipulation .HTML event functions Ans: D
b) CSS manipulation. JavaScript Effects and
animations. HTML DOM traversal and modification 49. What is the each function used for?
c) JavaScript Effects and animations. HTML DOM a) The Each function allows you to loop though every
traversal and modification. AJAX. Utilities element in a parent element.
d) all of the above b) The Each function allows you to put the word
Ans:D "Each" into each element
43) AJAX and jQuery c) The Each function allows you to loop through
a) jQuery provides a rich set of methods (functions) different elements with a class or ID.
for AJAX web development. d) None of the above.
b) With jQuery AJAX, you can request TXT, HTML, XML Ans: C
or JSON data from a remote server using both HTTP
Get and HTTP Post. 50. What is the difference between Hover and
c) a and b Mouseover
d) AJAX and jQuery are cross-platform (you can a) Mouseover allows you to specify an optional
develop in Windows and serve on a Unix platform) function to use for the mouseout event
Ans: C b) Hover allows you to specify an optional function to
use for the mouseout event
44) Load remote data using HTTP GET c) No Difference; Mouseover and Hover are the same
Thursday, August 20, 2020 Page |5
Ans: B b) stop() ends any currently running animations on
the element, and prevents conflicts and pile-ups.
51. What are the various speed options? c) We tell jQuery that the animation has to be
a) The words "slow" and "fast" as well as integers for stopped at some point.
the milliseconds Ans: B
b) Only the words "slow", "fast", and "medium"
c) All of the above 58. What is the difference between .width() and
d) None of the above .outerWidth()?
Ans: A a) The methods are basically the same. The only
difference is that .width() returns a number, whereas
52. The speed options can be applied to which outerWidth() a string.
jQuery functions? b) width() returns the computed width of the
a) css and ajax element, while outerWidth() returns the width plus all
b) show and fadeIn the margins and paddings.
c) toggleCss c) No difference. width() is a shorthand alias for
d) All of the above outerWidth()
Ans: B Ans: B
53. If you want to stop your jQuery for a few 59. How do you fetch the first span on the page,
milliseconds, which function do you use? which has the class ‘green’?
a) stop() a) $('span, .green, :first')
b) pause() b) $('first .green span')
c) slowdown() c) $('span.green:first')
d) delay() Ans: C
28232. AngularJS uses dependency injection and Explanation: $dirty flag states that value in the form
make use of separation of concerns. has been changed.
});
B) var app = angular.module('myApp', []); 17185. Which directive binds the innerHTML of the
app.controller('myCtrl', function($scope) { element to the application variable?
- Book id: 219, Type:SA, editor id: 3, Topic:
}); (25)Directives, added on: 22-09-2015 04:45 pm, page
C) var app = module('myApp', []); no: 0 Powered by-Intellect Software Ltd. Preview
app.controller('myCtrl', function($scope) { A) ng-contorller
B) ng-model
}); C) ng-view
D) var app = angular.module('myApp', []); D) ng-bind
app.controller( function($scope) { E) ng-app
}); Explanation:
Explanation: $('div').filter('.nav')
What does the function $('.selector') return?
It filters all the '.nav' elements on the page and
An array. leaves only the divs.
A node list. It sifts through all the divs and leaves only those
A new jQuery object. which have the nav class.
How do you fetch the first span on the page, which
has the class 'green'?
Why do we usually add our jQuery code to the
document.ready event? $('span, .green, :first')
$('first .green span')
$(document).ready(function(){ $('span.green:first')
// do something
}); A:c
What does the $('#myDiv').hover() method do?
The document.ready event is fired when the DOM is
initialized, and we can access all the elements on the It binds the functions you pass as parameters, to
page with jQuery selectors. We use it because this is the mouseenter and mouseleave events.
the earliest time in the loading of the page that we Converts the element upon which it was called, into
can execute jQuery code safely. a hoverable menu.
This is the only way we can delay the execution of What actually happens when we write something like
jQuery code until the page has fully loaded. this:
A:b $
('#myDiv').find('span').addClass('color','red').width(20
What do we use jQuery.noConflict() for? 0);
To prevent other libraries from stealing the $ (dollar The dollar function creates a new jQuery object.
function). Every method from then on returns that same object
To restore the '$' to its previous, non-jQuery owner. modifying it if necessary. This is called chaining.
This way we can have more than one JavaScript Black magic.
library on the page.
Why do we usually add the stop() method before If you want to make the #myDiv element 200px wide
calling animate()? and 100px tall, can you do this:
All event listening functions are passed the It simulates a click on the element and runs all the
element, and not the jQuery object. For this to work, event handlers associated with it.
the second line has to become $(this).html('clicked!'); It sets up a trigger. When a click occurs, the trigger
The event listening function is supposed to take is going to be activated.
parameters. A:a
A:a
Which of the below is equivalent to
What is the difference between
if($('#myDiv').hasClass('purple')){
$('#myDiv').bind('click',function(){ // do stuff
// do something }
});
and if($('#myDiv').find('.purple')){
$('#myDiv').click(function(){ // do stuff
// do something }
}); if($('#myDiv').is('.purple')){
There is no difference. They do the same. // do stuff
bind() binds an event listening function to the click }
event, whereas click() triggers it. A:b
Why do we add a return false here?
9. Which of the snippets below can listen for events a)It fetches the names and values of all the input
on elements that are yet to be created? fields contained in the form, and generates a URL
encoded string representation, ready to be submitted
a) $('div.green').bind('click',function(){ via AJAX or appended to a URL.
// do stuff b)Fetches the names and values of all input fields,
}); and returns them as an object.
c)Creates a JSON representation of the form.
b) $('div.green').click(function(){
// do stuff 14. What does the $.get() jQuery function do?
});
a)It fires a GET AJAX request.
c) $('div.green').live('click',function(){ b)It returns the DOM elements that are contained
// do stuff in the jQuery object.
});
15. What does $('#myDiv').load('page.html') do?
10. What does this do:
a)It adds the string 'page.html' as the contents of
$('#myDiv').trigger('click'); the #myDiv div.
b)It fires an AJAX request, fetches the result of
a)It simulates a click on the element and runs all the page.html as text, and inserts it into the div.
event handlers associated with it.
Thursday, August 20, 2020 P a g e | 22
16. What is the difference between $ // do stuff
('#element').remove() and $('#element').detach() }
$(document).ready(function(){ How do you fetch the first span on the page, which
// do something has the class 'green'?
});
$('span, .green, :first')
The document.ready event is fired when the DOM is $('first .green span')
initialized, and we can access all the elements on the $('span.green:first')
page with jQuery selectors. We use it because this is
the earliest time in the loading of the page that we A:c
can execute jQuery code safely.
What does the $('#myDiv').hover() method do?
This is the only way we can delay the execution of
jQuery code until the page has fully loaded. It binds the functions you pass as parameters, to
the mouseenter and mouseleave events.
A:b Converts the element upon which it was called, into
What do we use jQuery.noConflict() for? a hoverable menu.
To prevent other libraries from stealing the $ (dollar What actually happens when we write something like
function). this:
To restore the '$' to its previous, non-jQuery owner.
This way we can have more than one JavaScript $
library on the page. ('#myDiv').find('span').addClass('color','red').width(20
0);
Why do we usually add the stop() method before
calling animate()? The dollar function creates a new jQuery object.
Every method from then on returns that same object
stop() halts the execution of the scripts on the page modifying it if necessary. This is called chaining.
until the animation has finished. Black magic.
stop() ends any currently running animations on the
element, and prevents conflicts and pile-ups. If you want to make the #myDiv element 200px wide
We tell jQuery that the animation has to be stopped and 100px tall, can you do this:
at some point.
How can you tell if an element is currently being $('#myDiv').width(200).height(100);
animated?
No you can't. The width and height methods return
if($('#myDiv').is(':animated')){ numbers, thus chaining would not work.
Thursday, August 20, 2020 P a g e | 23
Yes you can. When acting as setters, width and
height return the jQuery object. There is no difference. They do the same.
bind() binds an event listening function to the click
What does the end() method do in this chain? event, whereas click() triggers it.
Both bind a function to the click event. The
$ difference is that with bind() an event object is passed
('#myDiv').find('span').hide().end().addClass('.spansHi as a parameter.
dden');
A:a
It restores the jQuery object to the state it was
before being modified by find('span'). This way
.addClass('.spansHidden') is applied directly to Can we do this:
#myDiv.
It ends all the currently running animations and $('#myDiv').bind('myEvent',function(){
then adds the .spansHidden class to all the spans. // do something
});
A:a
No, bind only works with events such as 'click',
Which of the snippets below creates a new div and 'mousedown', 'mouseover' etc.
appends it to the first span on the page? Yes, we can bind custom events.
A:a
What does this do:
What is the difference between
$('#myDiv').trigger('click');
$('#myDiv').bind('click',function(){
// do something It simulates a click on the element and runs all the
}); event handlers associated with it.
It sets up a trigger. When a click occurs, the trigger
is going to be activated.
and A:a
$('#myDiv').click(function(){
// do something Which of the below is equivalent to
});
Thursday, August 20, 2020 P a g e | 24
if($('#myDiv').hasClass('purple')){ What is the difference between $
// do stuff ('#element').remove() and $('#element').detach()
}
remove() removes the element from the DOM
if($('#myDiv').find('.purple')){ along with any jQuery data such as event handlers,
// do stuff while detach() only removes the element from the
} DOM.
if($('#myDiv').is('.purple')){ detach() removes the element along with all the
// do stuff jQuery data, whereas remove() only removes it from
} the DOM.
A:b A:a
1. Which of the following are the features of jQuery?
Why do we add a return false here? a. Efficient query method for finding the set of
document elements
$('form.contact').submit(function(e){ b. Expressive syntax for referring to elements in the
// submit the form via AJAX document
return false; c. Useful set of methods for manipulating selected
}); elements
d. All of the mentioned
Every function in JavaScript must return a value, so Answer : d
we are placing a dummy return line. Explanation : These features are at the heart of
return false prevents the web browser from jQuery’s power and utility:
submitting the form and reloading the page. An expressive syntax (CSS selectors) for referring to
This will not work. elements in the document
A:b An efficient query method for finding the set of
document elements that match a CSS selector
What does the serialize() method do in the following A useful set of methods for manipulating selected
line? elements
Powerful functional programming techniques for
$('#myForm').serialize(); operating on sets of elements as
a group, rather than one at a time
It fetches the names and values of all the input A succinct idiom (method chaining) for expressing
fields contained in the form, and generates a URL sequences of operations.
encoded string representation, ready to be submitted
via AJAX or appended to a URL. 2. Which of the following is a single global function
Fetches the names and values of all input fields, and defined in the jQuery library?
returns them as an object. a. jQuery()
Creates a JSON representation of the form. b. $()
A:a c. Queryanalysis()
d. None of the mentioned
What does the $.get() jQuery function do? Answer : a
Explanation : The jQuery library defines a single global
It fires a GET AJAX request. function named jQuery(). This function is so
It returns the DOM elements that are contained in frequently used that the library also defines the global
the jQuery object. symbol $ as a shortcut for it.
A:a
3. Which of the following is a factory function?
What does $('#myDiv').load('page.html') do? a. $()
b. jQuery()
It adds the string 'page.html' as the contents of the c. Queryanalysis()
#myDiv div. d. None of the mentioned
It fires an AJAX request, fetches the result of Answer : b
page.html as text, and inserts it into the div. Explanation : jQuery() is a factory function rather than
A:b a constructor: it returns a newly created object but is
not used with the new keyword. jQuery objects define
Thursday, August 20, 2020 P a g e | 25
many methods for operating on the sets of elements b. $(f)
they represent, and most of this chapter is devoted to c. #(f)
explaining those methods. d. None of the mentioned
4. Which is the code that asks for the set of all div Answer : b
elements in a document? Explanation : The equivalent replacement of $
(document).ready(f) is $(f).
a. var divs = $(div);
b. var divs = jQuery("div"); 9. Which of the following is a utility function in
c. var divs = $("div"); jQuery?
d. var divs = #("div"); a. jQuery.each()
Answer : c b. jQuery.parseJSON()
Explanation : The code to ask for the set of all div c. jQuery.noConflict()
elements in a document is d. None of the mentioned
var divs = $("div"); Answer : c
Explanation : jQuery.noConflict() is the utility function
5. Which is the method that operates on the return in jQuery.
value of $()?
a. show() 10. Which of the following is used for parsing JSON
b. css() text?
c. click() a. jQuery.each()
d. done() b. jQuery.parseJSON()
Answer : b c. jQuery.noConflict()
Explanation : The css() method operates on the jQuery d. None of the mentioned
object returned by $(), and returns that same object, Answer : b
so that the show() method can be invoked next in a Explanation : jQuery.parseJSON() is used for parsing
compact “method chain.” JSON text.
9).$(‘#temp’).action() 5. $("#p1").css("color","red").slideUp(2000).slideDown(2000);
What type of selector is used in the above jQuery This is a valid script.
syntax?
a).id selector
b).class selector True
c).name selector
d).value selector False
10).Which of the following jQuery syntax uses the 6. With jQuery, look at the following selector: $("div.intro"). W
class selector
a).$(‘#temp’) b).$(‘.temp’) c).$(‘class’) d).$
(‘temp’).class The first div element with class="intro"
1. Look at the following jQuery selector: $("div#intro .head"). What All div
does elements with class="intro"
it select?
All elements with class="head" inside the first div element withThe first div element with id="intro"
id="intro"
class="intro"
The first element with id="head" inside any div element with All div elements with id="intro"
All div elements with id="intro" or class="head" 7. Which jquery .js version file should be deployed to producti
True
validation.js
False
required.js
$("#logo").attr("#href")
Selected element will be sliding up and down
$("logo").("href")
Selected element will be hide and show
$("#logo").attr("href")
13. In which year jQuery developed?
$("#logo").href
2001
John Richard
2005
Mark Bensman
2006
John Resig 14. What script need to write for toggling fade?
10. What is the correct jQuery code to set the background color of all p elements to red?
fadeOut()
$("p").manipulate("background-color","red");
toggle()
$("p").style("background-color","red");
fadeToggle()
1) Which of the following statements about the features of jQ
$("p").layout("background-color","red");
i) jQuery has an expressive syntax for referring to elements in
$("p").css("background-color","red");
ii) jQuery has an efficient query method for finding the set of d
iii) jQuery
11. Which jQuery method is used to switch between adding/removing onehas
oramore
usefulclasses
set of (for
methods for manipulating
CSS) from selecte
selected elements?
A. i, ii and iii only
switchClass() B. i, ii and iv only
C. i, iii and iv only
addRemoveClass() D. All i, ii, iii and iv
2) If you are using $ in your own code, or are using another lib
altClass() restore $ to its original value.
A. jQuery.noConflict()
toggleClass() B. jQuery.removeConflict()
C. jQuery.restoreDefault()
12. What does it mean by toggle()? D. jQuery.restoreFunction()
4) Which of the following are the different ways of invoking jQuery()11) ........
function.
handles browser incompatibilities and special cases a
i) invoke $() is to pass a CSS selector to it JavaScript property equivalents.
ii) invoke $() is to pass an element or document or window object A. attr()
iii) invoke $() is to pass a string of JavaScript code B. removeattr()
iv) invoke $() is to pass a function to it C. handleattr()
A. i, ii and iii only D. useattr()
B. i, ii and iv only
C. i, iii and iv only 12) Match the following methods for working with the class a
D. All i, ii, iii and iv i) addClass() a) tests for the presence of specified class
ii) toggleClass() b) adds classes to elements that don't alrea
5) The jQuery library defines a number of utility functions, one iii)of them
hasClass()
is ............ c)
function
removefor
classes
general
from
purpose
selected
iteration
elements
and
another is ............ function for parsing JSON text.
A. jQuery.each(), jQuery.JSONtext() iv) removeClass() d) adds classes from selected elements
B. jQuery.iterate(), jQuery.parseJSON() A. i-b, ii-c, iii-d, iv-a
C. jQuery.each(), jQuery.parseJSON() B. i-c, ii-d, iii-a, iv-b
D. jQuery.general(), jQuery.parseJSON() C. i-d, ii-c, iii-b, iv-a
D. i-d, ii-b, iii-a, iv-c
6) The value returned by $() are ......... ,they are array like, they have a length property and have numeric properties from o
to length -1. 13) ........ is a method for setting and querying the value attribu
A. jQuery result the selection state of check boxes, radio buttons and <select>
B. jQuery objects A. set()
C. jQuery array B. val()
D. jQuery length C. query()
D. attr()
7) In order to loop over all elements in a jQuery object, you can call the .......... method instead of writing a for loop.
A. array.map()
B. index()
C. each()
D. map() 14) In jQuery, .......... method measures positions relative to th
and top properties that hold the X and Y coordinates.
8) ......... method expects a callback function as A. offset()
its sole argument, and it invokes that callback B. position()
function once for each element in the C. offsetparent()
jQuery object in document order. D. setparent()
A. array.map()
B. index() 15) The .......... method is like offset(), except that it is a getter
C. each() parent, rather to the document as a whole.
D. map() A. width()
B. position()
9) ........... accepts a callback function as its argument C. offsetparent()
and invokes that function once for each element D. setparent()
of the jQuery object.
A. is() Answers
B. index() 1) D. All i, ii, iii and iv
C. each() 2) A. jQuery.noConflict()
D. map() 3) D. All of the above
4) B. i, ii and iv only
10) ........ takes a selector as its argument and returns true if at 5)
least
C. jQuery.each(),
one of the selected jQuery.parseJSON()
elements also matches the specified
selector. 6) B. jQuery objects
A. is() 7) C. each()