Time remaining
:
:
Test Status
JSJQUERYRANDOMTEST
Ques 1 :
What are the :odd and :even filters?
(A) They allow you to determine if a number is odd or even.
(B) They allow you to determine if a specific element is in an odd or even position.
(C) None of the above
Ques 2 :
Which JQuery method is used to set one or more style properties for selected elements?
(A) style()
(B) html()
(C) css()
Ques 3 :
Which JQuery method is used to switch between adding/removing one or more classes (for CSS) from selected elements?
(A) switchClass()
(B) switch()
(C) toggleClass()
(D) altClass()
Ques 4 :
What is the use of a return statement in a function?
(A) Returns the value and continues executing rest of the statements
(B) Returns the value and stops the program
(C) Returns the value and stops executing the function
(D) Stops executing the function and returns the value
Ques 5 :
What is the output of the following code snippet?
var str = "Apple, Banana, Kiwi";
var res = str.substring(7,13);
(A) Banana
(B) Apple
(C) Kiwi
(D) Banana, Kiwi
Ques 6 :
When referencing an HTML element preceded by a # (pound or hash), what javascript function is this equivalent to?
(A) getElementById
(B) getElementByClassName
(C) getElementByTagName
(D) None of the above
Ques 7 :
What are variables used for in JavaScript Programs?
(A) Storing numbers, dates, or other values
(B) Varying randomly
(C) Causing high-school algebra flashbacks
(D) None of the above
Ques 8 :
The syntax of Eval is ________________
(A) [objectName.]eval(numeriC.
(B) [objectName.]eval(string)
(C) [EvalName.]eval(string)
(D) [EvalName.]eval(numeriC.
Ques 9 :
Which of the following jQuery method gets a set of elements containing the unique previous siblings of each of the matched set of elements?
(A) parents( selector )
(B) prev( selector)
(C) siblings( selector )
(D) None of the above.
Ques 10 :
Which of the following event fires when the form element loses the focus: <button>, <input>, <select>, <textarea>?
(A) onfocus
(B) onblur
(C) onclick
(D) ondblclick
Ques 11 :
The JQuery html() method works for both HTML and XML documents
(A) True
(B) False
Ques 12 :
__ method returns the number of milliseconds in a date string.
(A) getTime()
(B) Date.UTC()
(C) Date.parse()
(D) None of the above
Ques 13 :
To select all the elements in the page which symbol do we have to used?
(A) #
(B) !
(C) $
(D) *
Ques 14 :
Which JQuery method is used to hide selected elements?
(A) hidden()
(B) display(none)
(C) visible(false)
(D) hide()
Ques 15 :
The __ statement breaks the loop and continues executing the code after the loop.
(A) break
(B) continue
(C) return
(D) None of the above
Ques 16 :
Which of the following method is used to hide the selected elements?
(A) visible(false)
(B) hidden()
(C) display(none)
(D) hide()
Ques 17 :
JQuery donā??t have DOM traversing capability.
(A) True
(B) False
Ques 18 :
What is the output of this code typeof null
(A) Number
(B) String
(C) Object
(D) NaN
Ques 19 :
Which of the following JQuery selector select elements whose css class is some-class?
(A) $('some-class')
(B) $('#some-class')
(C) $('.some-class')
(D) None of the above.
Ques 20 :
What is the output of the following code snippet?
var a = [1,2,3,4,5]; a.slice(0,3);
(A) [1,2,3]
(B) [4,5]
(C) [1,2,3,4]
(D) [1,2,3,4,5]
Submit Answer
Don't Refresh the Page !! ...