JQuery Question Bank
JQuery Question Bank
1. JQuery is a
a. JavaScript Method
b. JavaScript Library
c. JSON LIbrary
d. PHP method
4. Which JQery method used to set one or more style properties to the selected elements
a. html()
b. style()
c. css()
d. All of above.
5. The correct syntax to set the background color of all h1 elements to yellow in jQuery –
a. $("h1").style("background-color","yellow");
b. $("h1").html("background-color","yellow");
c. $("h1").css("background-color","yellow");
d. $("h1").layout("background-color","yellow");
7. Which of the following jQuery method is used to stop jQuery for few milliseconds?
a. stop() method
b. delay() method
c. slowdown() method
d. pause() method
9. The jQuery used to find all next sibling elements after the current element is –
a. find() method
b. nextAll() method
c. siblings() method
d. None of the above
10. Which of the following jQuery method is used to check whether or not the selected
elements have the specified class name?
a. hasClass() method
b. addClass() method
c. find() method
d. toggleClass() method
11. The jQuery method used to get all ancestors of the matched set of elements is –
a. parents() method
b. parent() method
c. offsetParent() method
d. None of the above
15. Gyh The jQuery selector used to select the elements containing the specified string
is
a. jQuery :contains selector
b. jQuery :lang() selector
c. jQuery :nth-child selector
d. None of the above
● Show()
● Hide()
● Toggle()
● FadeIn() and
● FadeOut()
Find method is used to find all levels down the DOM tree but children find single
level down the DOM tree.
3) What are the basic selectors in jQuery?
● Element ID
● CSS Name
● Tag Name
● DOM hierarchy
Each function is used to iterate each and every element of an object. It is used to
loop DOM elements, arrays and the object properties.
5)What is CDN?
jQuery is a library used for developing Ajax application and it helps to write the code
clean and concise. It also handles events, animation and Ajax support applications.