Olete.in
Articles
Mock Tests
🧪 Jquery MCQ Quiz Hub
Jquery Mcq Set 2
Choose a topic to test your knowledge and improve your Jquery skills
1. Which of the following is not the feature of jQuery?
Efficient query method for finding the set of document elements
Expressive syntax for referring to elements in the document
Useful set of methods for manipulating selected elements
Powerful functional programming techniques is not used for operating on sets of elements as a group
2. Which of the following is a single global function defined in the jQuery library?
jQuery()
$()
Queryanalysis()
global()
3. Which of the following is a factory function?
$()
jQuery()
Queryanalysis()
onclick()
4. Which is the JavaScript code that asks for the set of all div elements in a document?
var divs = $(div);
var divs = jQuery("div");
var divs = $("div");
var divs = #("div");
5. Which is the method that operates on the return value of $()?
show()
css()
click()
done()
6. What does the min mean in the following JavaScript code? <script src="jquery-1.4.2.min.js"></script>
Minimised version
Miniature
Minimised parameters
Minimum value
7. Which of the following is a heavily overloaded function?
jQuery()
$()
script()
Both jQuery() and $()
8. Which of the following is an equivalent replacement of $(document).ready(f)?
jQuery(f)
$(f)
#(f)
read(f)
9. Which of the following is a utility function in jQuery?
jQuery.each()
jQuery.parseJSON()
jQuery.noConflict()
jQuery.conflict()
10. Which of the following is used for parsing JSON text?
jQuery.each()
jQuery.parseJSON()
jQuery.noConflict()
jQuery.conflict()
11. What will be the output of the following JavaScript code? <p id="demo"></p> <script> function myFunction() { var str = "Tables"; var patt1 = /tables/i; var result = str.match(patt1); document.getElementById("demo").innerHTML = result; } </script>
Tables
tables
Undefined
Error
12. What will be the output of the following JavaScript code? <script> var str = "The rain in Spain"; var patt1 = /ain/g; document.write(patt1.lastIndex); </script>
8
17
14
10
13. What will be the output of the following JavaScript code? <p id="demo"></p> <script> function myFunction() { var str = " Is th is it?"; var patt1 = /^is/m; var result = str.match(patt1); document.getElementById("demo").innerHTML = result; } </script>
IS
is
Error
Undefined
14. What will be the output of the following JavaScript code? <p id="demo"></p> <script> function myFunction() { var str = "Hellooo World!"; var patt1 = /o+/g; var result = str.match(patt1); var count=0; While(result[i]!=NULL) { If(result[I]==o) count++; } document.getElementById("demo").innerHTML = count; } </script>
4
3
1
0
15. What will be the output of the following JavaScript code? <p id="demo"></p> <script> function myFunction() { var str = "Is this his"; var patt1 = /is$/g; var result = str.match(patt1); if(result) result='true'; else result='false'; document.getElementById("demo").innerHTML = result; } </script>
true
false
error
Undefined
16. Which of the following is not a method of AJAX?
get()
getJSON()
post()
stop()
17. Correct syntax for $.post() method is ______
$.post(URL,data,callback)
$.post(URL,data)
$.post(URL,callback)
$.post(data,callback)
18. The method releases jQuery’s control of $ is ______
$.param()
$.noConflict()
each()
data()
19. In JavaScript, which one is used to finding the non-whitespace characters?
d
s
S
w
20. Which one is not regular expression object method?
test()
exec()
compile()
each()
21. Which is not a JavaScript global function?
compile()
eval()
decodeURI()
isNaN()
22. Which of the following is not window object property?
defaultStatus
closed
constructor
frames
23. Which of the following is not window object method?
blur()
close()
confirm()
unescape()
24. Which of the following is not navigator object property?
appVersion
geolocation
document
cookieEnabled
25. Which of the following is the Navigator object method?
javaEnabled()
moveBy()
scroll()
stop()
26. Which of the following is not screen object property?
width
colorDepth
pixelDepth
language
27. Which is not the method of History object?
go()
moveBy()
forward()
back()
28. Which is not the location object method?
stop()
reload()
assign()
replace()
29. Which is not the property of location object?
origin
port
host
geolocation
30. jQuery does not contain the _____________ feature.
AJAAX
AJAX
CSS manipulation
Effects and animations
31. What is the correct syntax of jQuery?
action().$(selector)
$(selector).action()
(selector)$.action()
action().(selector)$
32. In jQuery all the elements are selected by writing ______
$(this)
$(“:button”)
$(“*”)
$(“.class_name”)
33. Which of the following is not event method in jQuery?
click()
mouseenter()
mousedown()
hide()
34. hover() method is the combination of _____
mouseleave() and mouseeneter()
mousedown() and mouseenter()
mouseup() and mousedown()
mouseleave() and mousedown()
35. Which of the following is not the fade method in jQuery?
fadeTo()
fadeOn()
fadeOut()
fadeIn()
36. Which of the following is not the sliding method in jQuery?
slideToggle()
slideDown()
slideUp()
slideIn()
37. Which of the following is not the jQuery method for manipulation?
stop()
html()
text()
val()
38. The method not used to add new content is _____
after()
prepend()
before()
add()
39. Which method is not used for CSS manipulation?
toggleClass()
removeClass()
beforeClass()
css()
40. Which of the following is not a jQuery dimension method?
innerWidth()
outerHeight()
height()
css()
41. Which method is not used for traversing DOM tree?
parent()
parentsUntil()
parents()
after()
42. Which method is not for traversing DOM tree sideways?
parent()
siblings()
prev()
nextAll()
43. Which method is not used for filtering in jQuery?
next()
first()
eq()
last()
44. AJAX is not used in ______
Gmail
Youtube
Facebook
Yahoo
45. External scripts can’t take the tag ____
&lt;script&gt;
&lt;form&gt;
&lt;h1&gt;
&lt;title&gt;
46. typeof “null” in JavaScript is _______
number
string
object
Undefined
47. Arrays in JavaScript are written within _____
{}
[].
“”
()
48. Negative positions for string do not work in ______
Internet Explorer 8
Chrome
Safari
Opera
49. For converting string to array we can use ______ method.
charAt()
charCodeAt()
split()
toLowerCase()
50. The integers in JavaScript are precise up to ______
12 digits
10 digits
23 digits
15 digits
Submit