TechieClues

JQuery - Interview Questions & Answers
1. What is jQuery?
  • jQuery is a JavaScript library that simplifies JavaScript and AJAX programming. JavaScript is used to add interactivity and dynamic content to web pages. AJAX (Asynchronous JavaScript and XML) is used for handling external data asynchronously through JavaScript, without refreshing the whole page.
  • jQuery emphasizes the interaction between JavaScript and HTML. jQuery contains all the common DOM, event, effects, and Ajax functions in a single JavaScript file.
  • It is one of the most popular client side libraries.
2. Why do we need jQuery?
The jQuey is required for the following :
  • To develop browser compatible web applications
  • To improve the performance of an application
  • Very fast and extensible
  • UI related functions are written in minimal lines of codes
3. Explain the features of jQuery?
  • Easily provide effects and do animations
  • Ajax support
  • Extensibility
  • Cool pulgins
  • Event handling
  • Applying/Changing CSS
  • DOM selection events
4. How JavaScript and jQuery are different?
JavaScript is a language while jQuery is a library built in the JavaScript language that helps to use the JavaScript language.
5. Does jQuery HTML work for both HTML and XML documents?
No, jQuery HTML only works for HTML documents not for XML Documents.
6. Which is the starting point of code execution in jQuery?
The starting point of jQuery code execution is $(document).ready () function which is executed when DOM is loaded.
7. What are the advantages of jQuery?
  • Easy to use and learn.
  • Easily expandable.
  • AJAX Capabilities.
  • Event detection and handling.
  • Easy to use for DOM manipulation and traversal.
  • Cross-browser support (IE 6.0+, FF 1.5+, Safari 2.0+, Opera 9.0+)
  • Methods for changing or applying CSS, creating animations.
  • Large pool of built in methods.
  • Tons of plug-ins for all kind of needs.
8. Which is jQuery UI?
jQuery UI is a library which is built on top of jQuery library.jQuery UI comes with cool widgets,effects and interaction mechanism.
Questions & Answers
Scripting Languages