टेलीग्राम पर हमसे जुड़ेंClick Here
दैनिक करेंट अफेयर्स प्राप्त करें Click Here

jQuery बहुविकल्पीय प्रश्न और उत्तर – Set 2

jQuery बहुविकल्पीय प्रश्न और उत्तर – Set 2:

प्रतियोगी परीक्षाओं के लिए jQuery बहुविकल्पीय प्रश्न और उत्तर – Set 2 । उत्तर के साथ ये बहुविकल्पीय प्रश्न बोर्ड परीक्षाओं के साथ-साथ प्रतियोगी परीक्षाओं के लिए बहुत महत्वपूर्ण हैं। इस आर्टिकल में jQuery से संबंधित जानकारी को मुख्य रूप से प्रतियोगी और बोर्ड की परीक्षाओं के लिए बनाया गया है।

1. Which of the following jQuery method searches for descendent elements that match the specified selectors?

  1. locate( selector )
  2. find( selector)
  3. search( selector )
  4. None of the above.

Answer: find( selector)

2. Which of the following jQuery method prevents the browser from executing the default action?

  1. preventDefault( )
  2. stopImmediatePropagation( )
  3. stopPropagation( )
  4. None of the above.

Answer: preventDefault( )

3. Which of the following jQuery method gets the width property of an element?

  1. getCSSWidth( )
  2. getWidth( )
  3. width( )
  4. None of the above.

Answer: width( )

4. Which of the following jQuery method can be used to attach a function to be executed whenever an AJAX request fails?

  1. ajaxStart( callback )
  2. ajaxComplete( callback )
  3. ajaxSend( callback )
  4. ajaxError(callback)

Answer: ajaxError(callback)

5. Which of the following statements is correct?

  1. jQuery is a JavaScript library
  2. jQuery is a JSON library
  3. jQuery is an Angular library
  4. All the answers are true

Answer: jQuery is a JavaScript library

6. jQuery uses CSS selectors and XPath expressions to select items?

  1. True
  2. False

Answer: True

What does “min” mean in the following code snippet?

7. <script src = “jquery-1.5.2.min.js”> </script>

  1. Minimized version
  2. Miniature
  3. Minimized parameters
  4. Minimum value

Answer: Minimized version

8. What is the character does jQuery use as a shortcut for jQuery?

  1. %
  2. $

Answer: $

9. Which of the following jQuery method can be used to attach a function to be executed whenever an AJAX request is sent?

  1. ajaxStart( callback )
  2. ajaxComplete( callback )
  3. ajaxSend( callback )
  4. ajaxError(callback)

Answer: ajaxSend( callback )

10. Is JQuery a W3C standard?

  1. Yes
  2. No

Answer: No

11. Is jQuery a ___________?

  1. Client-side library
  2. Server-side library

Answer: Client-side library

12. $(“span”). What does it select?

  1. All span elements
  2. The first span element

Answer: All span elements

13. JQuery is a programming language?

  1. True
  2. False

Answer: False

14. JQuery code to set the background color of all “<span>” in blue?

  1. $(“span”).style(“background-color”, “blue”);
  2. $(“span”).css(“background-color”, “blue”);
  3. jQuery(“span”).style(“background-color”, “blue”);
  4. None of the above

Answer: $(“span”).css(“background-color”, “blue”);

15. Which of the following methods is used to hide selected items?

  1. visible(false)
  2. hidden()
  3. display(none)
  4. hide()

Answer: hide()

16. Which jQuery method to set one or more style properties for selected elements?

  1. css()
  2. html()

Answer: css()

17. Which of the following is an overloaded function?

  1. jQuery()
  2. $()
  3. script()
  4. jQuery() and $()

Answer: jQuery() and $()

18. Which of the following replaces $(document).ready(f)?

  1. jQuery(f)
  2. $(f)
  3. #(f)
  4. None of the above

Answer: $(f)

19. What are jQuery’s features?

  1. Useful collection of methods for manipulating selected items
  2. Efficient query method to find all document elements
  3. Syntax for referencing document elements
  4. All the answers are true

Answer: All the answers are true

20. $(“span.foo”). What does it select?

  1. All span elements with id = “foo”
  2. all span elements with class = “foo”
  3. The first span element with id = “foo”
  4. The first span element with class = “foo”

Answer: all span elements with class = “foo”

21. $(“span”). What does it select?

  1. All span elements
  2. The first span element

Answer: All span elements

22. $(“span.intro”). What does it select?

  1. The first span element with class=”intro”
  2. The first span element with id=”intro”
  3. All span elements with id=”intro”
  4. All span elements with class=”intro”

Answer: All span elements with class=”intro”

23. jQuery method to hide selected elements?

  1. visible(false)
  2. hidden()
  3. display(none)
  4. hide()

Answer: hide()

24. $(“div#id1 .cl1?). What does it select?

  1. The first element with id=”cl1? inside any div element with class=”id1?
  2. All elements with class=”cl1? inside the first div element with id=”id1?
  3. All div elements with id=”id1? or class=”cl1?

Answer: All elements with class=”cl1? inside the first div element with id=”id1?

25. Do you wonder why we do not have type=”text/javascript” inside the <script> tag?

  1. It is not required in HTML5
  2. It is required in HTML5

Answer: It is not required in HTML5

26. Which of the following is correct?

  1. jQuery is a JSON Library
  2. jQuery is a JavaScript Library

Answer: jQuery is a JSON Library

27. jQuery code to set the background color of all span elements to blue?

  1. $(“span”).style(“background-color”,”blue”);
  2. $(“span”).manipulate(“background-color”,”blue”);
  3. $(“span”).css(“background-color”,”blue”);
  4. $(“span”).layout(“background-color”,”blue”);

Answer: $(“span”).css(“background-color”,”blue”);

28. $(“span.intro”). What does it select?

  1. The first span element with class=”intro”
  2. The first span element with id=”intro”
  3. All span elements with id=”intro”
  4. All span elements with class=”intro”

Answer: All span elements with class=”intro”

29. Define single global function in the jQuery library?

  1. $()
  2. jQuery()
  3. Queryanalysis()
  4. None of the mentioned

Answer: jQuery()

30. $.foo() is parallel to

  1. javascript.foo()
  2. B.jQuery.foo()
  3. C.document.foo()
  4. D.None of the above

Answer: javascript.foo()

Leave a Comment