๐Ÿงช Jquery MCQ Quiz Hub

Jquery Mcq Set 1

Choose a topic to test your knowledge and improve your Jquery skills

Who developed jQuery, and in which year it was first released?





โœ… Correct Answer: 3

jQuery is a -





โœ… Correct Answer: 2

Which of the following sign is used as a shortcut for jQuery?





โœ… Correct Answer: 3

$(this) in jQuery is used when -





โœ… Correct Answer: 2

Which of the following jQuery method is used to hide the selected elements?





โœ… Correct Answer: 2

Which jQuery method is used to set one or more style properties to the selected element?





โœ… Correct Answer: 3

Which of the following jQuery method can be used to deal with the name conflicts?





โœ… Correct Answer: 3

The correct syntax to set the background color of all h1 elements to yellow in jQuery -





โœ… Correct Answer: 3

Which of the following jQuery method is used to attach a handler to an event?





โœ… Correct Answer: 3

The jQuery method used to perform an asynchronous HTTP request -





โœ… Correct Answer: 3

Which of the following jQuery method is used to stop jQuery for few milliseconds?





โœ… Correct Answer: 2

What does the syntax $("p.para") will select?





โœ… Correct Answer: 4

Which of the jQuery function prevents the code from running before the loading of the document finishes?





โœ… Correct Answer: 3

The jQuery used to find all next sibling elements after the current element is -





โœ… Correct Answer: 2

The correct syntax for selecting the first paragraph element with id p1 is -





โœ… Correct Answer: 2

Which of the following jQuery method is used to check whether or not the selected elements have the specified class name?





โœ… Correct Answer: 1

Which of the following jQuery method is used to set the value of an element?





โœ… Correct Answer: 1

The jQuery method used to set the width property of an element is -





โœ… Correct Answer: 2

The jQuery method used to get all ancestors of the matched set of elements is -





โœ… Correct Answer: 1

The jQuery method used to remove the set of matched elements is -





โœ… Correct Answer: 3

The jQuery method used for parsing the JSON text is -





โœ… Correct Answer: 1

What does the syntax $("div#myDiv .para") will select?





โœ… Correct Answer: 1

Which of the following jQuery method is used to reduce the set of matched elements to a single element?





โœ… Correct Answer: 3

The toggle() method in jQuery is used to -





โœ… Correct Answer: 1

Which of the following method is used to toggle between the fadeIn() method and fadeOut() method?





โœ… Correct Answer: 2

The :even and :odd filters in jQuery are used to -





โœ… Correct Answer: 2

If the names of variables are the same, then which of the following type of variable takes precedence?





โœ… Correct Answer: 1

Which of the following is the correct code in jQuery to make all div elements 150px high?





โœ… Correct Answer: 1

CDN stands for -





โœ… Correct Answer: 1

Which of the following is the basic requirement to start with jQuery?





โœ… Correct Answer: 3

The jQuery method used to find all previous sibling elements of the current element is -





โœ… Correct Answer: 2

The jQuery method used to return the direct parent element of the selected element is -





โœ… Correct Answer: 2

The jQuery method used to load data using HTTP get is -





โœ… Correct Answer: 1

Can we use multiple document.ready() function on the same page?





โœ… Correct Answer: 1

The code $("p").css("background-color","yellow") is equivalent to -





โœ… Correct Answer: 1

Which of the following jQuery method is used to add/remove one or more classes from the selected elements?





โœ… Correct Answer: 1

What does the syntax $("p") will select?





โœ… Correct Answer: 1

What does the syntax $("p span") will select?





โœ… Correct Answer: 1

The selector $(":disabled") will select -





โœ… Correct Answer: 4

Which of the following selector in jQuery is used to select the elements with lesser index value than the value of its index parameter?





โœ… Correct Answer: 1

Which of the following method in jQuery is used to make copies of the set of matched elements?





โœ… Correct Answer: 3

The jQuery method which is used to remove the tabs, space and the line breaks from the beginning and end of the specified string is -





โœ… Correct Answer: 2

Which of the following jQuery method returns the direct children of the selected element?





โœ… Correct Answer: 3

Which of the following jQuery method returns all siblings of the selected element?





โœ… Correct Answer: 2

The jQuery selector used to select the elements containing the specified string is -





โœ… Correct Answer: 1

The jQuery selector used to select the elements with the specified language code is -





โœ… Correct Answer: 2

Which of the following jQuery method is used to replace all selected elements with new HTML elements?





โœ… Correct Answer: 2

The jQuery method used to trigger a specified event handler for the selected element is -





โœ… Correct Answer: 1

Which of the following method is used to remove the specified attribute from the selected element?





โœ… Correct Answer: 3

Which of the following jQuery method is used to merge the content of two or more objects into the first object?





โœ… Correct Answer: 1