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. Two versions of jQuery available for download: production & ________
if ( $('#myDiv').length )
$("#x").attr("disabled","disabled");
node
developer
2. Check an input
JavaScript
$("#x").removeAttr("disabled");
$("#c").attr("checked", "checked");
viewport
3. You know you are dealing with a _____ when you see a set of parenthesis after a keyword
class selector
method
John Resig
$("h1").hide();
4. A CSS setting that makes sure an element won't show when the page loads: display:______;
$("#myselect option:selected").text();
slideDown
class selector
none
5. Wildcard selector in jQuery (selects all elements)
var myValue = $('#myDivId').val();
*
$('#myDivId').val("hello world");
$("#c").attr("checked", "checked");
6. Test whether an element has a particular class
$("#x").attr("disabled","disabled");
if ( $(this).hasClass("protected")
$("img#dog").fadeIn(3000);
$(document).ready( function( ) {/* your code here */} );
DOM (Document Object Model)
$
CSS
concatenation
$("#c").attr("checked", "checked");
$('#myDivId').val("hello world");
if not $('#myDiv').show();
opaque
developer
JavaScript
terminator
interpreter
code block
dot
semicolon
var myValue = $('#myDivId').val();
if ( $('#myDiv').length )
dollar sign
browser
var myDivElement = $('#myDivId');
$("#c").attr("checked","");
jQuery
id selector
$("#myselect option:selected").text();
descendent selector
Write Less
node
http://www.jquery.com
html
selector
$("#x").removeAttr("disabled");
if ( $('#myDiv').is('.pretty') )
class selector
HTML string
$('#myDivId')
slideToggle
$('.myCssClass')
viewport
$("<selector>").<method>;
html
+
1000
var isHidden = $('#myDiv').is(':hidden');
transparent
John Resig
if ( $('#myDiv').is('.pretty') )
slideUp
$("#some\.id") instead of $("#some.id")
*
var isVisible = $('#myDiv').is(':visible');
slideDown
milliseconds
dot
method
<script></script>
production
none
$( )
$("h1").hide();
7. Basic jQuery syntax (using shortcut)
$("<selector>").<method>;
if not $('#myDiv').show();
code block
slideUp
8. Root of an html document
html
var myDivElement = $('#myDivId');
viewport
+
9. The _____ method changes the height property of an element until it is zero and then hides the element.
var isVisible = $('#myDiv').is(':visible');
slideToggle
method
slideUp
10. Test whether an element has a particular class
if ( $(this).hasClass("protected")
dot
1000
class selector
11. The ______ is the main window of the browser.
viewport
milliseconds
transparent
$("h1").hide();
12. jQuery selects elements the same way ____ does
$("img#dog").fadeIn(3000);
John Resig
CSS
slideToggle
13. Another word for invisible
if ( $('#myDiv').is('.pretty') )
transparent
1000
interpreter
14. A(n) ___ _____ is used to identify a single unique element on a page.
id selector
slideUp
var isVisible = $('#myDiv').is(':visible');
$("#c").attr("checked", "checked");
15. Each part of the DOM is called a ________.
opaque
viewport
node
http://www.jquery.com
16. jQuery is written in _____________
none
+
slideToggle
JavaScript
17. Determine the state of a toggled element
html
node
<script></script>
+
$("#c").attr("checked","");
browser
none
DOM (Document Object Model)
var isHidden = $('#myDiv').is(':hidden');
if ( $(this).hasClass("protected")
$("#x").attr("disabled","disabled");
concatenation
$("#x").removeAttr("disabled");
var myValue = $('#myDivId').val();
$("img#dog").fadeIn(3000);
$("h1").hide();
$("#myselect option:selected").text();
$(document).ready( function( ) {/* your code here */} );
if ( $('#myDiv').is('.pretty') )
$("<selector>").<method>;
dot
id selector
descendent selector
if ( $('#myDiv').length )
$("#c").attr("checked", "checked");
John Resig
var myDivElement = $('#myDivId');
dollar sign
interpreter
milliseconds
Write Less
$( )
code block
var isHidden = $('#myDiv').is(':hidden');
class selector
opaque
html
slideToggle
JavaScript
var isVisible = $('#myDiv').is(':visible');
1000
transparent
viewport
CSS
$("#some\.id") instead of $("#some.id")
http://www.jquery.com
selector
HTML string
slideDown
semicolon
method
*
dot
$
production
jQuery
terminator
if not $('#myDiv').show();
$('#myDivId').val("hello world");
slideUp
$('#myDivId')
developer
$('.myCssClass')
18. The ______ method says 'If it's up slide it down; if it's down slide it up.'
if ( $('#myDiv').is('.pretty') )
*
slideToggle
dot
19. Both CSS and jQuery use the ____ symbol to specify a class.
$('#myDivId')
html
var isHidden = $('#myDiv').is(':hidden');
dot
20. HTML tag pair that delimits a jQuery code block
$('#myDivId').val("hello world");
dollar sign
<script></script>
var isVisible = $('#myDiv').is(':visible');
21. Select an item using id
$
<script></script>
+
$("#x").removeAttr("disabled");
CSS
$("#c").attr("checked","");
HTML string
developer
$("<selector>").<method>;
$("img#dog").fadeIn(3000);
var myDivElement = $('#myDivId');
node
$("#c").attr("checked", "checked");
dot
slideToggle
browser
transparent
terminator
JavaScript
descendent selector
DOM (Document Object Model)
John Resig
*
concatenation
var myValue = $('#myDivId').val();
dot
if ( $('#myDiv').is('.pretty') )
$('#myDivId').val("hello world");
$( )
$("#x").attr("disabled","disabled");
1000
semicolon
class selector
$('.myCssClass')
milliseconds
opaque
none
Write Less
$('#myDivId')
html
production
viewport
if ( $(this).hasClass("protected")
code block
$("h1").hide();
$('#myDivId')
id selector
var isHidden = $('#myDiv').is(':hidden');
$(document).ready( function( ) {/* your code here */} );
if ( $('#myDiv').length )
method
slideDown
http://www.jquery.com
html
$("#myselect option:selected").text();
$("#some\.id") instead of $("#some.id")
slideUp
if not $('#myDiv').show();
selector
dollar sign
interpreter
var isVisible = $('#myDiv').is(':visible');
jQuery
22. Another word for visible
developer
$("h1").hide();
opaque
$("#c").attr("checked","");
23. Determine the state of a toggled element
production
$("#some\.id") instead of $("#some.id")
$("#c").attr("checked", "checked");
opaque
if ( $(this).hasClass("protected")
<script></script>
$("#c").attr("checked","");
var isVisible = $('#myDiv').is(':visible');
http://www.jquery.com
if ( $('#myDiv').length )
$("<selector>").<method>;
John Resig
$("h1").hide();
HTML string
$('#myDivId').val("hello world");
Write Less
$( )
var myDivElement = $('#myDivId');
+
dot
dot
var isVisible = $('#myDiv').is(':visible');
concatenation
jQuery
$("#myselect option:selected").text();
$
$("img#dog").fadeIn(3000);
1000
viewport
$(document).ready( function( ) {/* your code here */} );
node
interpreter
var myValue = $('#myDivId').val();
milliseconds
slideDown
html
transparent
if not $('#myDiv').show();
slideUp
*
selector
none
dollar sign
if ( $('#myDiv').is('.pretty') )
$('#myDivId')
$("#x").attr("disabled","disabled");
method
class selector
terminator
JavaScript
slideToggle
semicolon
code block
html
descendent selector
developer
$('.myCssClass')
browser
id selector
var isHidden = $('#myDiv').is(':hidden');
DOM (Document Object Model)
CSS
$("#x").removeAttr("disabled");
24. Given: $("div p").hide(); Here the selector is an example of a _________; the parent is on the left and child is on the right
$("img#dog").fadeIn(3000);
terminator
descendent selector
slideUp
25. Select an element that has special CSS characters in its ID like '.'
var myDivElement = $('#myDivId');
CSS
$("#some\.id") instead of $("#some.id")
slideToggle
26. Uncheck an input
$("#c").attr("checked","");
dot
var isVisible = $('#myDiv').is(':visible');
code block
27. The _____ method changes the height property of an element from zero to whatever it's set to in the CSS style.
dot
$("#c").attr("checked", "checked");
slideDown
var myDivElement = $('#myDivId');
28. The JavaScript ______ translates directions you give it into different actions on the web page
1000
descendent selector
slideUp
interpreter
29. This kind of file builds the structure of the web page
html
selector
concatenation
semicolon
30. Name of the character used to separate a jQuery selector from a jQuery method
$( )
dot
DOM (Document Object Model)
$("#x").attr("disabled","disabled");
31. Name of the symbol that ends a jQuery statement
semicolon
$( )
var isHidden = $('#myDiv').is(':hidden');
$
32. Show item if it exists but do nothing (no errors)
$("#x").removeAttr("disabled");
slideDown
html
if ( $('#myDiv').length )
Write Less
var myValue = $('#myDivId').val();
var isVisible = $('#myDiv').is(':visible');
concatenation
$("#x").attr("disabled","disabled");
$('#myDivId')
if not $('#myDiv').show();
if ( $('#myDiv').is('.pretty') )
JavaScript
1000
<script></script>
var isHidden = $('#myDiv').is(':hidden');
http://www.jquery.com
+
class selector
developer
HTML string
var myDivElement = $('#myDivId');
dollar sign
code block
$("img#dog").fadeIn(3000);
dot
*
if ( $(this).hasClass("protected")
interpreter
node
semicolon
selector
$(document).ready( function( ) {/* your code here */} );
opaque
jQuery
$
id selector
$("#c").attr("checked", "checked");
$("#c").attr("checked","");
browser
$('.myCssClass')
slideUp
slideToggle
$('#myDivId').val("hello world");
html
CSS
$("h1").hide();
production
descendent selector
dot
transparent
DOM (Document Object Model)
terminator
$("#myselect option:selected").text();
method
if not $('#myDiv').show();
$("<selector>").<method>;
$("#some\.id") instead of $("#some.id")
none
$( )
milliseconds
viewport
John Resig
33. Assign a selected element to a javascript variable
if ( $(this).hasClass("protected")
JavaScript
interpreter
code block
slideDown
$('#myDivId')
selector
var myDivElement = $('#myDivId');
viewport
var myValue = $('#myDivId').val();
$("<selector>").<method>;
$("#c").attr("checked", "checked");
var myDivElement = $('#myDivId');
production
$("#c").attr("checked","");
+
html
if not $('#myDiv').show();
$("img#dog").fadeIn(3000);
slideToggle
none
1000
http://www.jquery.com
dollar sign
$
class selector
method
CSS
$("#x").removeAttr("disabled");
opaque
dot
html
dot
HTML string
var isVisible = $('#myDiv').is(':visible');
transparent
jQuery
$("#myselect option:selected").text();
slideUp
$( )
if ( $('#myDiv').length )
$('#myDivId').val("hello world");
$("#some\.id") instead of $("#some.id")
$("#x").attr("disabled","disabled");
id selector
<script></script>
if ( $('#myDiv').is('.pretty') )
developer
node
*
John Resig
$('.myCssClass')
DOM (Document Object Model)
var isHidden = $('#myDiv').is(':hidden');
descendent selector
milliseconds
$(document).ready( function( ) {/* your code here */} );
browser
terminator
concatenation
Write Less
$("h1").hide();
semicolon
34. Re-write the following command with the jQuery shortcut: jQuery("h1").hide();
code block
html
$("h1").hide();
if ( $(this).hasClass("protected")
35. Select an item using class
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
36. Set the value of an element
$('#myDivId')
$("#c").attr("checked","");
$("#x").removeAttr("disabled");
descendent selector
if ( $('#myDiv').is('.pretty') )
terminator
$("img#dog").fadeIn(3000);
$("#c").attr("checked", "checked");
if not $('#myDiv').show();
$('#myDivId').val("hello world");
interpreter
code block
Write Less
browser
$("#myselect option:selected").text();
$('#myDivId').val("hello world");
html
transparent
John Resig
var myDivElement = $('#myDivId');
concatenation
none
if ( $('#myDiv').length )
node
$( )
var isVisible = $('#myDiv').is(':visible');
milliseconds
+
dot
var isHidden = $('#myDiv').is(':hidden');
<script></script>
*
$("<selector>").<method>;
CSS
selector
1000
slideToggle
if ( $(this).hasClass("protected")
dot
$('.myCssClass')
slideUp
production
viewport
$(document).ready( function( ) {/* your code here */} );
DOM (Document Object Model)
developer
slideDown
var myValue = $('#myDivId').val();
$("#x").attr("disabled","disabled");
$("#some\.id") instead of $("#some.id")
JavaScript
html
semicolon
http://www.jquery.com
method
dollar sign
jQuery
$("h1").hide();
class selector
opaque
$
HTML string
id selector
37. 3 types of things that can go into the jQuery function: $( ) - CSS Selector - ________ - and JavaScript object
HTML string
slideToggle
*
id selector
38. Unit of time measure in jQuery commands requiring a time value
$( )
milliseconds
method
$('#myDivId')
39. Name of the symbol used for the jQuery shortcut
method
dollar sign
$("h1").hide();
class selector
40. This is the jQuery object. $ ("document").ready(function () { Your Code }); This is where all of jQuery's functionality is accessed from.
if not $('#myDiv').show();
var isHidden = $('#myDiv').is(':hidden');
slideToggle
$
41. Test whether an element exists
$("#myselect option:selected").text();
dollar sign
browser
terminator
$
dot
concatenation
$(document).ready( function( ) {/* your code here */} );
slideUp
html
if not $('#myDiv').show();
transparent
$("#x").attr("disabled","disabled");
Write Less
var myValue = $('#myDivId').val();
production
method
dot
var isHidden = $('#myDiv').is(':hidden');
developer
var isVisible = $('#myDiv').is(':visible');
$('.myCssClass')
slideToggle
if ( $(this).hasClass("protected")
$("#x").removeAttr("disabled");
HTML string
viewport
CSS
$("#c").attr("checked", "checked");
DOM (Document Object Model)
<script></script>
if ( $('#myDiv').length )
code block
html
$("h1").hide();
id selector
slideDown
1000
opaque
descendent selector
$("<selector>").<method>;
$("img#dog").fadeIn(3000);
var myDivElement = $('#myDivId');
http://www.jquery.com
none
John Resig
if ( $('#myDiv').length )
milliseconds
$( )
JavaScript
*
interpreter
$("#some\.id") instead of $("#some.id")
+
selector
semicolon
$('#myDivId')
class selector
$("#c").attr("checked","");
$('#myDivId').val("hello world");
node
if ( $('#myDiv').is('.pretty') )
jQuery
42. Number of milliseconds in a second
DOM (Document Object Model)
1000
$("<selector>").<method>;
if not $('#myDiv').show();
43. Disable an element
$('#myDivId')
$("#x").attr("disabled","disabled");
var isVisible = $('#myDiv').is(':visible');
viewport
44. Shortcut for typing: jQuery( )
$( )
dollar sign
+
selector
45. Use a _____ to test that your jQuery scripts are working.
if ( $('#myDiv').is('.pretty') )
browser
slideToggle
class selector
46. One of jQuery's main strengths is that it allows you to work with the ____ without having to know everything about it.
$( )
$('#myDivId')
$("#c").attr("checked","");
DOM (Document Object Model)
47. Stuff between { } is often called a ______
developer
html
if not $('#myDiv').show();
code block
48. Get the text value of a selected option
$( )
$("#myselect option:selected").text();
DOM (Document Object Model)
var isVisible = $('#myDiv').is(':visible');
49. Get the value of an element
$("#myselect option:selected").text();
dollar sign
semicolon
dot
$("h1").hide();
var myValue = $('#myDivId').val();
HTML string
var myDivElement = $('#myDivId');
$("<selector>").<method>;
slideUp
none
$( )
$("#c").attr("checked","");
<script></script>
dot
+
Write Less
http://www.jquery.com
terminator
if ( $(this).hasClass("protected")
method
opaque
$("#x").attr("disabled","disabled");
$("#some\.id") instead of $("#some.id")
production
interpreter
developer
node
$('.myCssClass')
transparent
if ( $('#myDiv').is('.pretty') )
$('#myDivId').val("hello world");
var isVisible = $('#myDiv').is(':visible');
html
selector
$("#c").attr("checked", "checked");
id selector
$('#myDivId')
$("img#dog").fadeIn(3000);
milliseconds
JavaScript
if ( $('#myDiv').length )
html
jQuery
1000
slideDown
slideToggle
descendent selector
var isHidden = $('#myDiv').is(':hidden');
viewport
$(document).ready( function( ) {/* your code here */} );
$
CSS
browser
$("#x").removeAttr("disabled");
concatenation
*
if not $('#myDiv').show();
DOM (Document Object Model)
John Resig
var myValue = $('#myDivId').val();
code block
class selector
50. Allows you to select a grouping of elements
html
$( )
$("<selector>").<method>;
class selector
Sorry!:) No result found.
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