JQuery
(prepend) and (prependTo) do the same task with the only difference being that the prepended elements are added at the beginning of the target elements content instead of the end?
Partially True
True
False
(replaceAll) and (replaceWith) doesn’t perform the same task?
True
False
(detach) is like (remove), but it keeps the stored data and events associated with the matched elements?
True
False
Partially True
Which jQuery method should be used to deal with name conflicts?
NoNameConflict()
NoConflict()
None of the above.
The (:first) pseudo-class is equivalent to (:eq(0))
True
False
While (:first) matches only a single element, the (:first-child) selector can match more than one, one for each parent. This is equivalent to (:nth-child(1))
Partially True
True
False
We can apply hover effect by using (.toggle)?
True
False
We can switch slide animation case by using (.toggleslide)?
True
False
(:parent) This is the inverse of (:empty)?
True
False
:has(span.a1) has different result than :has(span[class=a1])?
True
False
(:contains) it checks for text and markups inside the parent?
True
False
Partially True
$('.outer').filter('span'); //returns the outer?
True
False
$('.outer').has('span'); //returns the span?
True
False
.find() Gets the ancestors of each element in the current set of matched elements, filtered by a selector?
True
False
(prependTo) perform the same task like (insertBefore)?
True
False
The .after() and .insertAfter() methods perform the same task with the same code syntax sequence?
Partially True
True
False
Which of the following jQuery method gets a set of elements containing the unique previous siblings of each of the matched set of elements?
Parents(selector)
Prev(selector)
Siblings(selector)
None of the above.
Which of the following jQuery method returns the top and left position of an element relative to its offset parent?
Offset()
OffsetParent()
Position()
None of the above.
Which of the following jQuery method stops the bubbling of an event to parent elements?
PreventDefault()
StopImmediatePropagation()
StopPropagation()
None of the above.
Which built-in method combines the text of two strings and returns a new string?
Append()
Concat()
Attach()
None of the above.
Which of the following jQuery method reduce the set of matched elements to a single element?
IsEqual(index)
Eq(index)
CheckEqual(selector)
None of the above.
Which of the following jQuery method sets attributes of an element?
Attr(name, value)
SetAttr(name, value)
SetAttributes(name, value)
None of the above.
Which of the following jQuery method selects a subset of the matched elements?
Subset(selector)
GetSubset(selector)
Slice(selector)
None of the above.
Which of the following jQuery method returns a jQuery collection with the positioned parent of the first matched element?
OffsetParent(selector)
Offset(selector)
Parent(selector)
None of the above.
Which of the following jQuery method reverts the most recent 'destructive' operation, changing the set of matched elements to its previous state?
Revert()
End()
Undo()
None of the above.
Which of the following jQuery method removes all child nodes from the set of matched elements?
Empty()
Delete()
Remove(expr)
None of the above.
Which of the following jQuery method prevents the browser from executing the default action?
PreventDefault()
StopImmediatePropagation()
StopPropagation()
None of the above.
Add elements to the set of matched elements by using:
.addElement()
.add()
Add the previous set of elements on the stack to the current set.
.andSelf()
.andPrevious()
For each element in the set, get the first element that matches the selector by testing the element itself.
.closest()
.close()
The jQuery animate() method can be used to animate any CSS property?
All properties except the shorthand properties
Yes
Only properties containing numeric values
Which jQuery method is used to let selected elements invisible?
Display(none)
Hidden()
Visible(false)
Hide()
Which jQuery method is used to switch between adding/removing one or more classes from selected elements?
Switch()
SwitchClass()
ToggleClass()
AltClass()
Which jQuery method is used to remove selected elements?
Detach()
Remove()
Both methods can be used
Use "=+" or "=-" for relative animations.
True
False
$('#element').animate({margin-left:800},2000) is equivalent to: $('#element').animate({"marginLeft":800},2000)
True
Invalid syntax for both
False
$("button").click(function(){$("div").animate({height: 'hide'});});
Valid syntax
Invalid syntax
By JQuery, A function to call once the animation is finished:
Finished: function()
Step: function
Complete: function()
None of above
$('#bird').animate({ left: 700 }, { duration: 2000}); $('#bird').animate({ top: 300 }, { duration: 2000});
Animation runs all at once so full duration is 2 seconds
Animation runs in sequence so full duration is 4 seconds
Invalid syntax
{"name":"JQuery", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"q1","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
More Quizzes
What do you want for dinner this week? Feel free to choose the same place more than once!
3228
Qui suis je ?
3234
Copyright and Fair Use
320
MULTILINGUALISM
8427
Math NO 5.1.2.4
520
Can You Survive A Bunch of Random Stuff??
740
Da li je EESTEC prava opcija za vas?
520
Anniversary Scavenger Hunt
33160
A Wrinkle in Time
320
Networking
10523
I love you more quiz
19100
German Beginner's 101
320