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