Interview Questions

There are three types of selectors in jQuery:

  • CSS Selector
  • XPath Selector
  • Custom Selector

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.

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

jQuery code is getting executed on a client browser.

Class selectors are the slowest selectors in jQuery.

ID and Element are the fastest selectors in jQuery.

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

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.

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.

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

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

Following are the advantages of jQuery:

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

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

No, jQuery is not a replacement of JavaScript.

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

jQuery.ajax method is used for asynchronous HTTP requests.

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

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

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

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

There are two types of CDNs:

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

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.

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

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.

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

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

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.

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

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.

Contact Us
Plot No : 182, N-3 Cidco, HDFC Bank Aurangabad
Pincode - 431005.
+91 - 721 915 7711,
+91 - 755 832 1391.
info@achhajob.com
©2017. All rights reserved with hiranya technology.
Powered By : Hiranya Technology