Thursday, 3 September 2015

jQuery Fresher Questions And Answers

51. What are the various speed options?
a) The words "slow" and "fast" as well as integers for the milliseconds
b) Only the words "slow", "fast", and "medium"
c) All of the above
d) None of the above
Ans: A
52. The speed options can be applied to which jQuery functions?
a) css and ajax
b) show and fadeIn
c) toggleCss
d) All of the above
Ans: B
53. If you want to stop your jQuery for a few milliseconds, which function do you use?
a) stop()
b) pause()
c) slowdown()
d) delay()
Ans: D
54. Which function do you reference in HTML form data?
a) value()
b) formData()
c) val()
d) None of the above
Ans: C
55. When do you use the $(this) code?
a) When an HTML element will reference its own action.
b) When an HTML element will reference its parent element's action
c) When an HTML element will reference the entire document
d) None of the above.
Ans: A
56. What does the function $(“.selector”) return?
a) An array.
b) A node list.
c) A new jQuery object.
Ans: C
57.  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.
Ans: B
58. 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()
Ans: B
59. How do you fetch the first span on the page, which has the class ‘green’?
a) $('span, .green, :first')
b) $('first .green span')
c) $('')
Ans: C
60. 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.
Ans: A

More Questions & Answers:-
Page1 Page2 Page3 Page4 Page5 Page6

No comments:

Post a Comment