Deck 12: Introduction to Jquery

Full screen (f)
exit full mode
Question
Each jQuery method serves a single function, allowing you to either look up a value or set that value, but not both.
Use Space or
up arrow
down arrow
to flip the card.
Question
jQuery is a cross-browser library.
Question
Both private and free, publicly available JavaScript libraries are in common use on the web today.
Question
Every jQuery statement begins with which character?

A)$
B).
C)@
D)#
Question
The ____ method selects the child elements of each element matched by the main selector.

A) next()
B)last()
C)previous()
D) children()
Question
Why would you link to a jQuery file on a CDN?

A)It's the only way to ensure that you're using the most current version.
B)It can provide an improved user experience.
C)It's cheaper than linking to a file on your own web server.
D)It's the only way to include the library in your web documents.
Question
The ____ method changes the selection to the sibling element immediately following each selected element.

A) next()
B)last()
C)previous()
D) children()
Question
Which of the following is NOT an acceptable value for referencing the element(s)on which a jQuery statement operates?

A)a variable
B)a CSS selector
C)a JavaScript method
D)the this keyword
Question
jQuery 2.x supports IE 6, 7, and 8.
Question
You can include the jQuery library by specifying the location in your HTML document of a jQuery file on a publicly accessible server.
Question
To select elements in jQuery, you specify a(n)____ .

A)CSS selector
B)getElementById() method
C)array
D)JSON string
Question
Some jQuery animation methods allow you to specify the keywords ____ to set the speed of the animation.

A) slow and fast
B) tortoise  and  hare
C) stop  and  go
D) walk  and  run
Question
jQuery includes a(n)____ method that allows jQuery code to coexist with code for another library that uses the same alias.

A)alias()
B) sharedAlias()
C)conflict()
D) noConflict()
Question
In a jQuery statement, a reference to the elements on which the statement operates is contained in ____.

A){ }
B)[ ]
C)< >
D)( )
Question
Which character do you use to append a jQuery method to code that selects elements?

A):
B).
C)-
D)=
Question
The ____ method retrieves the value of the first element in the selection, or sets the value of the selected elements.

A) height()
B)addClass()
C)width()
D) val()
Question
Which jQuery method narrows the group of selected elements to the first element?

A)previous()
B)next()
C)first()
D) last()
Question
What is the extension of the file that contains the jQuery library?

A).html
B).css
C).js
D).jq
Question
Which jQuery method narrows the group of selected elements to the last element?

A)previous()
B)next()
C)first()
D) last()
Question
The ____ method adds specified class name(s)to the selection.

