JQuery Interview Questions

Primary tabs

Top JQuery Questions that are asked during interviews.

Bookmark to learn: Login to use bookmarks.

Bookmark to learn: Login to use bookmarks.

Add to collection ... add JQuery Interview Questions to your collections:

Help using Flashcards ...just like in real life ;)

  1. Look at the card, do you know this one? Click to flip the card and check yourself.
  2. Mark card Right or Wrong, this card will be removed from the deck and your score kept.
  3. At any point you can Shuffle, Reveal cards and more via Deck controls.
  4. Continue to reveal the wrong cards until you have correctly answered the entire deck. Good job!
  5. Via the Actions button you can Shuffle, Unshuffle, Flip all Cards, Reset score, etc.
  6. Come back soon, we'll keep your score.
    “Repetition is the mother of all learning.”
  7. Signed in users can Create, Edit, Import, Export decks and more!.

Bookmark to learn: Login to use bookmarks.

Share via these services ...

Email this deck:

Right: #
Wrong: #
# Right & # Wrong of #

What is jQuery?

jQuery is not a programming language. jQuery is well written JavaScript code, that does document traversing, event handling, Ajax interactions, and Animations.

Why is jQuery needed?

jQuery is needed for the following list:

* Used to develop browser compatible web applications
* Improve the performance of applications
* Very fast and extensible
* UI related functions are written in minimal lines of codes

Does jQuery HTML work for both HTML and XML documents?

No, jQuery HTML only works for HTML documents, not for XML Documents.

What are the methods used to provide effects?

Some of the effects methods are:

Show()
Hide()
Toggle()
FadeIn()
FadeOut()

What are the advantages of using a minimized version of jQuery?

Efficiency of web page increases when minimized version of jQuery is used. min.js file will be more than 50% less than the normal js file. Reduction in the file size makes the web page faster.

Is jQuery a JavaScript or a JSON library file?

jQuery is a library of JavaScript file and it consists of DOM, event effects and the Ajax functions. jQuery is said to be a single JavaScript file.

Which operating systems are more compatible with jQuery?

Mac, Windows and Linux are more compatible with the jQuery.

How can we include the jQuery library in ASP.Net project?

Download the jQuery library from jQuery.com and include that reference in the asp.net page.

Which command will give the version of jQuery?

The command $.ui.version returns jQuery UI version.

In what scenarios can Query be used?

jQuery can be used in following scenarios:

Apply CSS static or dynamic
Calling functions on events
Manipulation purpose
Mainly for Animation effects

What are the differences between find and children methods?

Find method is used to find all levels down the DOM tree but children find single level down the DOM tree.

What is jQuery connect?

A ‘ jQuery connect’ is a plugin used to connect or bind a function with another function. Connect is used to execute function from any other function or plugin is executed.

How to use connect?

Connect can be used by downloading jQuery connect file from jQuery.com and then include that file in the HTML file. Use $.connect function to connect a function to another function.

What are the features of jQuery, that have been used in web applications?

jQuery uses features like Sliding, File uploading and accordian in web applications.

What are the browser related issues for jQuery?

Browser compatibility of jQuery plugin is an issue and needs lot of time to fix it.

Do we need to add the jQuery file in both Master and Content page?

The jQuery file should be added to the Master page and can use access from the content page directly without having any reference to it.

What are the basic selectors in jQuery?

Following are the basic selectors in jQuery:

Element ID
CSS Name
Tag Name
DOM hierarchy

Can we call C# code behind using jQuery?

Yes, we can call C# code from jQuery as it supports .net application.

How is the jQuery data method used?

jQuery.data methods is used to associate the data with the DOM nodes and the objects. This data method makes the jQuery code clear and concise.

What is the use of each function in jQuery?

Each function is used to iterate each and every element of an object. It is used to loop DOM elements, arrays and the object properties.

What is the difference between size and length of jQuery?

Size and length both returns the number of element in an object. But length is faster than the size because length is a property and size is a method.

