SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
Jquery Commands
Start Test
Study First
Subject
:
it-skills
Instructions:
Answer 50 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. The _______ version of jQuery is minified
production
$
node
$("#myselect option:selected").text();
2. Unit of time measure in jQuery commands requiring a time value
milliseconds
class selector
slideToggle
if not $('#myDiv').show();
3. Show item if it exists but do nothing (no errors)
$("<selector>").<method>;
selector
$("#some\.id") instead of $("#some.id")
descendent selector
var isVisible = $('#myDiv').is(':visible');
dollar sign
Write Less
method
$("img#dog").fadeIn(3000);
terminator
dot
id selector
var isHidden = $('#myDiv').is(':hidden');
$("#c").attr("checked","");
1000
browser
none
viewport
concatenation
$('#myDivId').val("hello world");
interpreter
$("#x").removeAttr("disabled");
if not $('#myDiv').show();
$(document).ready( function( ) {/* your code here */} );
JavaScript
class selector
$('.myCssClass')
var myDivElement = $('#myDivId');
node
$("#myselect option:selected").text();
code block
jQuery
slideToggle
DOM (Document Object Model)
+
$( )
$("h1").hide();
if ( $(this).hasClass("protected")
CSS
$("#c").attr("checked", "checked");
http://www.jquery.com
<script></script>
John Resig
var myValue = $('#myDivId').val();
production
if ( $('#myDiv').is('.pretty') )
HTML string
*
$("#x").attr("disabled","disabled");
if not $('#myDiv').show();
$('#myDivId')
html
slideDown
dot
html
transparent
if ( $('#myDiv').length )
milliseconds
$
developer
slideUp
semicolon
opaque
4. Select an element that has special CSS characters in its ID like '.'
$("#some\.id") instead of $("#some.id")
semicolon
production
DOM (Document Object Model)
5. The _____ method changes the height property of an element from zero to whatever it's set to in the CSS style.
http://www.jquery.com
terminator
slideDown
slideToggle
6. jQuery selects elements the same way ____ does
var myValue = $('#myDivId').val();
descendent selector
$('.myCssClass')
CSS
7. A ______ is used by jQuery to locate and return an element from the web page
html
dollar sign
selector
$('.myCssClass')
8. Select an item using class
9. Allows you to select a grouping of elements
jQuery
CSS
*
class selector
10. Given: $("div p").hide(); Here the selector is an example of a _________; the parent is on the left and child is on the right
browser
$("img#dog").fadeIn(3000);
descendent selector
terminator
11. One of jQuery's main strengths is that it allows you to work with the ____ without having to know everything about it.
var myValue = $('#myDivId').val();
DOM (Document Object Model)
$("#some\.id") instead of $("#some.id")
if ( $(this).hasClass("protected")
12. This is the jQuery object. $ ("document").ready(function () { Your Code }); This is where all of jQuery's functionality is accessed from.
jQuery
$
$("#x").removeAttr("disabled");
descendent selector
13. Re-write the following command with the jQuery shortcut: jQuery("h1").hide();
$("#c").attr("checked","");
1000
$("h1").hide();
id selector
14. Test whether an element has a particular class
if ( $(this).hasClass("protected")
semicolon
dot
jQuery
15. Another word for invisible
descendent selector
$("img#dog").fadeIn(3000);
transparent
html
16. The original creator of the jQuery library
opaque
var myDivElement = $('#myDivId');
interpreter
John Resig
17. Disable an element
$("#x").attr("disabled","disabled");
if not $('#myDiv').show();
$("h1").hide();
production
18. Name of the symbol that ends a jQuery statement
$("#x").attr("disabled","disabled");
HTML string
jQuery
semicolon
19. jQuery is written in _____________
interpreter
JavaScript
$("#c").attr("checked", "checked");
opaque
20. Use a _____ to test that your jQuery scripts are working.
developer
concatenation
Write Less
browser
21. 3 types of things that can go into the jQuery function: $( ) - CSS Selector - ________ - and JavaScript object
html
var isVisible = $('#myDiv').is(':visible');
HTML string
$('#myDivId').val("hello world");
22. Enable an element
$("#x").removeAttr("disabled");
$('#myDivId').val("hello world");
http://www.jquery.com
html
23. Shortcut for typing: jQuery( )
$( )
opaque
$("<selector>").<method>;
$("#myselect option:selected").text();
24. Get the value of an element
var myValue = $('#myDivId').val();
HTML string
$
JavaScript
node
$("img#dog").fadeIn(3000);
transparent
none
$("#c").attr("checked", "checked");
$(document).ready( function( ) {/* your code here */} );
id selector
Write Less
selector
viewport
$("#myselect option:selected").text();
if not $('#myDiv').show();
html
interpreter
browser
$('#myDivId').val("hello world");
+
var myDivElement = $('#myDivId');
var isHidden = $('#myDiv').is(':hidden');
dot
code block
developer
$("#x").attr("disabled","disabled");
$("<selector>").<method>;
$("#x").removeAttr("disabled");
method
milliseconds
var isVisible = $('#myDiv').is(':visible');
$("#c").attr("checked","");
slideUp
<script></script>
if ( $(this).hasClass("protected")
production
html
$("h1").hide();
opaque
slideToggle
var myValue = $('#myDivId').val();
DOM (Document Object Model)
$("#some\.id") instead of $("#some.id")
concatenation
*
$( )
http://www.jquery.com
class selector
John Resig
semicolon
slideDown
CSS
terminator
1000
if ( $('#myDiv').length )
if ( $('#myDiv').is('.pretty') )
dot
dollar sign
descendent selector
$('#myDivId')
$('.myCssClass')
jQuery
25. HTML tag pair that delimits a jQuery code block
HTML string
$("#c").attr("checked","");
<script></script>
$('#myDivId')
26. Get the text value of a selected option
$( )
$('#myDivId')
$("#myselect option:selected").text();
$
27. Root of an html document
1000
code block
slideUp
html
28. Stuff between { } is often called a ______
$
code block
milliseconds
var isHidden = $('#myDiv').is(':hidden');
29. Each part of the DOM is called a ________.
$('.myCssClass')
code block
id selector
node
30. The semicolon following a jQuery statement is known as a ___________
$(document).ready( function( ) {/* your code here */} );
terminator
code block
jQuery
31. Test whether an element exists
var myDivElement = $('#myDivId');
Write Less
slideDown
$("#x").removeAttr("disabled");
none
CSS
if ( $('#myDiv').length )
$("#myselect option:selected").text();
semicolon
1000
method
$("#some\.id") instead of $("#some.id")
viewport
if ( $('#myDiv').is('.pretty') )
class selector
milliseconds
DOM (Document Object Model)
$('#myDivId')
HTML string
node
if ( $(this).hasClass("protected")
$("img#dog").fadeIn(3000);
if ( $('#myDiv').length )
concatenation
slideToggle
terminator
var isHidden = $('#myDiv').is(':hidden');
JavaScript
interpreter
id selector
http://www.jquery.com
html
$
browser
*
$("#c").attr("checked","");
$('#myDivId').val("hello world");
dot
dollar sign
selector
$("<selector>").<method>;
John Resig
+
dot
descendent selector
<script></script>
$('.myCssClass')
$("h1").hide();
transparent
if not $('#myDiv').show();
slideUp
var myValue = $('#myDivId').val();
$(document).ready( function( ) {/* your code here */} );
opaque
code block
$( )
$("#x").attr("disabled","disabled");
developer
html
var isVisible = $('#myDiv').is(':visible');
jQuery
production
$("#c").attr("checked", "checked");
32. Concatenation symbol in JavaScript
transparent
var myValue = $('#myDivId').val();
+
*
33. Name of the symbol used for the jQuery shortcut
$('.myCssClass')
if not $('#myDiv').show();
selector
dollar sign
34. Name of the character used to separate a jQuery selector from a jQuery method
node
dot
dollar sign
$("#x").removeAttr("disabled");
35. Number of milliseconds in a second
milliseconds
$
1000
$("h1").hide();
36. URL for obtaining jQuery
developer
if ( $('#myDiv').is('.pretty') )
http://www.jquery.com
html
37. The process of adding or 'gluing' various kinds of data together often in a message
$("#c").attr("checked","");
concatenation
slideToggle
html
38. Determine the state of a toggled element
node
<script></script>
if ( $('#myDiv').is('.pretty') )
terminator
$("<selector>").<method>;
JavaScript
*
HTML string
$("#c").attr("checked","");
code block
var myValue = $('#myDivId').val();
$('#myDivId').val("hello world");
developer
class selector
dot
http://www.jquery.com
opaque
slideToggle
var myDivElement = $('#myDivId');
$("#c").attr("checked", "checked");
$('.myCssClass')
var isVisible = $('#myDiv').is(':visible');
production
dollar sign
Write Less
$("img#dog").fadeIn(3000);
var isVisible = $('#myDiv').is(':visible');
concatenation
$("#myselect option:selected").text();
dot
none
if ( $(this).hasClass("protected")
if not $('#myDiv').show();
slideDown
transparent
if ( $('#myDiv').length )
$(document).ready( function( ) {/* your code here */} );
CSS
html
milliseconds
id selector
jQuery
$( )
browser
semicolon
+
selector
viewport
$
html
$("h1").hide();
slideUp
$('#myDivId')
1000
John Resig
descendent selector
DOM (Document Object Model)
$("#x").attr("disabled","disabled");
interpreter
$("#x").removeAttr("disabled");
method
var isHidden = $('#myDiv').is(':hidden');
$("#some\.id") instead of $("#some.id")
39. Basic jQuery syntax (using shortcut)
slideDown
$("<selector>").<method>;
dollar sign
$("#c").attr("checked","");
40. JavaScript library specialized for complex interactivity and rich visual effects
descendent selector
interpreter
$('#myDivId').val("hello world");
jQuery
41. You know you are dealing with a _____ when you see a set of parenthesis after a keyword
var myDivElement = $('#myDivId');
$('#myDivId').val("hello world");
method
$("#x").removeAttr("disabled");
42. Syntax for a common jQuery code block that's intended to run when a web page is fully loaded
$(document).ready( function( ) {/* your code here */} );
CSS
if ( $('#myDiv').is('.pretty') )
interpreter
43. The ______ method says 'If it's up slide it down; if it's down slide it up.'
slideToggle
$("#c").attr("checked", "checked");
terminator
semicolon
44. The JavaScript ______ translates directions you give it into different actions on the web page
slideUp
<script></script>
interpreter
$("#c").attr("checked","");
45. A CSS setting that makes sure an element won't show when the page loads: display:______;
if ( $('#myDiv').length )
none
slideUp
$("h1").hide();
46. Uncheck an input
$('#myDivId')
*
class selector
$("#c").attr("checked","");
47. Two versions of jQuery available for download: production & ________
$
developer
transparent
browser
48. A(n) ___ _____ is used to identify a single unique element on a page.
id selector
none
viewport
transparent
49. Both CSS and jQuery use the ____ symbol to specify a class.
class selector
dot
production
code block
50. Test whether an element has a particular class
$('#myDivId')
var isHidden = $('#myDiv').is(':hidden');
concatenation
$("#c").attr("checked", "checked");
1000
$("h1").hide();
if ( $('#myDiv').is('.pretty') )
if ( $(this).hasClass("protected")
slideDown
$("#some\.id") instead of $("#some.id")
html
dot
code block
+
$("#x").attr("disabled","disabled");
Write Less
$(document).ready( function( ) {/* your code here */} );
John Resig
$("#c").attr("checked","");
id selector
if not $('#myDiv').show();
<script></script>
method
descendent selector
var myDivElement = $('#myDivId');
milliseconds
slideToggle
class selector
JavaScript
node
dollar sign
production
if ( $('#myDiv').is('.pretty') )
HTML string
html
viewport
opaque
dot
$("#x").removeAttr("disabled");
$('#myDivId').val("hello world");
DOM (Document Object Model)
if ( $('#myDiv').length )
$("#myselect option:selected").text();
slideUp
var myValue = $('#myDivId').val();
interpreter
http://www.jquery.com
terminator
semicolon
developer
transparent
$( )
selector
browser
$("<selector>").<method>;
CSS
$
jQuery
*
var isVisible = $('#myDiv').is(':visible');
none
$("img#dog").fadeIn(3000);
$('.myCssClass')