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

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

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

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

1. How to Write Jquery Comments?

  1. <!–this is a comment –>.
  2. <– this is a comment –>
  3. // this is a comment //
  4. None of these

Answer: // this is a comment //

2. JQuery provides a variety of methods that allow us to traverse the DOM.?

  1. True
  2. False

Answer: True

3. Which of the following ways is correct JQuery Event Syntax ?

  1. $(“p”).click(function(){ // action goes here!! });
  2. $(“p”).openALl(function(){}
  3. Both A & B
  4. None of these

Answer: $(“p”).click(function(){ // action goes here!! });

4. Which of the following is the correct form to create to hide elements in Jquery and select the element?

  1. $(document).ready(function(){ $(“button”).click(function(){ $(“p”).hide(); });});
  2. flex-wrap: no-wrap;
  3. None of the above

Answer: $(document).ready(function(){ $(“button”).click(function(){ $(“p”).hide(); });});

5. Which of the following ways is correct JQuery Hide() Syntax ?

  1. $.Hide()
  2. $(“#hide”).click(function(){ $(“p”).hide(); });
  3. Both A & B
  4. None of these

Answer: $(“#hide”).click(function(){ $(“p”).hide(); });

6. The hover() method takes two functions and is a combination of the ______?

  1. mouseclick() methods.
  2. mouseenter() and mouseleave() methods.
  3. None of the above
  4. All of above

Answer: mouseenter() and mouseleave() methods.

7. The last() method returns the last element of the ____________.?

  1. last elements
  2. specified elements
  3. None of the above
  4. All of above

Answer: specified elements

8. AddClass() – Adds one or more classes to the____________.?

  1. selected classes.
  2. selected elements
  3. None of the above
  4. None of these

Answer: selected elements

9. Which of the following is the correct syntax of Stop() in JQuery?

  1. $(selector).stop(stopAll,goToEnd);
  2. flex-wrap: no-wrap;
  3. Both A & B
  4. None of these

Answer: $(selector).stop(stopAll,goToEnd);

10. How do you assign a variable that calls a function with a.run();

  1. var a = var run: function() { };
  2. var a = run: function() { };
  3. var a = run = function() { };
  4. var a = { run: function() { } };

Answer: var a = { run: function() { } };

11. Which sign does it use as a shortcut for Modulus in JS?

  1. =
  2. /
  3. %
  4. $

Answer: %

12. RemoveClass() – Removes one or more classes from the _________?

  1. removeclass
  2. selected elements
  3. Both A & B
  4. None of these

Answer: selected elements

13. The jQuery animate() method is used to create custom animations.?

  1. True
  2. False

Answer: True

14. Which of the following ways is correct Syntax of Jquery animate() ?

  1. $(selector).animate({params},speed,callback);
  2. $(selector).fadein(speed,callback);
  3. $(selector).animate(speed,callback);
  4. All of above

Answer: $(selector).animate({params},speed,callback);

15. It is also possible to define relative values ______?

  1. The Text is shown normal.
  2. (the value is then relative to the element’s current value)
  3. The value is then relative
  4. None of these

Answer: (the value is then relative to the element’s current value)

16. Profile cards are like photos with captions of.

  1. msg
  2. Variable lengths
  3. None of the above
  4. None of these

Answer: Variable lengths

17. Which of the following ways is the correct Syntax of the .focusout() method in JQuery ?

  1. $(“div”).focusout();
  2. $(“div”).fade();
  3. Both A & B
  4. None of these

Answer: $(“div”).focusout();

18. What is .blur() method?

  1. The Text is shown blur
  2. Bind an event handler to the “blur” JavaScript event, or trigger that event on an element.
  3. None of the above
  4. All of above

Answer: Bind an event handler to the “blur” JavaScript event, or trigger that event on an element.

19. JQuery selectors allow you to select and manipulate ______?

  1. The Text is shown normal.
  2. HTML element(s).

Answer: HTML element(s).

20. What is the correct way to call the jquery library in HTML?

  1. <script type=”text/javascript” src=”jquery-3.4.1.min.js”></script>
  2. <link rel=”stylesheet” type=”text/css” href=”jquery-3.4.1.min.js”>

Answer: <script type=”text/javascript” src=”jquery-3.4.1.min.js”></script>

21. Which of the following is the correct syntax of .select() method in JQuery?

  1. $(“p”).select(.intro());
  2. $(“p”).select.intro();
  3. $(“p”).select(“.intro”);
  4. None of these

Answer: $(“p”).select(“.intro”);

22. Look at the following selector: $ (“p # intro”). What do you select?

  1. remove()
  2. detach()
  3. Ambos métodos pueden ser utilizados
  4. None of these

Answer: remove()

Leave a Comment