Can we add more than one ‘document.ready’ function in a page?

Yes, we can add more than one document.ready function in a page. But, body.onload can be added once in a page.

What is the use of the jQuery load method?

jQuery load method is a powerful AJAX method which is used to load the data from a server and assign the data into the element without loading the page.

Can we use our own specific characters in place of $ in jQuery?

Yes, We can use our own variable in place of $ by using the method called no Conflict () method.

var sample = $.noConflict()

What are the four parameters used for jQuery Ajax method?

The four parameters are

URL – Need to specify the URL to send the request
type – Specifies type of request(Get or Post)
data – Specifies data to be sent to server
Cache – Whether the browser should cache the requested page

What is the use of jQuery filter?

The jQuery filter is used to filter the certain values from the object list based on the criteria. Example is to filter certain products from the master list of products in a cart website.

Which program is useful for testing jQuery?

QUnit is used to test jQuery and it is very easy and efficient.

What is CDN?

CDN is abbreviated as Content Distribution network and it is said to be a group of companies in different location with network containing copies of data files to maximize bandwidth in accessing the data.

What are the two types of CDNs?

There are two types of CDNs:

Microsoft – Load jQuery from Ajax CDN
Google – Load jQuery from Google libraries API

Which sign is used as a shortcut for jQuery?

Dollar ($) sign is used as a shortcut for jQuery.

Is jQuery a client or server scripting?

jQuery is a client scripting.

What is the script build up by jQuery?

jQuery is a Javascript file and it is single javascript file that contains common DOM, event effects and Ajax functions

How can we debug jQuery?

There are two ways to debug jQuery:

Debugger keyword

Add the debugger to the line from where we have to start debugging and then run Visual Studio in Debug mode with F5 function key.
Insert a break point after attaching the process

What are all the ways to include jQuery in a page?

Following are the ways to include jQuery in a page:

Local copy inside script tag
Remote copy of jQuery.com
Remote copy of Ajax API
Local copy of script manager control
Embedded script using client script object

What is the use of the jQuery.ajax method ()?

jQuery.ajax method is used for asynchronous HTTP requests.

Where can we download JQuery?

jQuery javascript can be downloaded from jQuery official website – www.jquery.com

Is jQuery a replacement of JavaScript?

No, jQuery is not a replacement of JavaScript.

What is chaining called?

Chaining is used to connect multiple events and functions in a selector.

What are the advantages of jQuery?

Following are the advantages of jQuery:

Just a JavaScript enhancement
Coding is simple, clear, reusable
Removal of writing more complex conditions and loops

Can C# code behind be called from jQuery?

Yes, we can call C# code behind from jQuery.

What is the use of the jQuery.data() method?

jQuery data method is used to associate data with DOM nodes and JavaScript objects. This method will make a code very concise and neat.

What is the difference between onload() and document.ready()?

In a page, we can have only one onload function but we can have more than one document.ready function. Document.ready function is called when DOM is loaded but onload function is called when DOM and images are loaded on the page

What is the use of jQuery each function?

jQuery each function is used to loop through each and every element of the target jQuery object. It is also useful for multi element DOM, looping arrays and object properties.

How can a method be called inside 'code behind' using jQuery?

$.ajax can be called and by declaring WebMethod inside code behind using jQuery.

Which is the fastest selector in jQuery?

ID and Element are the fastest selectors in jQuery.

What is the slowest selector in jQuery?

Class selectors are the slowest selectors in jQuery.

Where is jQuery code being executed?

jQuery code is getting executed on a client browser.

What is the method used to define the specific character in place of $ sign?

‘NoConflict’ method is used to reference a jQuery and save it in a variable. That variable can be used instead of Sign.

Why is jQuery better than JavaScript?

jQuery is a library used for developing Ajax application and it helps to write the code clean and concise. It also handles events, animation and Ajax support applications.

What are the types of selectors in jQuery?

There are three types of selectors in jQuery:

CSS Selector
XPath Selector
Custom Selector