Jquery(Computer Science ) Questions and Answers

Question 1. The jQuery stop() method is used to stop an animation or effect before ____________
  1.    The Text is shown normal.
  2.    it is finished
  3.    None of the above
Explanation:-
Answer: Option B. -> it is finished

Question 2. Which of the following is selected by $('#bar')?
Explanation:-
Answer: Option B. -> it is finished

Question 3. JQuery provides several methods such as filter(), first(), last(), eq(), slice(), has(), not(), etc
  1.    False
  2.    True
Explanation:-
Answer: Option B. -> True

Question 4. Given the following, what would $('
  1.    google
  2.    bar
  3.    div
  4.    undefined
Explanation:-
Answer: Option A. -> google

Question 5. Which of the following ways is the correct Syntax of parent() method in JQuery ?
  1.    $("span").child();
  2.    $("span").parent();
  3.    $("span").parentofchild();
  4.    All of above
Explanation:-
Answer: Option B. -> $("span").parent();

Question 6. Which of the following is the correct syntax of toggle() effects in JQuery?
  1.    $("button").click(function(){ $("p").toggle(); });
  2.    .("p").toggle();
  3.    None of the above
Explanation:-
Answer: Option A. -> $("button").click(function(){ $("p").toggle(); });

Question 7. You can also toggle between hiding and showing an element with the ______?
  1.    Animation
  2.    Picture
  3.    toggle() method
Explanation:-
Answer: Option C. -> toggle() method

Question 8. The optional callback parameter is a function to be executed after the hide() or show() ____________
  1.    Normal
  2.    method completes
  3.    None of the above
Explanation:-
Answer: Option B. -> method completes

Question 9. With jQuery, you can hide and show HTML elements with the hide() and show() methods?
  1.    True
  2.    False
Explanation:-
Answer: Option A. -> True

Question 10. The eq() method returns an element with a specific index number of the _________?
  1.    selected elements
  2.    Specified elements
  3.    None of the above
  4.    All of above
Explanation:-
Answer: Option A. -> selected elements