Click anywhere to close

Basic jQuery quiz

How well do you know the basics of jQuery? This quiz will test some basic syntax and jQuery rules to see just how familiar you are with the language.


Completed 0 out of 8 questions

Which of the following statements is not true about jQuery.

In jQuery, you select HTML elements and perform actions on them.
jQuery makes server side processing faster.
jQuery is cross browser compatible
jQuery requires a basic knowledge of HTML, CSS and JavaScript.











Question List

What will the following snippet of code do?

$("#hide-it").click(function(){
$("p").hide();
});
Will hide all Paragraph elements on the page when the element with id="hide-it" is clicked.
Will hide all Paragraph elements on the page when the page is loaded.
Will do nothing, there is a syntax error
Will hide an element with ID "p" when the element with ID "hide-it" is clicked.

Assume that the have the following actions chained together on the same element:

$("#mydiv").slideUp(2000).slideDown(2000);

What will happen during runtime to these actions?

Nothing. They both cancel each other out.
A runtime error as both actions conflict with each other
The element with ID "mydiv" will first slide up for 2 seconds and then down for 2 seconds.
The element with ID "mydiv" will jump up and down repeatedly for 2 seconds.

What does the JQuery remove() function do?

Removes all of the child elements, but not the selected element itself.
Removes the selected element and all associated child elements.
Removes the selected element, but promotes all child elements to the previous parent element.
Nothing, there is no JQuery function named remove.

Which of the following methods is not an appropriate selector routine in JQuery

$("#myDiv")
$("p")
$(this)
$("*")
$("div:all")

True or False.  The "ON" method can be used in jQuery to attach event handlers onto selected elements, such as in the following snippet of code:

$("button").on("click", function(){
$(this).hide();
});
True
False

Which of the following statements is not true about jQuery.

In jQuery, you select HTML elements and perform actions on them.
jQuery makes server side processing faster.
jQuery is cross browser compatible
jQuery requires a basic knowledge of HTML, CSS and JavaScript.

Which of the following is not a valid jQuery method for getting or setting content within an HTML element on a page.  

.text()
.val()
.content()
.html()

Which of the following jQuery commands will release jQuery's control over the $ variable.

$.noConflict();
$.release($);
$(this).release();
($).release();


Copyright © 2017 Dimbal Software - All Rights Reserved
Dashboard | Software Modules | Support | Blog | Article Index

Links | NPS | Polls | SEO Scans | Test Plan | Triage