A) height()
B)addClass()
C)width()
D) val()
Question
All jQuery animation methods can take a value in __________ as an argument.
Question
The jQuery __________ event specifies code to execute then the pointer enters an element, as well as code to execute when the pointer leaves the element.
Question
Match between columns
A jQuery method that narrows the group of selected elements to the first element.
jQuery
A jQuery method that narrows the group of selected elements to the first element.
library
A jQuery method that narrows the group of selected elements to the first element.
alias
A jQuery method that narrows the group of selected elements to the first element.
plain JavaScript
A jQuery method that narrows the group of selected elements to the first element.
target
A jQuery method that narrows the group of selected elements to the first element.
fadeOut()
A jQuery method that narrows the group of selected elements to the first element.
slideDown()
A jQuery method that narrows the group of selected elements to the first element.
first()
A jQuery method that narrows the group of selected elements to the first element.
click()
A jQuery method that narrows the group of selected elements to the first element.
CDN
An alternative name
jQuery
An alternative name
library
An alternative name
alias
An alternative name
plain JavaScript
An alternative name
target
An alternative name
fadeOut()
An alternative name
slideDown()
An alternative name
first()
An alternative name
click()
An alternative name
CDN
A jQuery method that hides elements by changing their opacity and display values
jQuery
A jQuery method that hides elements by changing their opacity and display values
library
A jQuery method that hides elements by changing their opacity and display values
alias
A jQuery method that hides elements by changing their opacity and display values
plain JavaScript
A jQuery method that hides elements by changing their opacity and display values
target
A jQuery method that hides elements by changing their opacity and display values
fadeOut()
A jQuery method that hides elements by changing their opacity and display values
slideDown()
A jQuery method that hides elements by changing their opacity and display values
first()
A jQuery method that hides elements by changing their opacity and display values
click()
A jQuery method that hides elements by changing their opacity and display values
CDN
A jQuery method that displays elements by changing their height from 0 to the full value
jQuery
A jQuery method that displays elements by changing their height from 0 to the full value
library
A jQuery method that displays elements by changing their height from 0 to the full value
alias
A jQuery method that displays elements by changing their height from 0 to the full value
plain JavaScript
A jQuery method that displays elements by changing their height from 0 to the full value
target
A jQuery method that displays elements by changing their height from 0 to the full value
fadeOut()
A jQuery method that displays elements by changing their height from 0 to the full value
slideDown()
A jQuery method that displays elements by changing their height from 0 to the full value
first()
A jQuery method that displays elements by changing their height from 0 to the full value
click()
A jQuery method that displays elements by changing their height from 0 to the full value
CDN
A server you can link to to include the jQuery library in your project
jQuery
A server you can link to to include the jQuery library in your project
library
A server you can link to to include the jQuery library in your project
alias
A server you can link to to include the jQuery library in your project
plain JavaScript
A server you can link to to include the jQuery library in your project
target
A server you can link to to include the jQuery library in your project
fadeOut()
A server you can link to to include the jQuery library in your project
slideDown()
A server you can link to to include the jQuery library in your project
first()
A server you can link to to include the jQuery library in your project
click()
A server you can link to to include the jQuery library in your project
CDN
A library that enables developers to implement many common JavaScript tasks with minimal code
jQuery
A library that enables developers to implement many common JavaScript tasks with minimal code
library
A library that enables developers to implement many common JavaScript tasks with minimal code
alias
A library that enables developers to implement many common JavaScript tasks with minimal code
plain JavaScript
A library that enables developers to implement many common JavaScript tasks with minimal code
target
A library that enables developers to implement many common JavaScript tasks with minimal code
fadeOut()
A library that enables developers to implement many common JavaScript tasks with minimal code
slideDown()
A library that enables developers to implement many common JavaScript tasks with minimal code
first()
A library that enables developers to implement many common JavaScript tasks with minimal code
click()
A library that enables developers to implement many common JavaScript tasks with minimal code
CDN
Property whose value is the target element on which an event was fired
jQuery
Property whose value is the target element on which an event was fired
library
Property whose value is the target element on which an event was fired
alias
Property whose value is the target element on which an event was fired
plain JavaScript
Property whose value is the target element on which an event was fired
target
Property whose value is the target element on which an event was fired
fadeOut()
Property whose value is the target element on which an event was fired
slideDown()
Property whose value is the target element on which an event was fired
first()
Property whose value is the target element on which an event was fired
click()
Property whose value is the target element on which an event was fired
CDN
A jQuery method that specifies code to execute on a click event
jQuery
A jQuery method that specifies code to execute on a click event
library
A jQuery method that specifies code to execute on a click event
alias
A jQuery method that specifies code to execute on a click event
plain JavaScript
A jQuery method that specifies code to execute on a click event
target
A jQuery method that specifies code to execute on a click event
fadeOut()
A jQuery method that specifies code to execute on a click event
slideDown()
A jQuery method that specifies code to execute on a click event
first()
A jQuery method that specifies code to execute on a click event
click()
A jQuery method that specifies code to execute on a click event
CDN
JavaScript without jQuery
jQuery
JavaScript without jQuery
library
JavaScript without jQuery
alias
JavaScript without jQuery
plain JavaScript
JavaScript without jQuery
target
JavaScript without jQuery
fadeOut()
JavaScript without jQuery
slideDown()
JavaScript without jQuery
first()
JavaScript without jQuery
click()
JavaScript without jQuery
CDN
jQuery
library
alias
plain JavaScript
target
fadeOut()
slideDown()
first()
click()
CDN
Question
Explain why libraries are useful in JavaScript.
Question
Servers known as __________ are optimized for quick delivery of files across the globe.
Question
What action does a jQuery event method perform if it is called with empty parentheses?

