• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

jQuery Quiz | Set-1

Question 1

Which sign is used for the shortcut of the jquery?
  • @ sign
  • % sign
  • & sign
  • $ sign

Question 2

Which of the following is the correct syntax to set the background color of all h1 elements to Green in jQuery?

  • $("h1").html("background-color","Green");

  • $("h1").layout("background-color","Green");

  • $("h1").style("background-color","Green");

  • $("h1").css("background-color","Green");

Question 3

How we find the current selection against an expression in jQuery?

  • getIs( selector )

  • findls( selector )

  • is( selector )

  • None of the above.

Question 4

Which of the below method is used to binds a handler of one or more events in jQuery?

  • attach(type, [data], fn )

  • catch(type, [data], fn )

  • bind( type, [data], fn )

  • All of the above

Question 5

If the content of two or more objects is merged into the first object then which below method is used?
  • jQuery check() Method
  • jQuery extend() Method
  • jQuery obj() Method
  • None of the above

Question 6

How do we get the JSON data using HTTP requests?

  • jQuery.getScript( url, [callback] )

  • jQuery.post( url, [data], [callback], [type] )

  • jQuery.post( url, [type] )

  • jQuery.getJSON( url, [data], [callback] )

Question 7

Out of the below jQuery method which one is used to find the highest property of the element ?
  • height( )
  • getCSSheight( )
  • getheight( )
  • All of the above.

Question 8

Which of the below defines a single global function?

  • $()

  • local()

  • jQuery()

  • global()

Question 9

If you hide the selected element in jquery which jquery method did you have to choose from below?
  • display(none) Method
  • hidden(element) Method
  • hide() Method
  • visible(false) Method

Question 10

Which one is the utility function used in the jquery?

  • jQuery.parseJSON()

  • jQuery.noConflict()

  • jQuery.Conflict()

  • jQuery.each()

There are 15 questions to complete.

Last Updated :
Take a part in the ongoing discussion