Jquery(Engineering > Computer Science And Engineering ) Questions and Answers

Question 1. What is the correct jQuery code for making all div elements 100 pixels high?
  1.    $(div").height="100
  2.    $(div").height(100)
  3.    $(div").yPos(100)
  4.    None
Explanation:-
Answer: Option A. -> $(div").height="100





Question 2. Which of the following jQuery method checks the current selection against an expression?
  1.    getIs( selector )
  2.    is( selector )
  3.    checkIs( selector )
  4.    None of the above
Explanation:-
Answer: Option B. -> is( selector )





Question 3. Select all elements that contain the specified text.
  1.    :contains()
  2.    :selects()
  3.    Both
  4.    None
Explanation:-
Answer: Option B. -> :selects()





Question 4. To deal with cookies in jQuery we have to use ______ cookie plugin
  1.    Dough
  2.    Session
  3.    Dazzler
  4.    None of these
Explanation:-
Answer: Option A. -> Dough





Question 5. Is jQuery a library for client scripting or server scripting?
  1.    Server scripting
  2.    Client scripting
  3.    Both of these
  4.    None
Explanation:-
Answer: Option A. -> Server scripting





Question 6. Which of the following is used for parsing JSON text?
  1.    jQuery.each()
  2.    jQuery.parseJSON()
  3.    jQuery.noConflict()
  4.    None of the mentioned
Explanation:-
Answer: Option B. -> jQuery.parseJSON()





Question 7. The ¦¦¦. method is like offset(), except that it is a getter only and it returns element positions relative to their offset parent, rather to the document as a whole.
  1.    width()
  2.    position()
  3.    offsetparent()
  4.    setparent()
Explanation:-
Answer: Option B. -> position()





Question 8. Using ________ function, we can hold or release the execution of jQuery's ready event.
  1.    jQuery.holdReady()
  2.    jQuery.ready()
  3.    jQuery.hold()
  4.    jQuery.holdready()
Explanation:-
Answer: Option A. -> jQuery.holdReady()





Question 9. jQuery code to set the background color of all span elements to blue?
  1.    $(span").style(background-color","blue");
  2.    $(span").manipulate(background-color","blue");
  3.    $(span").css(background-color","blue");
  4.    $(span").layout(background-color","blue");
Explanation:-
Answer: Option B. -> $(span").manipulate(background-color","blue");





Question 10. What does the min mean?
  1.    Minimised version
  2.    Miniature
  3.    Minimised parameters
  4.    Minimum value
Explanation:-
Answer: Option A. -> Minimised version