A)It fires the indicated event.
B)It removes any matching event listener on the selection.
C)It creates an event listener on the window object.
D)It does nothing.
Question
What language is the jQuery library written in?

A)PHP
B)HTML
C)JavaScript
D)CSS
Question
Which is the correct syntax to create a function that uses jQuery?

A)$.function name() {}
B)$(name()).function {}
C)$(function) name() {}
D)function name() {}
Question
Is jQuery a different language from JavaScript? Explain.
Question
In what situations might you be better off not using jQuery?
Question
Explain the relationship between the syntax for selecting an element in jQuery and the querySelectorAll()method.
Question
Explain the different roles of an event method based on whether the parentheses are empty.
Question
The jQuery __________ method changes an element's display value to its default value.
Question
Describe two differences between jQuery 1.x and jQuery 2.x?.
Question
Which is an advantage of using jQuery animation methods rather than coding animations yourself in JavaScript?

A)Coding the animations yourself might require writing and debugging many lines of JavaScript.
B)The jQuery animation effects cannot be created with plain JavaScript.
C)You cannot select certain web page elements without using jQuery.
D)There is no particular advantage to using one or the other.
Question
What are the three parts of an event listener created with jQuery?
Question
Which jQuery method do you use to add a class name to one ore more selected elements?

A)html()
B)removeClass()
C) addClass()
D)clone()
Question
When your HTML document links to both the jQuery library and another JavaScript file, which order should the links be in? Why?
Question
The jQuery __________ method changes an element's display value to none .
Question
What is an advantage of using jQuery to create a feature such as a drop-down menu, rather than writing plain JavaScript code for this feature?
Question
Provide a jQuery statement that shows all children of h2 elements.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/41
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 12: Introduction to Jquery
1
Each jQuery method serves a single function, allowing you to either look up a value or set that value, but not both.
False
2
jQuery is a cross-browser library.
True
3
Both private and free, publicly available JavaScript libraries are in common use on the web today.
True
4
Every jQuery statement begins with which character?

A)$
B).
C)@
D)#
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
5
The ____ method selects the child elements of each element matched by the main selector.

A) next()
B)last()
C)previous()
D) children()
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
6
Why would you link to a jQuery file on a CDN?

A)It's the only way to ensure that you're using the most current version.
B)It can provide an improved user experience.
C)It's cheaper than linking to a file on your own web server.
D)It's the only way to include the library in your web documents.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
7
The ____ method changes the selection to the sibling element immediately following each selected element.

A) next()
B)last()
C)previous()
D) children()
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
8
Which of the following is NOT an acceptable value for referencing the element(s)on which a jQuery statement operates?

A)a variable
B)a CSS selector
C)a JavaScript method
D)the this keyword
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
9
jQuery 2.x supports IE 6, 7, and 8.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
10
You can include the jQuery library by specifying the location in your HTML document of a jQuery file on a publicly accessible server.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
11
To select elements in jQuery, you specify a(n)____ .

A)CSS selector
B)getElementById() method
C)array
D)JSON string
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
12
Some jQuery animation methods allow you to specify the keywords ____ to set the speed of the animation.

A) slow and fast
B) tortoise  and  hare
C) stop  and  go
D) walk  and  run
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
13
jQuery includes a(n)____ method that allows jQuery code to coexist with code for another library that uses the same alias.

A)alias()
B) sharedAlias()
C)conflict()
D) noConflict()
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
14
In a jQuery statement, a reference to the elements on which the statement operates is contained in ____.

A){ }
B)[ ]
C)< >
D)( )
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
15
Which character do you use to append a jQuery method to code that selects elements?

A):
B).
C)-
D)=
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
16
The ____ method retrieves the value of the first element in the selection, or sets the value of the selected elements.

