Olete.in
Articles
Mock Tests
🧪 Jquery MCQ Quiz Hub
Jquery Mcq Set 3
Choose a topic to test your knowledge and improve your Jquery skills
1. Typeof “infinity” will return ______
string
number
object
undefined
2. By default JavaScript displays the numbers as ______
base 16
base 10
base 6
base 2
3. Math.random() returns _______
random number between 0 and 1
random number between 1 and 10
random number between 1 and 100
random number between 0 and 10
4. What is the Boolean value of “” in JavaScript?
true
on
off
false
5. Which jQuery method is used to hide selected elements?
hidden()
hide()
visible(false)
display(none)
6. Look at the following jQuery selector: $("div#intro .head). What does it select?
The first element with id="head" inside any div element with class="intro"
All elements with class="head" inside the first div element with id="intro"
All div elements with id="intro" or class="head"
None
7. $.foo() is equivalent to
javascript.foo()
document.foo()
jQuery.foo()
none of the above
8. Which built-in method returns the character at the specified index?
characterAt()
getCharAt()
charAt()
none of the above
9. Using ____ function, we can hold or release the execution of jQuery's ready event.
jQuery.holdReady()
jQuery.ready()
jQuery.hold()
jQuery.holdready()
10. The ¦¦¦. method is like offset(), except that it is a getter only and it returns element positions relative to their offset parent, rather to the document as a whole.
width()
position()
offsetparent()
setparent()
11. jQuery code to set the background color of all span elements to blue?
$(span").style(background-color","blue");
$(span").manipulate(background-color","blue");
$(span").css(background-color","blue");
$(span").layout(background-color","blue");
12. What does the min mean?
Minimised version
Miniature
Minimised parameters
Minimum value
13. What is the correct jQuery code for making all div elements 100 pixels high?
$(div").height="100
$(div").height(100)
$(div").yPos(100)
none of the above
14. Which of the following jQuery method checks the current selection against an expression?
getIs( selector )
is( selector )
checkIs( selector )
none of the above
15. To deal with cookies in jQuery we have to use ______ cookie plugin
Dough
Session
Dazzler
None of these
16. Select all elements that contain the specified text.
:contains()
:selects()
Both
none of the above
17. Is jQuery a library for client scripting or server scripting?
Server scripting
Client scripting
Both of these
none of the above
18. The______ method is used to represent an array or an object in serialize manner.
size()
length
param()
None of these
19. Which sign does jQuery use as a shortcut for jQuery?
$ sign
% sign
? Sign
none of the above
20. jQuery method is used to perform an asynchronous HTTP request?
jQuery.ajaxAsync()
jQuery.ajaxSetup()
jQuery.ajax()
none of the above
21. With jQuery, look at the following selector: $("div.intro). What does it select?
The first div element with class="intro"
The first div element with id="intro"
All div elements with class="intro"
All div elements with id="intro"
22. In which year jQuery developed?
2001
2004
2005
2006
23. Which of the following is/are the sources of Content Distribution Network(CDN) for jQuery.
jQuery CDN
Microsoft CDN
Google CDN
All of the above
24. What are the methods used to provide effects?
Show()
Hide()
Toggle()
All of these
25. Get the value of a style property for the first element in the set of matched elements.
.style()
.css()
Both a and b
none of the above
26. ----- takes a selector as its argument and returns true if at least one of the selected elements also matches the specified selector.
is()
index()
each()
map()
27. Which jQuery method is used to switch between adding/removing one or more classes (for CSS) from selected elements?
toggleClass()
switch()
altClass()
switchClass()
28. Which of the following is an overloaded function?
jQuery()
$()
script()
jQuery() and $()
29. JQuery code to set the background color of all “<span>” in blue?
$(&quot;span&quot;).style(&quot;background-color&quot;, &quot;blue&quot;);
$(&quot;span&quot;).css(&quot;background-color&quot;, &quot;blue&quot;);
jQuery(&quot;span&quot;).style(&quot;background-color&quot;, &quot;blue&quot;);
none of the above
30. Which of the following replaces $(document).ready(f)?
jQuery(f)
$(f)
#(f)
none of the above
31. $("span.foo"). What does it select?
All span elements with id = “foo”
all span elements with class = “foo”
The first span element with id = “foo”
The first span element with class = “foo”
32. Which jQuery method to set one or more style properties for selected elements?
css()
html()
Acceptance platform
asStub()
33. What are jQuery’s features?
Useful collection of methods for manipulating selected items
Efficient query method to find all document elements
Syntax for referencing document elements
All the answers are true
34. The ______ method is used to make an asynchronous HTTP request?
jQuery.ajaxAsync()
jQuery.ajax()
jQuery.async()
none of the above
35. $("div#frame1 .bd1") What does it select?
The first element with id = “bd1” in any div element with class = “frame1
The first element with class = “bd1” in the first element div with id = “frame1”
All elements with class = “bd1” in the first element div with id = “frame1”
none of the above
Submit