Q. Which is the method that operates on the return value of $()?

  • (A) show()
  • (B) css()
  • (C) click()
  • (D) done()
πŸ’¬ Discuss
βœ… Correct Answer: (B) css()
Explanation: The css() method operates on the jQuery object returned by $(), and returns that same object, so that the show() method can be invoked next in a compact “method chain.”

Q. Consider the following code snippet
script src="jquery-1.4.2.min.js"></script>
What does the min mean?

  • (A) Minimised version
  • (B) Miniature
  • (C) Minimised parameters
  • (D) Minimum value
πŸ’¬ Discuss
βœ… Correct Answer: (A) Minimised version
Explanation: The min means the minimised version of the library, with unnecessary comments and whitespace removed, and internal identifiers replaced with shorter ones.

Q. Which of the following is a heavily overloaded function?

  • (A) jQuery()
  • (B) $()
  • (C) script()
  • (D) Both jQuery() and $()
πŸ’¬ Discuss
βœ… Correct Answer: (D) Both jQuery() and $()
Explanation: The jQuery() function (a.k.a) $()) is the most important one in the jQuery library. It is heavily overloaded, however, and there are four different ways you can invoke it.

Q. Which of the following is an equivalent replacement of $(document).ready(f)?

  • (A) jQuery(f)
  • (B) $(f)
  • (C) #(f)
  • (D) None of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (B) $(f)
Explanation: The equivalent replacement of $(document).ready(f) is $(f).

Q. Which of the following is a utility function in jQuery?

  • (A) jQuery.each()
  • (B) jQuery.parseJSON()
  • (C) jQuery.noConflict()
  • (D) None of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (C) jQuery.noConflict()
Explanation: jQuery.noConflict() is the utility function in jQuery.

Q. Which of the following is used for parsing JSON text?

  • (A) jQuery.each()
  • (B) jQuery.parseJSON()
  • (C) jQuery.noConflict()
  • (D) None of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (B) jQuery.parseJSON()
Explanation: jQuery.parseJSON() is used for parsing JSON text.

Q. Which property helps to initiate the HTTP requests?

  • (A) request
  • (B) location
  • (C) send
  • (D) none of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (B) location
Explanation: It is possible for JavaScript code to script HTTP, however. HTTP requests are initiated when a script sets the location property of a window object or calls the submit() method of a form object. In both cases, the browser loads a new page.

Q. Which method is an alternative of the property location of a window object?

  • (A) submit()
  • (B) locate()
  • (C) load()
  • (D) none of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (A) submit()
Explanation: It is possible for JavaScript code to script HTTP, however. HTTP requests are initiated when a script sets the location property of a window object or calls the submit() method of a form object. In both cases, the browser loads a new page.

Q. Which of the following uses scripted HTTP?

  • (A) XML
  • (B) HTML
  • (C) Ajax
  • (D) All of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (C) Ajax
Explanation: The key feature of an Ajax application is that it uses scripted HTTP to initiate data exchange with a web server without causing pages to reload.

Q. Which of the below is a lieral reverse of Ajax?

  • (A) HTTP
  • (B) HTML
  • (C) XML
  • (D) Comet
πŸ’¬ Discuss
βœ… Correct Answer: (D) Comet
Explanation: Comet is the reverse of Ajax: in Comet, it is the web server that initiates the communication, asynchronously sending messages to the client.