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