A) height()
B)addClass()
C)width()
D) val()
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
17
Which jQuery method narrows the group of selected elements to the first element?

A)previous()
B)next()
C)first()
D) last()
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
18
What is the extension of the file that contains the jQuery library?

A).html
B).css
C).js
D).jq
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
19
Which jQuery method narrows the group of selected elements to the last element?

A)previous()
B)next()
C)first()
D) last()
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
20
The ____ method adds specified class name(s)to the selection.

A) height()
B)addClass()
C)width()
D) val()
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
21
All jQuery animation methods can take a value in __________ as an argument.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
22
The jQuery __________ event specifies code to execute then the pointer enters an element, as well as code to execute when the pointer leaves the element.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
23
Match between columns
A jQuery method that narrows the group of selected elements to the first element.
jQuery
A jQuery method that narrows the group of selected elements to the first element.
library
A jQuery method that narrows the group of selected elements to the first element.
alias
A jQuery method that narrows the group of selected elements to the first element.
plain JavaScript
A jQuery method that narrows the group of selected elements to the first element.
target
A jQuery method that narrows the group of selected elements to the first element.
fadeOut()
A jQuery method that narrows the group of selected elements to the first element.
slideDown()
A jQuery method that narrows the group of selected elements to the first element.
first()
A jQuery method that narrows the group of selected elements to the first element.
click()
A jQuery method that narrows the group of selected elements to the first element.
CDN
An alternative name
jQuery
An alternative name
library
An alternative name
alias
An alternative name
plain JavaScript
An alternative name
target
An alternative name
fadeOut()
An alternative name
slideDown()
An alternative name
first()
An alternative name
click()
An alternative name
CDN
A jQuery method that hides elements by changing their opacity and display values
jQuery
A jQuery method that hides elements by changing their opacity and display values
library
A jQuery method that hides elements by changing their opacity and display values
alias
A jQuery method that hides elements by changing their opacity and display values
plain JavaScript
A jQuery method that hides elements by changing their opacity and display values
target
A jQuery method that hides elements by changing their opacity and display values
fadeOut()
A jQuery method that hides elements by changing their opacity and display values
slideDown()
A jQuery method that hides elements by changing their opacity and display values
first()
A jQuery method that hides elements by changing their opacity and display values
click()
A jQuery method that hides elements by changing their opacity and display values
CDN
A jQuery method that displays elements by changing their height from 0 to the full value
jQuery
A jQuery method that displays elements by changing their height from 0 to the full value
library
A jQuery method that displays elements by changing their height from 0 to the full value
alias
A jQuery method that displays elements by changing their height from 0 to the full value
plain JavaScript
A jQuery method that displays elements by changing their height from 0 to the full value
target
A jQuery method that displays elements by changing their height from 0 to the full value
fadeOut()
A jQuery method that displays elements by changing their height from 0 to the full value
slideDown()
A jQuery method that displays elements by changing their height from 0 to the full value
first()
A jQuery method that displays elements by changing their height from 0 to the full value
click()
A jQuery method that displays elements by changing their height from 0 to the full value
CDN
A server you can link to to include the jQuery library in your project
jQuery
A server you can link to to include the jQuery library in your project
library
A server you can link to to include the jQuery library in your project
alias
A server you can link to to include the jQuery library in your project
plain JavaScript
A server you can link to to include the jQuery library in your project
target
A server you can link to to include the jQuery library in your project
fadeOut()
A server you can link to to include the jQuery library in your project
slideDown()
A server you can link to to include the jQuery library in your project
first()
A server you can link to to include the jQuery library in your project
click()
A server you can link to to include the jQuery library in your project
CDN
A library that enables developers to implement many common JavaScript tasks with minimal code
jQuery
A library that enables developers to implement many common JavaScript tasks with minimal code
library
A library that enables developers to implement many common JavaScript tasks with minimal code
alias
A library that enables developers to implement many common JavaScript tasks with minimal code
plain JavaScript
A library that enables developers to implement many common JavaScript tasks with minimal code
target
A library that enables developers to implement many common JavaScript tasks with minimal code
fadeOut()
A library that enables developers to implement many common JavaScript tasks with minimal code
slideDown()
A library that enables developers to implement many common JavaScript tasks with minimal code
first()
A library that enables developers to implement many common JavaScript tasks with minimal code
click()
A library that enables developers to implement many common JavaScript tasks with minimal code
CDN
Property whose value is the target element on which an event was fired
jQuery
Property whose value is the target element on which an event was fired
library
Property whose value is the target element on which an event was fired
alias
Property whose value is the target element on which an event was fired
plain JavaScript
Property whose value is the target element on which an event was fired
target
Property whose value is the target element on which an event was fired
fadeOut()
Property whose value is the target element on which an event was fired
slideDown()
Property whose value is the target element on which an event was fired
first()
Property whose value is the target element on which an event was fired
click()
Property whose value is the target element on which an event was fired
CDN
A jQuery method that specifies code to execute on a click event
jQuery
A jQuery method that specifies code to execute on a click event
library
A jQuery method that specifies code to execute on a click event
alias
A jQuery method that specifies code to execute on a click event
plain JavaScript
A jQuery method that specifies code to execute on a click event
target
A jQuery method that specifies code to execute on a click event
fadeOut()
A jQuery method that specifies code to execute on a click event
slideDown()
A jQuery method that specifies code to execute on a click event
first()
A jQuery method that specifies code to execute on a click event
click()
A jQuery method that specifies code to execute on a click event
CDN
JavaScript without jQuery
jQuery
JavaScript without jQuery
library
JavaScript without jQuery
alias
JavaScript without jQuery
plain JavaScript
JavaScript without jQuery
target
JavaScript without jQuery
fadeOut()
JavaScript without jQuery
slideDown()
JavaScript without jQuery
first()
JavaScript without jQuery
click()
JavaScript without jQuery
CDN
jQuery
library
alias
plain JavaScript
target
fadeOut()
slideDown()
first()
click()
CDN
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
24
Explain why libraries are useful in JavaScript.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
25
Servers known as __________ are optimized for quick delivery of files across the globe.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
26
What action does a jQuery event method perform if it is called with empty parentheses?

