{"id":60,"date":"2017-04-13T02:22:17","date_gmt":"2017-04-13T02:22:17","guid":{"rendered":"http:\/\/www.gologica.com\/blog\/?p=60"},"modified":"2025-04-06T01:38:01","modified_gmt":"2025-04-06T01:38:01","slug":"jquery-interview-questions","status":"publish","type":"post","link":"https:\/\/www.gologica.com\/elearning\/jquery-interview-questions\/","title":{"rendered":"JQuery Interview Questions"},"content":{"rendered":"<p><strong>What is jQuery?<\/strong><\/p>\n<p>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.<\/p>\n<p><strong>Why jQuery is needed?<\/strong><\/p>\n<p>jQuery is needed for the following list:<\/p>\n<p>Used to develop browser compatible web applications<br \/>\nImprove the performance of an application<br \/>\nVery fast and extensible<br \/>\nUI related functions are written in minimal lines of codes<\/p>\n<p><strong>Whether jQuery HTML work for both HTML and XML documents?<\/strong><\/p>\n<p>No, jQuery HTML only works for HTML documents not for XML Documents.<\/p>\n<table style=\"background: #d9dde2;\">\n<tbody>\n<tr>\n<td style=\"border: 1px solid black;\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><a href=\"https:\/\/www.gologica.com\/course\/jquery\/\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-2950\" src=\"https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2017\/04\/JQuery-Interview-Questions-1.jpg\" alt=\"JQuery Online Training\" width=\"850\" height=\"200\" srcset=\"https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2017\/04\/JQuery-Interview-Questions-1.jpg 850w, https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2017\/04\/JQuery-Interview-Questions-1-460x108.jpg 460w, https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2017\/04\/JQuery-Interview-Questions-1-768x181.jpg 768w, https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2017\/04\/JQuery-Interview-Questions-1-100x24.jpg 100w, https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2017\/04\/JQuery-Interview-Questions-1-600x141.jpg 600w, https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2017\/04\/JQuery-Interview-Questions-1-120x28.jpg 120w, https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2017\/04\/JQuery-Interview-Questions-1-310x73.jpg 310w\" sizes=\"(max-width: 850px) 100vw, 850px\" \/><\/a><\/p>\n<p><strong>What are the methods used to provide effects?<\/strong><\/p>\n<p>Some of the effects methods are:<\/p>\n<p>Show()<br \/>\nHide()<br \/>\nToggle()<br \/>\nFadeIn() and<br \/>\nFadeOut()<\/p>\n<p><strong>What is the advantage of using minimized version of jQuery?<\/strong><\/p>\n<p>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.<\/p>\n<p>Jquery<br \/>\nJquery<\/p>\n<p><strong>Is jQuery is a JavaScript or JSON library file?<\/strong><\/p>\n<p>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.<\/p>\n<p><strong>Which operating system is more compatible with jQuery?<\/strong><\/p>\n<p>Mac, Windows and Linux are more compatible with the jQuery.<\/p>\n<p><strong>How can we include jQuery library in ASP.Net project?<\/strong><\/p>\n<p>Download the jQuery library from jQuery.com and include that reference in the asp.net page.<\/p>\n<p><strong>Which command will give a version of jQuery?<\/strong><\/p>\n<p>The command $.ui.version returns jQuery UI version.<\/p>\n<p><strong>In what scenarios jQuery can be used?<\/strong><\/p>\n<p>jQuery can be used in following scenarios:<\/p>\n<p>Apply CSS static or dynamic<br \/>\nCalling functions on events<br \/>\nManipulation purpose<br \/>\nMainly for Animation effects.<\/p>\n<p><strong>What is the difference between find and children methods?<\/strong><\/p>\n<p>Find method is used to find all levels down the DOM tree but children find single level down the DOM tree.<\/p>\n<p><strong>What is jQuery connect?<\/strong><\/p>\n<p>A \u2018 jQuery connect\u2019 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.<\/p>\n<p><strong>How to use connect?<\/strong><\/p>\n<p>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.<\/p>\n<p><strong>What are the features of jQuery, has been used in web applications?<\/strong><\/p>\n<p>jQuery uses features like Sliding, File uploading and accordian in web applications.<\/p>\n<p><strong>What are the browser related issues for jQuery?<\/strong><\/p>\n<p>Browser compatibility of jQuery plugin is an issue and needs lot of time to fix it.<\/p>\n<p><strong>Whether we need to add jQuery file in both Master and Content page?<\/strong><\/p>\n<p>jQuery file should be added to the Master page and can use access from the content page directly without having any reference to it.<\/p>\n<p><strong>What are the basic selectors in jQuery?<\/strong><\/p>\n<p>Following are the basic selectors in jQuery:<\/p>\n<p>Element ID<br \/>\nCSS Name<br \/>\nTag Name<br \/>\nDOM hierarchy<\/p>\n<p><strong>Can we call C# code behind using jQuery?<\/strong><\/p>\n<p>Yes, we can call C# code from jQuery as it supports .net application.<\/p>\n<p><strong>What is the use jQuery.data method?<\/strong><\/p>\n<p>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.<\/p>\n<p><strong>What is the use of each function in jQuery?<\/strong><\/p>\n<p>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.<\/p>\n<p><strong>What is the difference between size and length of jQuery?<\/strong><\/p>\n<p>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.<\/p>\n<table style=\"background: #d9dde2;\">\n<tbody>\n<tr>\n<td style=\"border: 1px solid black;\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><a href=\"https:\/\/www.gologica.com\/course\/jquery\/\"><img decoding=\"async\" class=\"alignnone size-full wp-image-2951\" src=\"https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2017\/04\/JQuery-Interview-Questions-2.jpg\" alt=\"JQuery Live Training\" width=\"850\" height=\"200\" srcset=\"https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2017\/04\/JQuery-Interview-Questions-2.jpg 850w, https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2017\/04\/JQuery-Interview-Questions-2-460x108.jpg 460w, https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2017\/04\/JQuery-Interview-Questions-2-768x181.jpg 768w, https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2017\/04\/JQuery-Interview-Questions-2-100x24.jpg 100w, https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2017\/04\/JQuery-Interview-Questions-2-600x141.jpg 600w, https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2017\/04\/JQuery-Interview-Questions-2-120x28.jpg 120w, https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2017\/04\/JQuery-Interview-Questions-2-310x73.jpg 310w\" sizes=\"(max-width: 850px) 100vw, 850px\" \/><\/a><\/p>\n<p><strong>Can we add more than one \u2018document.ready\u2019 function in a page?<\/strong><\/p>\n<p>Yes, we can add more than one document.ready function in a page. But, body.onload can be added once in a page.<\/p>\n<p><strong>What is the use of jQuery load method?<\/strong><\/p>\n<p>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.<\/p>\n<p><strong>Whether our own specific characters are used in place of $ in jQuery?<\/strong><\/p>\n<p>Yes, We can use our own variable in place of $ by using the method called no Conflict () method.<\/p>\n<p>var sample = $.noConflict()<\/p>\n<p><strong>What are the four parameters used for jQuery Ajax method?<\/strong><\/p>\n<p>The four parameters are<\/p>\n<p>URL \u2013 Need to specify the URL to send the request<br \/>\ntype \u2013 Specifies type of request(Get or Post)<br \/>\ndata \u2013 Specifies data to be sent to server<br \/>\nCache \u2013 Whether the browser should cache the requested page<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is jQuery? jQuery is not a programming language but a well written JavaScript code. It is a JavaScript code, &hellip;<\/p>\n","protected":false},"author":1,"featured_media":2081,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"aside","meta":{"footnotes":""},"categories":[15224],"tags":[],"coauthors":[182],"class_list":["post-60","post","type-post","status-publish","format-aside","has-post-thumbnail","hentry","category-fullstack","post_format-post-format-aside","user-has-not-earned"],"_links":{"self":[{"href":"https:\/\/www.gologica.com\/elearning\/wp-json\/wp\/v2\/posts\/60","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gologica.com\/elearning\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gologica.com\/elearning\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gologica.com\/elearning\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gologica.com\/elearning\/wp-json\/wp\/v2\/comments?post=60"}],"version-history":[{"count":5,"href":"https:\/\/www.gologica.com\/elearning\/wp-json\/wp\/v2\/posts\/60\/revisions"}],"predecessor-version":[{"id":6754,"href":"https:\/\/www.gologica.com\/elearning\/wp-json\/wp\/v2\/posts\/60\/revisions\/6754"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.gologica.com\/elearning\/wp-json\/wp\/v2\/media\/2081"}],"wp:attachment":[{"href":"https:\/\/www.gologica.com\/elearning\/wp-json\/wp\/v2\/media?parent=60"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gologica.com\/elearning\/wp-json\/wp\/v2\/categories?post=60"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gologica.com\/elearning\/wp-json\/wp\/v2\/tags?post=60"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.gologica.com\/elearning\/wp-json\/wp\/v2\/coauthors?post=60"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}