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

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

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

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

1. jQuery uses CSS selectors to select elements?

  1. False
  2. True

Answer: True

2. The jQuery html() method works for both HTML and XML documents

  1. False
  2. True

Answer: False

3. With jQuery, look at the following selector: $(“div.intro”). What does it select?

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

Answer: All div elements with class=”intro”

4. What is the correct jQuery code for making all div elements 100 pixels high?

  1. $(“div”).height=”100″
  2. $(“div”).height(100)
  3. $(“div”).yPos(100)

Answer: $(“div”).yPos(100)

5. Which jQuery function is used to prevent code from running, before the document is finished loading?

  1. $(document).load()
  2. $(document).ready()
  3. $(body).onload()

Answer: $(body).onload()

6. What scripting language is jQuery written in?

  1. VBScript
  2. JavaScript
  3. C#
  4. C++

Answer: JavaScript

7. Look at the following jQuery selector: $(“div#intro .head”). What does it select?

  1. The first element with id=”head” inside any div element with class=”intro”
  2. All elements with class=”head” inside the first div element with id=”intro”
  3. All div elements with id=”intro” or class=”head”

Answer: All div elements with id=”intro” or class=”head”

8. Which statement best explains what “unobtrusive JavaScript” is?

  1. JavaScript that doesn’t annoy users
  2. JavaScript that is separate from HTML
  3. JavaScript that does not affect a web page
  4. JavaScript that works even with scripting turned off

Answer: JavaScript that is separate from HTML

9. Is jQuery a W3C standard?

  1. No
  2. Yes

Answer: Yes

10. What is the correct JavaScript syntax to write “Hello World”?

  1. document.write(“Hello World”)
  2. (“Hello World”)
  3. response.write(“Hello World”)
  4. “Hello World”

Answer: document.write(“Hello World”)

11. Can jQuery be used on the same page alongside other libraries?

  1. Yes
  2. No

Answer: Yes

12. jQuery’s main focus is..

  1. AJAX
  2. DOM Manipulation
  3. Animations
  4. All of the above

Answer: All of the above

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

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

Answer: A jQuery object

14. Can you can use CSS3 selectors to select or find elements using jQuery?

  1. Yes
  2. No

Answer: Yes

15. $(document).ready(function() {

// Some code.

});

The above code is used to..

  1. Make sure no code is executed till the entire page is fully loaded
  2. Make sure no code is executed till the DOM is fully loaded
  3. Both A and B
  4. Neither A nor B

Answer: Make sure no code is executed till the DOM is fully loaded

16. Multiple document.ready blocks can be placed in a page without detriments. This statement is..

  1. True
  2. False

Answer: True

17. AJAX and jQuery

  1. jQuery provides a rich set of methods (functions) for AJAX web development.
  2. With jQuery AJAX, you can request TXT, HTML, XML or JSON data from a remote server using both HTTP Get and HTTP Post.
  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

18. $(‘#masterList’).find(‘li’)

.width(500).addClass(‘selected’);

The phenomena occuring in the above code is called?

  1. Chaining
  2. Event bubbling
  3. AJAX
  4. Animating

Answer: Chaining

19. Triggers, or binds a function to the error event of selected elements.

  1. click()
  2. error()
  3. event.pageX
  4. click.error()

Answer: error()

20. What are the :odd and :even filters?

  1. They allow you to determine if a number is odd or even.
  2. They allow you to determine if a specific element is in an odd or even position.
  3. None of the above.

Answer: They allow you to determine if a specific element is in an odd or even position.

21. Which of the following is correct?

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

Answer: jQuery is a JavaScript Library

22. What is the difference between Hover and Mouseover

  1. Mouseover allows you to specify an optional function to use for the mouseout event
  2. Hover allows you to specify an optional function to use for the mouseout event
  3. No Difference; Mouseover and Hover are the same

Answer: Hover allows you to specify an optional function to use for the mouseout event

23. What does the function $(“.selector”) return?

  1. An array.
  2. A node list.
  3. A new jQuery object.

Answer: A new jQuery object.

24. What does the $(‘#myDiv’).hover() method do?

  1. It binds the functions you pass as parameters, to the mouseenter and mouseleave events.
  2. Converts the element upon which it was called, into a hoverable menu.

Answer: It binds the functions you pass as parameters, to the mouseenter and mouseleave events.

25. Which built-in method returns the index within the calling String object of the first occurrence of the specified value?

  1. getIndex()
  2. location()
  3. indexOf()
  4. None of the above.

Answer: indexOf()

26. How can you get the total number of arguments passed to a function?

  1. Using args.length property
  2. Using arguments.length property
  3. Both of the above.
  4. None of the above.

Answer: Using arguments.length property

27. Which built-in method sorts the elements of an array?

  1. changeOrder(order)
  2. order()
  3. sort()
  4. None of the above.

Answer: sort()

28. Which of the following jQuery method adds the previous selection to the current selection?

  1. add( selector )
  2. andSelf( )
  3. append(selector)
  4. None of the above.

Answer: andSelf( )

29. Which of the following jQuery method remove all or the specified class(es) from the set of matched elements?

  1. removeClass( class )
  2. removeStyleClass( class )
  3. removeCSSClass( class )
  4. None of the above.

Answer: removeClass( class )

30. $(‘p’).click(function(){

// Code here

});

Inside the commented section, the value of the variable this is a..

  1. Array
  2. String
  3. Reference to the DOM node
  4. jQuery object

Answer: Reference to the DOM node

Leave a Comment