jQuery बहुविकल्पीय प्रश्न और उत्तर – Set 4:
प्रतियोगी परीक्षाओं के लिए jQuery बहुविकल्पीय प्रश्न और उत्तर – Set 4 । उत्तर के साथ ये बहुविकल्पीय प्रश्न बोर्ड परीक्षाओं के साथ-साथ प्रतियोगी परीक्षाओं के लिए बहुत महत्वपूर्ण हैं। इस आर्टिकल में jQuery से संबंधित जानकारी को मुख्य रूप से प्रतियोगी और बोर्ड की परीक्षाओं के लिए बनाया गया है।
1. How to Write Jquery Comments?
- <!–this is a comment –>.
- <– this is a comment –>
- // this is a comment //
- None of these
Answer: // this is a comment //
2. JQuery provides a variety of methods that allow us to traverse the DOM.?
- True
- False
Answer: True
3. Which of the following ways is correct JQuery Event Syntax ?
- $(“p”).click(function(){ // action goes here!! });
- $(“p”).openALl(function(){}
- Both A & B
- 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?
- $(document).ready(function(){ $(“button”).click(function(){ $(“p”).hide(); });});
- flex-wrap: no-wrap;
- None of the above
Answer: $(document).ready(function(){ $(“button”).click(function(){ $(“p”).hide(); });});
5. Which of the following ways is correct JQuery Hide() Syntax ?
- $.Hide()
- $(“#hide”).click(function(){ $(“p”).hide(); });
- Both A & B
- None of these
Answer: $(“#hide”).click(function(){ $(“p”).hide(); });
6. The hover() method takes two functions and is a combination of the ______?
- mouseclick() methods.
- mouseenter() and mouseleave() methods.
- None of the above
- All of above
Answer: mouseenter() and mouseleave() methods.
7. The last() method returns the last element of the ____________.?
- last elements
- specified elements
- None of the above
- All of above
Answer: specified elements
8. AddClass() – Adds one or more classes to the____________.?
- selected classes.
- selected elements
- None of the above
- None of these
Answer: selected elements
9. Which of the following is the correct syntax of Stop() in JQuery?
- $(selector).stop(stopAll,goToEnd);
- flex-wrap: no-wrap;
- Both A & B
- None of these
Answer: $(selector).stop(stopAll,goToEnd);
10. How do you assign a variable that calls a function with a.run();
- var a = var run: function() { };
- var a = run: function() { };
- var a = run = function() { };
- var a = { run: function() { } };
Answer: var a = { run: function() { } };
11. Which sign does it use as a shortcut for Modulus in JS?
- =
- /
- %
- $
Answer: %
12. RemoveClass() – Removes one or more classes from the _________?
- removeclass
- selected elements
- Both A & B
- None of these
Answer: selected elements
13. The jQuery animate() method is used to create custom animations.?
- True
- False
Answer: True
14. Which of the following ways is correct Syntax of Jquery animate() ?
- $(selector).animate({params},speed,callback);
- $(selector).fadein(speed,callback);
- $(selector).animate(speed,callback);
- All of above
Answer: $(selector).animate({params},speed,callback);
15. It is also possible to define relative values ______?
- The Text is shown normal.
- (the value is then relative to the element’s current value)
- The value is then relative
- None of these
Answer: (the value is then relative to the element’s current value)
16. Profile cards are like photos with captions of.
- msg
- Variable lengths
- None of the above
- None of these
Answer: Variable lengths
17. Which of the following ways is the correct Syntax of the .focusout() method in JQuery ?
- $(“div”).focusout();
- $(“div”).fade();
- Both A & B
- None of these
Answer: $(“div”).focusout();
18. What is .blur() method?
- The Text is shown blur
- Bind an event handler to the “blur” JavaScript event, or trigger that event on an element.
- None of the above
- 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 ______?
- The Text is shown normal.
- HTML element(s).
Answer: HTML element(s).
20. What is the correct way to call the jquery library in HTML?
- <script type=”text/javascript” src=”jquery-3.4.1.min.js”></script>
- <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?
- $(“p”).select(.intro());
- $(“p”).select.intro();
- $(“p”).select(“.intro”);
- None of these
Answer: $(“p”).select(“.intro”);
22. Look at the following selector: $ (“p # intro”). What do you select?
- remove()
- detach()
- Ambos métodos pueden ser utilizados
- None of these
Answer: remove()