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?
$(div").height="100
$(div").height(100)
$(div").yPos(100)
None
Explanation:-
Answer: Option A. -> $(div").height="100
Question 2. Which of the following jQuery method checks the current selection against an expression?
getIs( selector )
is( selector )
checkIs( selector )
None of the above
Explanation:-
Answer: Option B. -> is( selector )
Question 3. Select all elements that contain the specified text.
:contains()
:selects()
Both
None
Explanation:-
Answer: Option B. -> :selects()
Question 4. To deal with cookies in jQuery we have to use ______ cookie plugin
Dough
Session
Dazzler
None of these
Explanation:-
Answer: Option A. -> Dough
Question 5. Is jQuery a library for client scripting or server scripting?
Server scripting
Client scripting
Both of these
None
Explanation:-
Answer: Option A. -> Server scripting
Question 6. Which of the following is used for parsing JSON text?
jQuery.each()
jQuery.parseJSON()
jQuery.noConflict()
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.
width()
position()
offsetparent()
setparent()
Explanation:-
Answer: Option B. -> position()
Question 8. Using ________ function, we can hold or release the execution of jQuery's ready event.
jQuery.holdReady()
jQuery.ready()
jQuery.hold()
jQuery.holdready()
Explanation:-
Answer: Option A. -> jQuery.holdReady()
Question 9. jQuery code to set the background color of all span elements to blue?