jQuery MCQ Questions

11. jQuery is a ___________.

A. lightweight
B. heavyweight
C. Both A and B
D. None of the above

View Answer


12. Which code will hides the current element?

A. $("p").hide()
B. $(this).hide()
C. $(".test").hide()
D. $("#test").hide()

View Answer


13. jQuery uses ________ syntax to select elements

A. CSS
B. Javascript
C. HTML
D. SQL

View Answer


14. Which selector will finds elements with a specific class?

A. id
B. element
C. object
D. class

View Answer


15. Which of the following is correct Syntax to find an element with a specific id?

A. $("!test")
B. $("p")
C. $("#test")
D. $("&test")

View Answer


16. The _____________ method attaches an event handler function to an HTML element.

A. ready()
B. click()
C. dblclick()
D. mouseenter() 

View Answer


17. The blur() method attaches an event handler function to an HTML form field.

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say

View Answer


18. The on() method attaches an event handler function to an HTML form field.

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say

View Answer


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

A. changeOrder(order)
B. order()
C. sort()
D. All of the above

View Answer


20. Which of the following is a single global function defined in the jQuery library?

A. jQuery()
B. $()
C. Queryanalysis()
D. global()

View Answer





Discussion


* You must be logged in to add comment.