A)It fires the indicated event.
B)It removes any matching event listener on the selection.
C)It creates an event listener on the window object.
D)It does nothing.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
27
What language is the jQuery library written in?

A)PHP
B)HTML
C)JavaScript
D)CSS
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
28
Which is the correct syntax to create a function that uses jQuery?

A)$.function name() {}
B)$(name()).function {}
C)$(function) name() {}
D)function name() {}
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
29
Is jQuery a different language from JavaScript? Explain.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
30
In what situations might you be better off not using jQuery?
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
31
Explain the relationship between the syntax for selecting an element in jQuery and the querySelectorAll()method.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
32
Explain the different roles of an event method based on whether the parentheses are empty.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
33
The jQuery __________ method changes an element's display value to its default value.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
34
Describe two differences between jQuery 1.x and jQuery 2.x?.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
35
Which is an advantage of using jQuery animation methods rather than coding animations yourself in JavaScript?

A)Coding the animations yourself might require writing and debugging many lines of JavaScript.
B)The jQuery animation effects cannot be created with plain JavaScript.
C)You cannot select certain web page elements without using jQuery.
D)There is no particular advantage to using one or the other.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
36
What are the three parts of an event listener created with jQuery?
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
37
Which jQuery method do you use to add a class name to one ore more selected elements?

A)html()
B)removeClass()
C) addClass()
D)clone()
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
38
When your HTML document links to both the jQuery library and another JavaScript file, which order should the links be in? Why?
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
39
The jQuery __________ method changes an element's display value to none .
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
40
What is an advantage of using jQuery to create a feature such as a drop-down menu, rather than writing plain JavaScript code for this feature?
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
41
Provide a jQuery statement that shows all children of h2 elements.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 41 flashcards in this deck.