jQuery interview questions and answers

Below is the latest and updated jQuery interview questions and their answers for freshers as well as experienced programmers. These interview question covers latest version of jQuery which is jQuery 2.0. These interview questions will help you to prepare for the interviews, for quick revision and provide strength to your technical skills.

Jquery Interview Question and Annswers

Jquery Interview Question and Annswers

1. What is jQuery?
jQuery is fast, lightweight and feature-rich client side JavaScript Library/Framework which helps in to traverse HTML DOM, make animations, add Ajax interaction, manipulate the page content, change the style and provide cool UI effect. It is one of the most popular client side library and as per a survey it runs on every second website.
jQuery is not a programming language but a well written JavaScript code. It is a JavaScript code, which do document traversing, event handling, Ajax interactions and Animations. One of the greatest features of jQuery is that jQuery supports an efficient way to implement AJAX applications because of its light weight nature and make normalize and efficient web programs.jQuery is a multi-browser JavaScript library designed to simplify client-side scripting of HTML. It was released in 2006 at BarCamp NYC by John Resig.

2. How to use jQuery and what are the requirement to use jquery?
jQuery can be easily used with other libraries so it should work out of the box with simple and complex JavaScript and Ajax. Nothing more need to do just olny download jquery library(.js file) from any of the jquery site Download jquery and just linked with your html pages like all other javascript file
like below :
< script src=”jquery.js” language=”javascript” type=”text/javascript”>

3. How to use jQuery library in ASP.Net project?
Download the latest jQuery library from jQuery.com and include the reference to the jQuery library file in our ASPX page.

<script src="_scripts/jQuery-1.2.6.js" type="text/javascript"></script> 
<script language="javascript"> 
$(document).ready(function() { 

4. what the use of $ symbol in Jquery?
$ Symbol is just replacement of jquery means at the place of $ you may use jquery hence $ symbol is used for indication that this line used for jquery. In fact, you can use your own character in place of the $() – using jQuery.noConflict().

Over here $ sign can be replaced with “jQuery ” keyword.

5. Is jQuery a W3C standard?
No. jQuery is not a W3C standard.

6. What is the basic need to start with jQuery?
To start with jQuery, one need to make reference of it’s library. The latest version of jQuery can be downloaded from jQuery.com.

7. 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.

8. Can we have multiple document.ready() function on the same page?
YES. We can have any number of document.ready() function on the same page.

9. What is jQuery.noConflict?
As other client side libraries like MooTools, Prototype can be used with jQuery and they also use $() as their global function and to define variables. This situation creates conflict as $() is used by jQuery and other library as their global function. To overcome from such situations, jQuery has introduced jQuery.noConflict().

// Use jQuery via jQuery(...)

You can also use your own specific character in the place of $ sign in jQuery.

var $j = jQuery.noConflict();
// Use jQuery via jQuery(...)

10. Can we use our own specific character in the place of $ sign in jQuery?
Yes. It is possible using jQuery.noConflict().

Sign-up for our email newsletter and get free job alerts, current affairs and GK updates regularly.
Subscribe Here (or)

Leave a Reply

Your email address will not be published. Required fields are marked *

four + = 13

Popup Dialog Box Powered By : XYZScripts.com
  • RSS
  • Facebook
  • Google+
  • Twitter