Thursday 3 September 2015

Top 60 jQuery Objective type Questions and Answers

1. Which of the following is correct?
A. jQuery is a JavaScript Library
B. jQuery is a JSON Library
Ans: A
 2. jQuery uses CSS selectors to select elements?
A. False
B. True
Ans:B
3. Which sign does jQuery use as a shortcut for jQuery?
A. the % sign
B. the ? Sign
C. the $ sign
Ans: C
4. With jQuery, look at the following selector: $("div"). What does it select?
A. All div elements
B. The first div element
Ans: A  
5. Is jQuery a library for client scripting or server scripting?
A. Server scripting
B. Client scripting
Ans:A
6. Is it possible to use jQuery together with AJAX?
A. No
B. Yes
Ans:B
7. The jQuery html() method works for both HTML and XML documents
A. False
B. True
Ans:A
8. What is the correct jQuery code to set the background color of all p elements to red?
A. $("p").layout("background-color","red");
B. $("p").manipulate("background-color","red");
C. $("p").css("background-color","red");
D. $("p").style("background-color","red");
Ans:C
9. With jQuery, look at the following selector: $("div.intro"). What does it select?
A. The first div element with class="intro"
B. The first div element with id="intro"
C. All div elements with class="intro"
D. All div elements with id="intro"
Ans:C
10. Which jQuery method is used to hide selected elements?
A. hidden()
B. hide()
C. visible(false)
D. display(none)
Ans:B

More Questions & Answers:-
Page1 Page2 Page3 Page4 Page5 Page6

No comments:

Post a Comment