WorksheetsJQuery Quiz for Level X
Total questions: 15
Worksheet time: 8mins
jQuery is a ...
JavaScript Language
JavaScript Library
JavaScript Method
JavaScript Class
JavaScript Framework
jQuery is a lightweight, "write less, do more", JavaScript library.?
False
True
Which sign does jQuery use as a shortcut for jQuery?
$
?
%
!
;
Which of the following event is make use of jQuery methods ready to load?
$(document).ready(function(){....});
$(document).load(function(){....});
$(DOM).ready(function(){....});
$(DOM).load(function(){....});
$(document).ready({....});
Which of the following ways is correct JQuery Hide() Syntax ?
$.hide()
$("p").hide();
None of the above
$("div").hideAll();
$(hide);
You can also toggle between hiding and showing an element with the ______?
Animation
Picture
toggle() method
slideToggle() method
hide() method
Which of the following is the correct syntax of toggle() effects in JQuery?
$("p").toggle();
.("p").toggle();
None of the above
$(toggle);
$("p").{toggle()};
Which of the following ways is correct JQuery Event Syntax ?
$("p").click(function(){ // action goes here!! });
$("p").openAll(function(){}
None of the above
$("div").hide();
.("button").click();
The mouseenter() method attaches an event handler function to an ____________.?
The Text is shown normal.
HTML element.
None of the above
The hover() method takes two functions and is a combination of the ______?
mouseclick() methods.
mouseenter() and mouseleave() methods.
None of the above
Which of the following is the correct form to create to hide paragraph elements in Jquery and select the element?
$(document).ready(function(){
$("button").click(function(){
$("p").hide();
});
});
flex-wrap: no-wrap;
None of the above
$(document).ready(function(){
$("button").click(function(){
$("p").show();
});
});
$(document).ready(function(){
$("button").click(function(){
$(this).hide();
});
});
Which of the following is a correct jQuery Syntax
!(selector).function()
$(selector).action()
$(selector).function()
$(action).selector()
$(action).function()
What does the following selector: $("div"). will select in jQuery?
All div elements
The first div element
any one div element
The last div element
the first parent of div element
Which jQuery method is used to hide selected elements?
hidden()
hide()
visible(false)
display(none)
Which of the following is the correct syntax to Set CSS in JQuery?
$("p").css("background-color="yellow");
$("p").css("backgroundcolor", "yellow");
$("p").css("background-color", "yellow");
