Q1). What is jQuery?
Q2). Why jQuery is needed?
Ans: jQuery is needed for the following list:
- Used to develop browser compatible web applications
- Improve the performance of an application
- Very fast and extensible
- UI related functions are written in minimal lines of codes
Q3). Whether jQuery HTML work for both HTML and XML documents?
Ans: No, jQuery HTML only works for HTML documents not for XML Documents.
Q4). What are the methods used to provide effects?
Ans: Some of the effects methods are:
- FadeIn() and
Q5). What is the advantage of using minimized version of jQuery?
Ans: 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.
Q7). Which operating system is more compatible with jQuery?
Ans: Mac, Windows and Linux are more compatible with the jQuery.
Q8). How can we include jQuery library in ASP.Net project?
Q9). Which command will give a version of jQuery?
Ans: The command $.ui.version returns jQuery UI version.
Q10). In what scenarios jQuery can be used?
Ans: jQuery can be used in following scenarios:
- Apply CSS static or dynamic
- Calling functions on events
- Manipulation purpose
- Mainly for Animation effects
Q11). What is the difference between find and children methods?
Ans: Find method is used to find all levels down the DOM tree but children find single level down the DOM tree.
Q12). What is jQuery connect?
Ans: 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.
Q13). How to use connect?
Ans: 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.
Q14). What are the features of jQuery, has been used in web applications?
Ans: jQuery uses features like Sliding, File uploading and accordian in web applications.
Q15). What are the browser related issues for jQuery?
Ans: Browser compatibility of jQuery plugin is an issue and needs lot of time to fix it.
Q16). Whether we need to add jQuery file in both Master and Content page?
Ans: jQuery file should be added to the Master page and can use access from the content page directly without having any reference to it.
Q17). What are the basic selectors in jQuery?
Ans: Following are the basic selectors in jQuery:
- Element ID
- CSS Name
- Tag Name
- DOM hierarchy
Q18). Can we call C# code behind using jQuery?
Ans: Yes, we can call C# code from jQuery as it supports .net application.
Q19). What is the use jQuery.data method?
Ans: 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.
Q20). What is the use of each function in jQuery?
Ans: 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.
Q21). What is the difference between size and length of jQuery?
Ans: 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.
Q22). Can we add more than one ‘document.ready’ function in a page?
Ans: Yes, we can add more than one document.ready function in a page. But, body.onload can be added once in a page.
Q23). What is the use of jQuery load method?
Ans: 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.
Q24). Whether our own specific characters are used in place of $ in jQuery?
Ans: Yes, We can use our own variable in place of $ by using the method called no Conflict () method.
var sample = $.noConflict()
Q25). What are the four parameters used for jQuery Ajax method?
Ans: 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
Q26). What is the use of jQuery filter?
Ans: 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.
Q27). Which program is useful for testing jQuery?
Ans: QUnit is used to test jQuery and it is very easy and efficient.
Q28). What is CDN?
Ans: 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.
Q29). What are the two types of CDNs?
Ans: There are two types of CDNs:
- Microsoft – Load jQuery from Ajax CDN
- Google – Load jQuery from Google libraries API
Q30). Which sign is used as a shortcut for jQuery?
Ans: Dollar ($) sign is used as a shortcut for jQuery.
Q31). Is jQuery is a client or server scripting?
Ans: jQuery is a client scripting.
Q32). What is the script build up by jQuery?
Q33). How can we debug jQuery?
Ans: There are two ways to debug jQuery:
- 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
Q34). What are all the ways to include jQuery in a page?
Ans: 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
Q35). What is the use of jQuery.ajax method ()?
Ans: jQuery.ajax method is used for asynchronous HTTP requests.
Q36). Where can we download JQuery?
Q38). What is called chaining?
Ans: Chaining is used to connect multiple events and functions in a selector.
Q39). What are the advantages of jQuery?
Ans: Following are the advantages of jQuery:
- Coding is simple, clear, reusable
- Removal of writing more complex conditions and loops
Q40). Whether C# code behind can be called from jQuery?
Ans: Yes, we can call C# code behind from jQuery.
Q41). What is the use of jQuery.data() method?
Q42). What is the difference between onload() and document.ready()?
Ans: 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.
Q43). What is the use of jQuery each function?
Ans: 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.
Q44). How method can be called inside code behind using jQuery?
Ans: $.ajax can be called and by declaring WebMethod inside code behind using jQuery.
Q45). Which is the fastest selector in jQuery?
Ans: ID and Element are the fastest selectors in jQuery.
Q46). What is the slowest selector in jQuery?
Ans: Class seectors are the slowest selectors in jQuery.
Q47). Where jQuery code is getting executed?
Ans: jQuery code is getting executed on a client browser.
Q48). What is the method used to define the specific character in place of $ sign?
Ans: ‘NoConflict’ method is used to reference a jQuery and save it in a variable. That variable can be used instead of Sign.
Ans: 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.
Q50). What are the types of selectors in jQuery?
Ans: There are three types of selectors in jQuery:
- CSS Selector
- XPath Selector
- Custom Selector
You may be interested in
- Php Interview Questions
- PHP Interview Questions and Answers
- PHP Interview Questions and Answers for Freshers 2018
- FuelPHP Interview Questions and Answers
- Interview Questions For PHP and Mysql
- HTML Interview Questions
- HTML5 Interview Question and Answers
- CSS3 Interview Questions and Answers
- CSS Interview Questions and Answers
- JQuery Interview Questions
- Ajax Interview Questions and Answers
- Angularjs Interview Questions
- Angular 4 Interview Questions
- Angular JS Interview Questions and Answers
- ExtJS Interview Questions
- React Js interview questions
- WordPress Interview Questions and Answers
- Bootstrap Interview Questions and Answers
- Laravel Interview Questions and Answers
- Magento Interview Questions
- Codeigniter Interview Questions and Answers for 2 Year Experience
- Drupal Interview Questions and Answers
- Magento Interview Questions and Answers 2018