SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
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. Enable an element
$('#myDivId')
descendent selector
DOM (Document Object Model)
$("#x").removeAttr("disabled");
2. 3 types of things that can go into the jQuery function: $( ) - CSS Selector - ________ - and JavaScript object
$("#some\.id") instead of $("#some.id")
var myDivElement = $('#myDivId');
HTML string
$("#c").attr("checked", "checked");
3. Assign a selected element to a javascript variable
method
viewport
none
$("#x").attr("disabled","disabled");
*
$("<selector>").<method>;
semicolon
var myValue = $('#myDivId').val();
browser
1000
class selector
html
html
if ( $('#myDiv').length )
$("#c").attr("checked", "checked");
if not $('#myDiv').show();
var myDivElement = $('#myDivId');
$("h1").hide();
opaque
slideUp
id selector
terminator
developer
if ( $('#myDiv').is('.pretty') )
$('.myCssClass')
dot
if ( $(this).hasClass("protected")
<script></script>
$("#c").attr("checked","");
var isVisible = $('#myDiv').is(':visible');
Write Less
node
$
code block
HTML string
$(document).ready( function( ) {/* your code here */} );
$("#some\.id") instead of $("#some.id")
selector
+
CSS
var isHidden = $('#myDiv').is(':hidden');
concatenation
DOM (Document Object Model)
descendent selector
JavaScript
$("#myselect option:selected").text();
$('#myDivId')
transparent
John Resig
http://www.jquery.com
$("#x").removeAttr("disabled");
dollar sign
slideToggle
$('#myDivId').val("hello world");
$( )
production
slideDown
dot
$("img#dog").fadeIn(3000);
jQuery
var myDivElement = $('#myDivId');
interpreter
milliseconds
4. The _____ method changes the height property of an element from zero to whatever it's set to in the CSS style.
transparent
slideDown
1000
descendent selector
5. Wildcard selector in jQuery (selects all elements)
$("#c").attr("checked", "checked");
*
$( )
developer
6. Concatenation symbol in JavaScript
html
concatenation
+
CSS
7. One of jQuery's main strengths is that it allows you to work with the ____ without having to know everything about it.
slideUp
DOM (Document Object Model)
semicolon
method
8. The process of adding or 'gluing' various kinds of data together often in a message
dot
$("#c").attr("checked","");
$('#myDivId').val("hello world");
concatenation
9. The _____ method changes the height property of an element until it is zero and then hides the element.
$("#some\.id") instead of $("#some.id")
production
slideUp
*
10. A(n) ___ _____ is used to identify a single unique element on a page.
id selector
$("#c").attr("checked","");
viewport
browser
11. Given: $("div p").hide(); Here the selector is an example of a _________; the parent is on the left and child is on the right
HTML string
selector
descendent selector
method
12. This kind of file builds the structure of the web page
<script></script>
dot
developer
html
13. Name of the symbol that ends a jQuery statement
production
semicolon
John Resig
CSS
14. URL for obtaining jQuery
$('#myDivId')
JavaScript
http://www.jquery.com
method
15. The JavaScript ______ translates directions you give it into different actions on the web page
interpreter
class selector
slideDown
John Resig
16. Basic jQuery syntax (using shortcut)
John Resig
$("<selector>").<method>;
if not $('#myDiv').show();
slideUp
17. Select an item using id
$("#x").removeAttr("disabled");
$("#some\.id") instead of $("#some.id")
CSS
if ( $(this).hasClass("protected")
if ( $('#myDiv').length )
transparent
$("h1").hide();
none
viewport
terminator
id selector
jQuery
developer
slideToggle
slideDown
$("#c").attr("checked","");
$('.myCssClass')
JavaScript
dot
dot
if ( $('#myDiv').is('.pretty') )
class selector
dollar sign
var myDivElement = $('#myDivId');
$("#c").attr("checked", "checked");
John Resig
$("#myselect option:selected").text();
*
descendent selector
browser
http://www.jquery.com
var myValue = $('#myDivId').val();
semicolon
html
var isVisible = $('#myDiv').is(':visible');
$('#myDivId').val("hello world");
1000
$('#myDivId')
html
code block
concatenation
production
$('#myDivId')
slideUp
Write Less
DOM (Document Object Model)
if not $('#myDiv').show();
opaque
$
$("<selector>").<method>;
milliseconds
node
method
$("img#dog").fadeIn(3000);
var isHidden = $('#myDiv').is(':hidden');
<script></script>
$(document).ready( function( ) {/* your code here */} );
selector
interpreter
$("#x").attr("disabled","disabled");
$( )
+
HTML string
18. Re-write the following command with the jQuery shortcut: jQuery("h1").hide();
$("h1").hide();
slideToggle
+
node
19. jQuery command to take an image with an id of 'dog' and fade it from transparent to opaque in 3 seconds.
dollar sign
$("img#dog").fadeIn(3000);
$("#c").attr("checked","");
transparent
20. Two versions of jQuery available for download: production & ________
$
+
var myValue = $('#myDivId').val();
developer
21. Show item if it exists but do nothing (no errors)
JavaScript
dollar sign
HTML string
$("#myselect option:selected").text();
$("h1").hide();
*
+
$("#c").attr("checked", "checked");
var myDivElement = $('#myDivId');
jQuery
var isHidden = $('#myDiv').is(':hidden');
html
interpreter
dot
if ( $('#myDiv').is('.pretty') )
var myValue = $('#myDivId').val();
class selector
selector
viewport
terminator
slideDown
semicolon
$('.myCssClass')
DOM (Document Object Model)
$("#c").attr("checked","");
$("#x").attr("disabled","disabled");
id selector
code block
browser
if ( $('#myDiv').length )
none
$( )
$("#some\.id") instead of $("#some.id")
descendent selector
John Resig
var isVisible = $('#myDiv').is(':visible');
1000
concatenation
method
html
slideUp
$(document).ready( function( ) {/* your code here */} );
slideToggle
if not $('#myDiv').show();
Write Less
$("#x").removeAttr("disabled");
$
CSS
opaque
milliseconds
$("img#dog").fadeIn(3000);
if not $('#myDiv').show();
node
if ( $(this).hasClass("protected")
$('#myDivId')
http://www.jquery.com
production
dot
developer
$('#myDivId').val("hello world");
$("<selector>").<method>;
transparent
<script></script>
22. Get the value of an element
$("#myselect option:selected").text();
CSS
$('#myDivId').val("hello world");
slideDown
$("#x").attr("disabled","disabled");
$("#x").removeAttr("disabled");
JavaScript
html
production
var myDivElement = $('#myDivId');
$('.myCssClass')
$( )
1000
if ( $(this).hasClass("protected")
milliseconds
*
$("#c").attr("checked", "checked");
DOM (Document Object Model)
if ( $('#myDiv').is('.pretty') )
$(document).ready( function( ) {/* your code here */} );
HTML string
developer
var myValue = $('#myDivId').val();
if not $('#myDiv').show();
none
concatenation
$("#some\.id") instead of $("#some.id")
id selector
var isHidden = $('#myDiv').is(':hidden');
method
selector
node
$("img#dog").fadeIn(3000);
dot
browser
slideUp
slideToggle
viewport
$('#myDivId')
Write Less
dollar sign
var isVisible = $('#myDiv').is(':visible');
opaque
descendent selector
transparent
+
html
interpreter
http://www.jquery.com
class selector
$
John Resig
$("h1").hide();
code block
semicolon
terminator
var myValue = $('#myDivId').val();
dot
$("#c").attr("checked","");
jQuery
if ( $('#myDiv').length )
<script></script>
$("<selector>").<method>;
23. This is the jQuery object. $ ("document").ready(function () { Your Code }); This is where all of jQuery's functionality is accessed from.
$
dot
if ( $(this).hasClass("protected")
$("h1").hide();
24. jQuery is written in _____________
John Resig
$('#myDivId').val("hello world");
JavaScript
$("h1").hide();
25. HTML tag pair that delimits a jQuery code block
jQuery
<script></script>
var myValue = $('#myDivId').val();
milliseconds
26. The ______ is the main window of the browser.
$("#c").attr("checked","");
viewport
descendent selector
var myValue = $('#myDivId').val();
27. Stuff between { } is often called a ______
if ( $(this).hasClass("protected")
var myValue = $('#myDivId').val();
code block
$('.myCssClass')
28. Disable an element
$("#x").attr("disabled","disabled");
dot
jQuery
descendent selector
29. Another word for visible
developer
dollar sign
$('#myDivId').val("hello world");
opaque
30. Check an input
$("h1").hide();
$("#c").attr("checked", "checked");
DOM (Document Object Model)
$("#some\.id") instead of $("#some.id")
31. jQuery motto: _____. Do More.
CSS
*
none
Write Less
32. Each part of the DOM is called a ________.
var myValue = $('#myDivId').val();
node
Write Less
var isHidden = $('#myDiv').is(':hidden');
33. Allows you to select a grouping of elements
class selector
$(document).ready( function( ) {/* your code here */} );
var isVisible = $('#myDiv').is(':visible');
$("#x").removeAttr("disabled");
34. The semicolon following a jQuery statement is known as a ___________
JavaScript
slideToggle
concatenation
terminator
35. You know you are dealing with a _____ when you see a set of parenthesis after a keyword
slideDown
if ( $(this).hasClass("protected")
$(document).ready( function( ) {/* your code here */} );
method
36. Get the text value of a selected option
viewport
developer
$("#myselect option:selected").text();
$("#c").attr("checked","");
37. Unit of time measure in jQuery commands requiring a time value
$("#x").removeAttr("disabled");
$("#c").attr("checked", "checked");
html
milliseconds
38. JavaScript library specialized for complex interactivity and rich visual effects
$('#myDivId').val("hello world");
CSS
html
jQuery
39. The original creator of the jQuery library
browser
id selector
html
John Resig
40. Select an element that has special CSS characters in its ID like '.'
*
interpreter
$("#some\.id") instead of $("#some.id")
$("img#dog").fadeIn(3000);
41. Determine the state of a toggled element
code block
JavaScript
semicolon
*
http://www.jquery.com
$
$("#c").attr("checked","");
$("h1").hide();
if not $('#myDiv').show();
var myDivElement = $('#myDivId');
+
var isHidden = $('#myDiv').is(':hidden');
jQuery
1000
html
$( )
terminator
method
dot
slideToggle
var myValue = $('#myDivId').val();
$('#myDivId').val("hello world");
viewport
dot
id selector
$("#c").attr("checked", "checked");
milliseconds
$("img#dog").fadeIn(3000);
CSS
production
selector
class selector
if ( $('#myDiv').length )
Write Less
$('.myCssClass')
slideDown
$("#myselect option:selected").text();
developer
none
var isVisible = $('#myDiv').is(':visible');
DOM (Document Object Model)
dollar sign
$("#x").attr("disabled","disabled");
$('#myDivId')
opaque
$("#some\.id") instead of $("#some.id")
slideUp
concatenation
if ( $('#myDiv').is('.pretty') )
descendent selector
$("#x").removeAttr("disabled");
var isHidden = $('#myDiv').is(':hidden');
if ( $(this).hasClass("protected")
interpreter
<script></script>
John Resig
HTML string
html
browser
$(document).ready( function( ) {/* your code here */} );
transparent
$("<selector>").<method>;
node
42. Set the value of an element
$('.myCssClass')
production
code block
dollar sign
John Resig
JavaScript
$("h1").hide();
$("#some\.id") instead of $("#some.id")
*
dot
$( )
var isVisible = $('#myDiv').is(':visible');
dot
if ( $('#myDiv').is('.pretty') )
if ( $(this).hasClass("protected")
interpreter
html
1000
opaque
+
none
$("#c").attr("checked", "checked");
$("#x").attr("disabled","disabled");
http://www.jquery.com
jQuery
browser
$('#myDivId')
slideToggle
semicolon
$("#myselect option:selected").text();
$("img#dog").fadeIn(3000);
slideUp
$("#x").removeAttr("disabled");
selector
milliseconds
viewport
Write Less
transparent
HTML string
descendent selector
$("<selector>").<method>;
var myValue = $('#myDivId').val();
method
class selector
developer
var isHidden = $('#myDiv').is(':hidden');
node
CSS
if ( $('#myDiv').length )
$(document).ready( function( ) {/* your code here */} );
terminator
concatenation
$('#myDivId').val("hello world");
DOM (Document Object Model)
slideDown
html
<script></script>
id selector
var myDivElement = $('#myDivId');
$
$("#c").attr("checked","");
$('#myDivId').val("hello world");
if not $('#myDiv').show();
43. Both CSS and jQuery use the ____ symbol to specify a class.
if not $('#myDiv').show();
dot
var myDivElement = $('#myDivId');
var isHidden = $('#myDiv').is(':hidden');
44. Number of milliseconds in a second
var isHidden = $('#myDiv').is(':hidden');
if ( $('#myDiv').length )
terminator
1000
45. jQuery selects elements the same way ____ does
$("#some\.id") instead of $("#some.id")
milliseconds
var myValue = $('#myDivId').val();
CSS
46. Test whether an element exists
terminator
John Resig
$("img#dog").fadeIn(3000);
developer
<script></script>
concatenation
node
id selector
1000
none
JavaScript
production
if not $('#myDiv').show();
var isVisible = $('#myDiv').is(':visible');
$('#myDivId')
Write Less
jQuery
$("#c").attr("checked", "checked");
if ( $('#myDiv').is('.pretty') )
html
$("<selector>").<method>;
var isHidden = $('#myDiv').is(':hidden');
opaque
DOM (Document Object Model)
browser
descendent selector
semicolon
$(document).ready( function( ) {/* your code here */} );
var myDivElement = $('#myDivId');
HTML string
milliseconds
$("h1").hide();
viewport
$("#myselect option:selected").text();
$("#x").removeAttr("disabled");
$("#x").attr("disabled","disabled");
$('#myDivId').val("hello world");
var myValue = $('#myDivId').val();
dollar sign
if ( $(this).hasClass("protected")
code block
$("#c").attr("checked","");
class selector
http://www.jquery.com
+
selector
interpreter
slideDown
method
transparent
slideUp
$("#some\.id") instead of $("#some.id")
dot
CSS
if ( $('#myDiv').length )
slideToggle
if ( $('#myDiv').length )
*
html
dot
$
$( )
$('.myCssClass')
47. Root of an html document
1000
id selector
html
dollar sign
48. Determine the state of a toggled element
var isVisible = $('#myDiv').is(':visible');
$('#myDivId')
$("#x").removeAttr("disabled");
John Resig
viewport
+
dollar sign
var myValue = $('#myDivId').val();
$('.myCssClass')
$
Write Less
html
var isVisible = $('#myDiv').is(':visible');
HTML string
interpreter
*
$("#myselect option:selected").text();
opaque
slideUp
if not $('#myDiv').show();
descendent selector
http://www.jquery.com
DOM (Document Object Model)
<script></script>
slideToggle
$("#x").attr("disabled","disabled");
slideDown
none
transparent
jQuery
code block
class selector
$("#some\.id") instead of $("#some.id")
$('#myDivId').val("hello world");
var myDivElement = $('#myDivId');
$( )
$("<selector>").<method>;
$("#c").attr("checked", "checked");
browser
id selector
if ( $('#myDiv').is('.pretty') )
dot
developer
$("#c").attr("checked","");
node
concatenation
1000
method
semicolon
html
milliseconds
CSS
var isHidden = $('#myDiv').is(':hidden');
production
$("img#dog").fadeIn(3000);
$(document).ready( function( ) {/* your code here */} );
if ( $(this).hasClass("protected")
dot
if ( $('#myDiv').length )
terminator
selector
$("h1").hide();
JavaScript
49. Test whether an element has a particular class
opaque
DOM (Document Object Model)
$("#x").removeAttr("disabled");
code block
none
terminator
method
$('.myCssClass')
interpreter
jQuery
html
dollar sign
browser
$("h1").hide();
<script></script>
concatenation
+
$('#myDivId')
slideUp
$("#some\.id") instead of $("#some.id")
$('#myDivId').val("hello world");
$("#x").attr("disabled","disabled");
$(document).ready( function( ) {/* your code here */} );
$("img#dog").fadeIn(3000);
dot
var isVisible = $('#myDiv').is(':visible');
viewport
if ( $('#myDiv').length )
milliseconds
$("<selector>").<method>;
$("#myselect option:selected").text();
CSS
if not $('#myDiv').show();
selector
http://www.jquery.com
node
$("#c").attr("checked","");
var myDivElement = $('#myDivId');
id selector
Write Less
$( )
production
var isHidden = $('#myDiv').is(':hidden');
JavaScript
html
HTML string
$("#c").attr("checked", "checked");
dot
1000
if ( $(this).hasClass("protected")
developer
*
slideDown
var myValue = $('#myDivId').val();
descendent selector
if ( $('#myDiv').is('.pretty') )
transparent
John Resig
$
class selector
if ( $('#myDiv').is('.pretty') )
semicolon
slideToggle
50. A ______ is used by jQuery to locate and return an element from the web page
selector
concatenation
descendent selector
method
Can you answer 50 questions in 15 minutes?
Let me suggest you:
Browse all subjects
Browse all tests
Most popular tests
Major Subjects
Tests & Exams
AP
CLEP
DSST
GRE
SAT
GMAT
Certifications
CISSP go to https://www.isc2.org/
PMP
ITIL
RHCE
MCTS
More...
IT Skills
Android Programming
Data Modeling
Objective C Programming
Basic Python Programming
Adobe Illustrator
More...
Business Skills
Advertising Techniques
Business Accounting Basics
Business Strategy
Human Resource Management
Marketing Basics
More...
Soft Skills
Body Language
People Skills
Public Speaking
Persuasion
Job Hunting And Resumes
More...
Vocabulary
GRE Vocab
SAT Vocab
TOEFL Essential Vocab
Basic English Words For All
Global Words You Should Know
Business English
More...
Languages
AP German Vocab
AP Latin Vocab
SAT Subject Test: French
Italian Survival
Norwegian Survival
More...
Engineering
Audio Engineering
Computer Science Engineering
Aerospace Engineering
Chemical Engineering
Structural Engineering
More...
Health Sciences
Basic Nursing Skills
Health Science Language Fundamentals
Veterinary Technology Medical Language
Cardiology
Clinical Surgery
More...
English
Grammar Fundamentals
Literary And Rhetorical Vocab
Elements Of Style Vocab
Introduction To English Major
Complete Advanced Sentences
Literature
Homonyms
More...
Math
Algebra Formulas
Basic Arithmetic: Measurements
Metric Conversions
Geometric Properties
Important Math Facts
Number Sense Vocab
Business Math
More...
Other Major Subjects
Science
Economics
History
Law
Performing-arts
Cooking
Logic & Reasoning
Trivia
Browse all subjects
Browse all tests
Most popular tests