JQuery MCQ For Freshers & Experienced

  • Question 1) Define single global function in the jQuery library?
  • Question 2) $.foo() is parallel to
  • Question 3) Can you assign a anonymous function to a variable?
  • Question 4) Which one of the four jQuery method set the value of an element?
  • Question 5) Which sign does jQuery use as a shortcut for jQuery?
  • Question 6) Does jQuery a W3C standard?
  • Question 7) In which year jQuery was establish?
  • Question 8) Who was invent the jQuery?
  • Question 9) Does the jQuery html() method works for both HTML and XML documents
  • Question 10) Which one of the four jQuery method is used to set one or more style properties for selected elements?
  • Question 11) jQuery uses CSS selectors and XPath expressions to select elements?
  • Question 12) Can it possible to use jQuery together with AJAX?
  • Question 13) Which jQuery method should be used to deal with name conflicts?
  • Sharad Jaiswal
  • 28th Feb, 2020
  • 884 Followers

JQuery MCQ
Updated ON

28th Feb, 2020

No. of Questions

25

Posted In

MCQ

Author

Sharad Jaiswal

Jquery Multiple choice interview questions

Q1. Define single global function in the jQuery library?

  • $()
  • jQuery()
  • Queryanalysis()
  • None of the mentioned
View Answer
jQuery() is single function in the jQuery library.

Q2. $.foo() is parallel to

  • javascript.foo()
  • jQuery.foo()
  • document.foo()
  • None of the above
View Answer
$.foo() is parallel to jQuery.foo().

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

  • True
  • False
View Answer
True, an anonymous function can be assigned to a variable.

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

  • val( val )
  • setContent( val )
  • setValue( val )
  • None of the above
View Answer
val( val ) jQuery method is set the value of the element.

Q5. Which sign does jQuery use as a shortcut for jQuery?

  • % sign
  • ? Sign
  • $ sign
  • None of these
View Answer
$ sign does jQuery use as a shortcut for jQuery.

Q6. Does jQuery a W3C standard?

  • Yes
  • No
View Answer
Yes, jQuery does W3C standard.

Q7. In which year jQuery was establish?

  • 2001
  • 2003
  • 2006
  • 2007
View Answer
In 2006 jQuery was establish.

Q8. Who was invent the jQuery?

  • John Richard
  • John Resign
  • Mark Bensman
  • None of them
View Answer
John Resign was invent the jQuery.

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

  • True
  • False
View Answer
False, the jQuery html() method doesn't works for both HTML and XML documents.

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

  • css()
  • style()
  • html()
  • none of them
View Answer
css() jQuery method is used to set one or more style properties for selected elements.

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

  • True
  • False
View Answer
True, jQuery uses CSS selectors and XPath expressions to select elements.

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

  • Yes
  • No
View Answer
Yes, it can possible to use jQuery together with AJAX.

Q13. Which jQuery method should be used to deal with name conflicts?

  • noNameConflict()
  • conflict()
  • nameConflict()
  • noConflict()
View Answer
noConflict() jQuery method should be used to deal with name conflicts.

Q14. Which jQuery method to hide selected elements?

  • hidden()
  • visible(false)
  • display(none)
  • hide()
View Answer
hide() jQuery method to hide selected elements.

Q15. When do you use the $(this) code?

  • When an HTML element will reference its parent element's action
  • When an HTML element will reference its own action
  • When an HTML element will reference the entire document
  • None of the above
View Answer
The $(this) code is use when an HTML element will reference its own action.

Q16. The speed options can be applied to which jQuery functions?

  • toggleCss
  • show and fadeIn
  • css and ajax
  • All of the above
View Answer
The speed options can be applied to show and fadeIn jQuery functions.

Q17. You can attach a handler to an event using which method?

  • Bind Method
  • Attach Method
  • EventBind Method
  • EventAttach Method
View Answer
Bind method is using for attach a handle to an event.

Q18. What are the various speed options?

  • The words "slow" and "fast" as well as integers for the millisecondse
  • Only the words "slow", "fast", and "medium"
  • None of the above
  • All of the above
View Answer
The words "slow" and "fast" as well as integers for the millisecondse.

Q19. $('#masterList').find('li') .width(500).addClass('selected'); the phenomena occuring in the above code is called?

  • AJAXC
  • Animating
  • Chaining
  • Event bubbling
View Answer
$('#masterList').find('li') .width(500).addClass('selected'); the phenomena occuring code is called Chaining.

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

  • It is required in HTML5
  • It is not required in HTML5
  • All of the above
  • None of them
View Answer
It isn't required in HTML5 that's why we don't have type=”text/javascript” inside the <script> tag.

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

  • $("span").css("background-color","blue");
  • $("span").layout("background-color","blue");
  • $("span").manipulate("background-color","blue");
  • $("span").style("background-color","blue");
View Answer
$("span").css("background-color","blue"); is set to the background color of all span elements to blue.

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

  • Sizzle
  • Mango
  • AwesomeX
  • Badaboom
View Answer
In CSS selector engine sizzle jQuery is uses.

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

  • StopImmediatePropagation( )
  • PreventDefault( )
  • StopPropagation( )
  • All of these
View Answer
stopImmediatePropagation( ) method is stops the rest of the event handlers from being executed.

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

  • remove( expr )
  • delete( )
  • empty( )
  • None of them
View Answer
remove( expr ) method is attributes of an element

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

  • GetNextAll( selector)
  • LocateNextAll( selector )
  • NextAll( selector )
  • None of above
View Answer
NextAll( selector ) method is finds all sibling elements after the current element.

About Author :

  • Author of JQuery MCQ

    Sharad Jaiswal

    Sharad Jaiswal is Sr. Web Developer from Noida area. He have rich experience in PHP, Angular Js, React, javascript and Node .If you any query or project on these programming you can drop your enquiry in comment section.

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.