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

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

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

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

1. Can you assign a anonymous function to a variable?

  1. True
  2. False

Answer: True

2. Which one of the four jQuery method set the value of an element?

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

Answer: val( val )

3. In which year jQuery was establish?

  1. 2001
  2. 2003
  3. 2006
  4. 2007

Answer: 2006

4. Who was invent the jQuery?

  1. John Richard
  2. John Resign
  3. Mark Bensman
  4. None of them

Answer: John Resign

5. Does the jQuery html() method works for both HTML and XML documents

  1. True
  2. False

Answer: False

6. Which one of the four jQuery method is used to set one or more style properties for selected elements?

  1. css()
  2. style()
  3. html()
  4. none of them

Answer: css()

7. jQuery uses CSS selectors and XPath expressions to select elements?

  1. True
  2. False

Answer: True

8. Can it possible to use jQuery together with AJAX?

  1. Yes
  2. No

Answer: Yes

9. Which jQuery method to hide selected elements?

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

Answer: hide()

10. Do you wonder why we don’t have type=”text/javascript” inside the <script> tag?

  1. It is required in HTML5
  2. It is not required in HTML5
  3. All of the above
  4. None of them

Answer: It is not required in HTML5

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

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

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

12. Which of the following jQuery method stops the rest of the event handlers from being executed?

  1. StopImmediatePropagation( )
  2. PreventDefault( )
  3. StopPropagation( )
  4. All of these

Answer: StopImmediatePropagation( )

13. Which one of the four jQuery method gets attributes of an element?

  1. remove( expr )
  2. delete( )
  3. empty( )
  4. None of them

Answer: remove( expr )

14. Which of the following jQuery method finds all sibling elements after the current element?

  1. GetNextAll( selector)
  2. LocateNextAll( selector )
  3. NextAll( selector )
  4. None of above

Answer: NextAll( selector )

15. The Query method used to perform an asynchronous HTTP request

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

Answer: jQuery ajax() method

16. Which of the following is correct about jQuery?

  1. JQuery is a fast and concise JavaScript Library created by John Resig in 2006 with a nice motto – Write less, do more.
  2. JQuery simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development.
  3. JQuery is a JavaScript toolkit designed to simplify various tasks by writing less code.
  4. All of the Above

Answer: All of the Above

17. Which of the following jQuery method gets the direct parent of an element?

  1. Offset( selector)
  2. Parent( selector )
  3. OffsetParent( selector )
  4. None of the above

Answer: Parent( selector )

18. Which of the following is not the feature of jQuery?

  1. Useful set of methods for manipulating selected elements
  2. Expressive syntax for referring to elements in the document
  3. Efficient query method for finding the set of document elements
  4. Powerful functional programming techniques is not used for operating on sets of elements as a group

Answer: Powerful functional programming techniques is not used for operating on sets of elements as a group

19. Which of the following is a factory function?

  1. $()
  2. Onclick()
  3. JQuery()
  4. Queryanalysis()

Answer: JQuery()

20. Which property is used to obtain browser vendor and version information?

  1. Modal
  2. Version
  3. Browser
  4. Navigator

Answer: Navigator

21. Which of the following is the correct syntax of toggle() effects in JQuery?

  1. $(“button”).click(function(){ $(“p”).toggle(); });
  2. .(“p”).toggle();
  3. None of the above

Answer: $(“button”).click(function(){ $(“p”).toggle(); });

22. Which of the following is the correct syntax of nextUntil() method in JQuery?

  1. $(“h2”).nextUntiLAll(“h6”);
  2. $(“h2”).nextUn(“h6”);
  3. $(“h2”).nextUntil(“h6”);

Answer: $(“h2”).nextUntil(“h6”);

23. The siblings() method returns all sibling elements of the selected element. _________?

  1. Bookmark
  2. Report
  3. Discuss
  4. selected elements
  5. Siblings class
  6. None of the above

Answer: selected elements

24. JQuery parents() Method returns all ancestor elements of the ____________.?

  1. Bookmark
  2. Report
  3. Discuss
  4. class
  5. selected elements
  6. None of the above

Answer: selected elements

25. Which of the following ways is the correct Syntax of parent() method in JQuery ?

  1. $(“span”).child();
  2. $(“span”).parent();
  3. $(“span”).parentofchild();
  4. All of above

Answer: $(“span”).parent();

26. Given the following, what would $(‘.foo’).data(‘info’) return?<div id=’foo’ data-info=’google’ data-test=’bar’></div>

  1. google
  2. bar
  3. div
  4. undefined

Answer: google

27. Which of these CSS selectors would select all of the <img> tags in a <div>

  1. img div
  2. img.div
  3. div img
  4. div.img

Answer: div img

28. Which of the following is selected by $(‘#bar’)?

  1. <div class=’bar’></div>
  2. <p data-bar=’bar’></p>
  3. <h1>bar</h1>
  4. <img id=’bar’></img>

Answer: <img id=’bar’></img>

29. The “#” is used to select an html element by its:

  1. class
  2. id
  3. name
  4. data attribute

Answer: id

30. The following is correct syntax for CSSp { color: red; }

  1. True
  2. False

Answer: True

Leave a Comment