Time remaining
:
:
Test Status
JSJQUERYTEST10
Ques 1 :
How does JavaScript store dates in a date object?
(A) The number of milliseconds since January 1st, 1970
(B) The number of days since January 1st, 1900
(C) The number of seconds since Netscape's public stock offering.
(D) None of the above
Ques 2 :
What is the output of this code typeof null
(A) Number
(B) String
(C) Object
(D) NaN
Ques 3 :
<script type="text/javascript">
var s = "9123456 or 80000?";
var pattern = /\d{4}/;
var output = s.match(pattern);
document.write(output);
</script>
(A) 9123
(B) 91234
(C) 80000
(D) None of the above
Ques 4 :
What is mean by "this" keyword in javascript?
(A) It refers current object
(B) It referes previous object
(C) It is variable which contains value
(D) None of the above
Ques 5 :
Which function do you reference in HTML form data?
(A) value()
(B) formData()
(C) val()
(D) None of the above
Ques 6 :
Why do we usually add the stop() method before calling animate()?
(A) stop() halts the execution of the scripts on the page until the animation has finished.
(B) stop() ends any currently running animations on the element, and prevents conflicts and pile-ups.
(C) We tell jQuery that the animation has to be stopped at some point.
Ques 7 :
What is the difference between .width() and .outerWidth()?
(A) The methods are basically the same. The only difference is that .width() returns a number, whereas outerWidth() a string.
(B) width() returns the computed width of the element, while outerWidth() returns the width plus all the margins and paddings.
(C) No difference. width() is a shorthand alias for outerWidth()
Ques 8 :
How do you fetch the first span on the page, which has the class "green"
(A) $('span, .green, :first')
(B) $('first .green span')
(C) $('span.green:first')
(D) null
Ques 9 :
What does the function $(".selector") return?
(A) An array.
(B) A node list.
(C) A new jQuery object.
(D) null
Ques 10 :
What does the $('#myDiv').hover() method do?
(A) It binds the functions you pass as parameters, to the mouseenter and mouseleave events.
(B) Converts the element upon which it was called, into a hoverable menu.
Ques 11 :
Which of the following type of variable is visible everywhere in your JavaScript code?
(A) global variable
(B) local variable
(C) Both of the above.
(D) None of the above.
Ques 12 :
Which of the following is a valid type of function javascript supports?
(A) named function
(B) anonymous function
(C) Both of the above.
(D) None of the above.
Ques 13 :
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 14 :
Which of the following jQuery method remove all or the specified class(es) from the set of matched elements?
(A) removeClass( class )
(B) removeStyleClass( class )
(C) removeCSSClass( class )
(D) None of the above.
Ques 15 :
Which of the following jQuery method removes elements matching the specified selector from the set of matched elements?
(A) getNotEquals( selector )
(B) isNotEquals( selector )
(C) not(selector)
(D) None of the above.
Ques 16 :
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 17 :
Which of the following jQuery method checks if event.stopPropagation() was ever called on this event object?
(A) isDefaultPrevented( )
(B) isPropagationStopped( )
(C) isImmediatePropagationStopped( )
(D) None of the above.
Ques 18 :
Which built-in method returns the calling string value converted to upper case?
(A) toUpperCase()
(B) toUpper()
(C) changeCase(case)
(D) None of the above.
Ques 19 :
Which of these is NOT a valid comment in JavaScript?
(A) // This is a comment
(B) /* This is a comment. */
(C) /* This is a comment
(D) <!-- This is a comment. -->
Ques 20 :
In JavaScript, we can keep a reference to the context outside a function by assigning it to a variable: var self = this. In CoffeeScript, we use:
(A) self = this printScope -> console.log self
(B) printScope => console.log @
(C) printScope => console.log this
(D) All of the above
Submit Answer
Don't Refresh the Page !! ...