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

jQuery महत्वपूर्ण प्रश्न और उत्तर

jQuery महत्वपूर्ण प्रश्न और उत्तर:

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

1. $.foo() is equivalent to..

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

Answer: jQuery.foo()

2. var ps = $(“p”); ps will be..

  1. A jQuery object
  2. An array
  3. A linked list
  4. A hash or dictionary

Answer: A jQuery object

3. The CSS selector engine that jQuery uses is called?

  1. Sizzle
  2. Mango
  3. Badaboom
  4. AwesomeX

Answer: Sizzle

4. The jQuery library contains the following features

  1. JavaScript Effects and animations. HTML DOM traversal and modification. AJAX.

Utilities

  • HTML element selections. HTML element manipulation .HTML event functions
  • CSS manipulation. JavaScript Effects and animations. HTML DOM traversal and modification
  • all of the above

Answer: all of the above

5. AJAX and jQuery

  1. With jQuery AJAX, you can request TXT, HTML, XML or JSON data from a remote server using both HTTP Get and HTTP Post
  2. jQuery provides a rich set of methods (functions) for AJAX web development
  3. a and b
  4. AJAX and jQuery are cross-platform (you can develop in Windows and serve on a Unix platform)

Answer: a and b

7. Which of the following sign is used as a shortcut for jQuery?

  1. the % sign
  2. the & sign
  3. the $ sign
  4. the @ sign

Answer: the $ sign

8. $(this) in jQuery is used when –

  1. an HTML element references the entire document
  2. an HTML element references its own action
  3. an HTML element references the action of its parent element
  4. All of the above

Answer: an HTML element references its own action

9. Which jQuery method is used to set one or more style properties to the selected element?

  1. The html() method
  2. The style() method
  3. The css() method
  4. All of the above

Answer: The css() method

10. Which of the following jQuery method is used to hide the selected elements?

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

Answer: The hide() method

11. Who developed jQuery, and in which year it was first released?

  1. John Richard in 2001
  2. Mark Bensman in 2004
  3. John Resig in 2006
  4. None of the above

Answer: John Resig in 2006

12. Which of the following jQuery method can be used to deal with the name conflicts?

  1. The conflict() method
  2. The nameConflict() method
  3. The noConflict() method
  4. None of the above

Answer: The noConflict() method

13. The jQuery method used to perform an asynchronous HTTP request –

  1. jQuery ajaxSetup() method
  2. jQuery ajaxSync() method
  3. jQuery ajax() method
  4. None of the above

Answer: jQuery ajax() method

14. The correct syntax to set the background color of all h1 elements to yellow in jQuery –

  1. $(“h1”).style(“background-color”,”yellow”);
  2. $(“h1”).html(“background-color”,”yellow”);
  3. $(“h1”).css(“background-color”,”yellow”);
  4. $(“h1”).layout(“background-color”,”yellow”);

Answer: $(“h1”).css(“background-color”,”yellow”);

15. Which of the following jQuery method is used to stop jQuery for few milliseconds?

  1. stop() method
  2. delay() method
  3. slowdown() method
  4. pause() method

Answer: delay() method

16. Which of the jQuery function prevents the code from running before the loading of the document finishes?

  1. $(document).load()
  2. $(document).unload()
  3. $(document).ready()
  4. $(document).trim()

Answer: $(document).ready()

17. What does the syntax $(“p.para”) will select?

  1. The first paragraph element with class = “para”
  2. The first paragraph element with id = “para”
  3. The first paragraph element with name = “para”
  4. All paragraph elements with class = “para”

Answer: All paragraph elements with class = “para”

18. The jQuery used to find all next sibling elements after the current element is –

  1. find() method
  2. nextAll() method
  3. siblings() method
  4. None of the above

Answer: nextAll() method

19. Which of the following jQuery method is used to attach a handler to an event?

  1. unbind() method
  2. attach() method
  3. bind() method
  4. None of the above

Answer: bind() method

20. Which of the following jQuery method is used to check whether or not the selected elements have the specified class name?

  1. hasClass() method
  2. addClass() method
  3. find() method
  4. toggleClass() method

Answer: hasClass() method

21. The correct syntax for selecting the first paragraph element with id p1 is –

  1. $(“p.p1:first”)
  2. $(“p#p1:first”)
  3. $(“p1#p:first”)
  4. None of the above

Answer: $(“p#p1:first”)

22. Which of the following jQuery method is used to set the value of an element?

  1. val() method
  2. setValue() method
  3. content() method
  4. None of the above

Answer: val() method

23. The jQuery method used to get all ancestors of the matched set of elements is

  1. parents() method
  2. parent() method
  3. offsetParent() method
  4. None of the above

Answer: parents() method

24. The jQuery method used to set the width property of an element is –

  1. setWidth( val ) method
  2. width( val ) method
  3. setCSSWidth( val ) method
  4. None of the above

Answer: width( val ) method

25. The jQuery method used to remove the set of matched elements is –

  1. delete() method
  2. empty() method
  3. remove() method
  4. None of the above

Answer: remove() method

26. What does the syntax $(“div#myDiv .para”) will select?

  1. It will select all elements with class = “para” within the div element with id = “myDiv”
  2. It will select all elements with id = “myDiv” within the div element with class = “para”
  3. All div elements with class = “para” or with id = “myDiv”
  4. None of the above

Answer: It will select all elements with class = “para” within the div element with id = “myDiv”

27. The jQuery method used for parsing the JSON text is –

  1. parseJSON() method
  2. parseHTML() method
  3. noConflict() method
  4. each() method

Answer: jQuery.parseJSON() method

28. Which of the following method is used to toggle between the fadeIn() method and fadeOut() method?

  1. toggle() method
  2. fadeToggle() method
  3. slideToggle() method
  4. animate() method

Answer: fadeToggle() method

29. The toggle() method in jQuery is used to –

  1. toggle between the hide() and show() methods
  2. toggle between the fadeIn() and fadeOut() methods
  3. toggle between the slideUp() and slideDown() methods
  4. None of the above

Answer: toggles between the hide() and show() methods

30. The :even and :odd filters in jQuery are used to –

  1. determine if the number is odd or even
  2. determine if the index position of an element is odd or even
  3. both (a) & (b)
  4. None of the above

Answer: determine if the index position of an element is odd or even

Leave a Comment