Online Tutorials & Training Materials | STechies.com
Register Login

jQuery Interview Questions

jQuery Interview FAQ's

1. What is jQuery?

A: jQuery is not a programming language, but a cross browser JavaScript Library. It is a feature rich, fast, and lightweight client side framework that helps in document traversing, AJAX interactions, event handling, and making animations.

2. Why is jQuery used?

A: jQuery is used as JavaScript Library because it has a great number of advantages.

  • It is easy to learn and use, and can be expanded easily.
  • It is used to develop applications compatible with a browser, while also having cross browser support.
  • It has a large collection of built-in methods.
  • It has ways to create animations, and to apply or change CSS.
  • It makes DOM traversal and manipulation very easy.
  • It has AJAX handling ability.
  • It detects and handles events.
  • It has a massive collection of plugins for a wide variety of activities.

3. What is the difference between jQuery and JavaScript?

A: JavaScript is a programming language, and jQuery is a library built into JavaScript. It helps in the interaction between JavaScript and HTML codes.

4. What are selectors?

A: Selectors are elements that perform the basic function of jQuery, which is to find and select an element in DOM. It is a construct which has a string parameter containing a CSS selector expression. It returns DOM elements on which an effect or style is applied.

5. How are selectors defined?

A: Selectors in jQuery are a $() construct. The starting function is a $(document).ready() function. The ‘$’ may be replaced with jQuery to make the starting code jQuery(document).ready(). It may also be replaced with any character of the programmer’s choice using a separate jQuery.noConflict() function.

6. Can jQuery work with other JavaScript libraries?

A: Yes, jQuery can work with other libraries like Prototype, MooTools, etc.

7. What are the versions of jQuery?

A: The jQuery library is available in two versions:

1.Development version: The open source fully editable version.

2.Deployment version: The much smaller, compressed non editable version for final deployment.

8. What is CDN?

A: The Content Delivery Network, also called Content Distribution Network, is a large distribution of server systems spread in many data centers all over the world. In this network, a request originating at one terminal goes to the closest server.

9. Name some CDNs used for jQuery.

A: Three very popular CDNs for jquery are of Microsoft, Google, and jQuery.

10. Why are CDNs used?

A: Distribution networks give some great advantage when working with jQuery. It reduces server load and saves bandwidth as jQuery loads faster from CDNs. Upon visiting a site using jQuery library from any of the CDNs a cache is created.

11. Which are the selectors used in jQuery?

A: There are multiple types of selectors available in jQuery. The basic selectors include:

  • Name: Elements with the same given name are selected.
  • ID: A single element matching the given ID is selected.
  • Class: All elements with the given class name are selected.
  • Universal: All elements available in the DOM are selected.
  • Multiple Elements: The combined results of specified selectors are selected.
  • Attribute Selector: Elements are selected on the basis of their attribute values.

12. Which are the fastest and slowest selectors of jQuery?

A: ID and element selectors are the fastest, while class selectors are the slowest.

13. What is DOM?

A: DOM or Document Object Model is a method of representation and interaction with an HTML, XHTML, or XML documents. It allows navigation through and manipulation of such documents using JavaScript programming language.

14. How are find and children methods different?

A: The find method finds all the levels down a DOM tree, while children method finds a single level down the DOM tree.

15. What does ‘jQuery connect’ do?

A: jQuery connect is a plugin that connects or binds one function with another function so that they can be executed together even if defined separately.

16. What does jQuery.data() method do?

A: The jQuery.data() method associates data with objects and DOM nodes. It makes the code concise and clear.

17. What does ‘each’ function do?

A: The ‘each’ function iterates every element in an object. It loops through array, properties of the object, and DOM elements.

18. How are ‘size’ and ‘length’ different in jQuery?

A: ‘length’ is a property, and ‘size’ is a method. So while both ‘length’ and ‘size’ give the number of elements of an object, length is ‘faster’ than ‘size’.

19. What is AJAX?

A: AJAX stands for Asynchronous JavaScript and XML. AJAX helps in loading server data without refreshing the browser page.

20. What does jQuery load method do?

A: the jQuery load method uses AJAX to load server data and assign it to an element without loading the webpage.

21. What parameters are used in jQuery AJAX method?

A: Four parameters used are:

  • URL: To specify the request URL
  • type: To specify the type of request
  • data: To specify the data that has to be sent to the server
  • Cache: To specify if the browser needs to make a cache of the page requested

22. What is chaining?

A: Chaining is the process of connecting many functions and events of a selector.

23. Where is jQuery code executed?

A: jQuery is a client side scripting, which means it gets executed on the client’s browser.

24. Can multiple AJAX requests be run simultaneously?

A: Yes, multiple AJAX requests can be run simultaneously, and is desirable in case of asynchronous events as running a request after one is completed takes a longer time.

25. What does the finish() method do?

A: The finish() method in jQuery stops all the animations queued, and puts all CSS properties in their final values or end state.

1025 results
  • Ajax Interview Questions and Answers for Experienced
    What is Ajax & What does Ajax stand for? n nAJAX stands for Asynchronous JavaScript and XML. It is used to create better web applications using XHTML for developing the main content and CSS for...
  • Posted in: Articles » » | By: Jyoti Pandey | Date: 12 Feb 2019 8:53 am | Comments (0)
  • Jquery and BSP ABAP
    help i need tutorial how to import jquey in bsp abap, nmanual instruction how to import juery. n nWhat is the use of controller in bsp? nwhat is use of MIME in bsp? n nCan this Controller and MIME...
  • Posted in: Forum » ABAP » | By: Shalesh Singh Visen | Date: 18 May 2018 1:41 pm | Comments (0)
  • Smartforms Interview Questions and Answers
    SAP ABAP Smartforms Interview FAQ n nQ) Define Smart form? n nForm Printing in the Internet Age n nSmart Forms was initially presented in SAP Basis Release 4.6C primarily as a tool for the creation...
  • Posted in: Interview Questions » ABAP » | By: rekha | Date: 29 Jun 2018 1:19 pm | Comments (6)
  • OOPS INTERVIEW QUESTIONS and ANSWERS
    1.  Priniples of oops?2.  What is difference between procedural & OO Programming?3.  What is class?4.  What is object?5.  Can we instantiate a class within implementation...
  • Posted in: Interview Questions » ABAP » | By: vishal singh | Date: 18 May 2018 11:23 am | Comments (1)
  • BAPI Interview Questions and Answers
    General BAPI Interview Questions n n1) Define BAPI? n nBAPI is a standardized programming interface (method) which enable external applications to gain access to business processes and data in...
  • Posted in: SAP Blogs » » | By: rekha | Date: 08 Jan 2019 6:43 am | Comments (1)
  • Reorganizations Interview Question and Answers
    nFAQ: Reorganizations 1. What is reorganization?The term reorganization refers to the reconstruction of objects in the database. A distinction is made between offline and online...
  • Posted in: Interview Questions » Oracle » | By: rekha | Date: 19 May 2018 4:27 am | Comments (0)
  • ALV Layout Interview Questions
    [1] Question: What do the terms "display variant" and "layout" mean? n nAnswer: Both the term "display variant" and the term "layout" refer to the same thing...
  • Posted in: Interview Questions » ABAP » | By: rekha | Date: 18 May 2018 12:00 pm | Comments (0)
  • JMon Interview Questions and Answers
    FAQ: JMon1.Q: The JVM cores on Windows 2000 with the following error in the file hs_err_pidxxxx.log: An unexpected exception has been detected in native code outside the VM. Unexpected Signal:...
  • Posted in: Interview Questions » Java » | By: rekha | Date: 20 May 2018 1:51 am | Comments (1)
  • SAP EHS Interview Questions
    Hello SAP Experts, n nI Need SAP EHS interview questions and answers that are asked usually in any interivew. Please try to share them with me as soon as possible so that I can read and follow them...
  • Posted in: Forum » EHS ( Environment, Health, and Safety Management ) » | By: | Date: 18 May 2018 11:53 pm | Comments (1)
  • Order Management Interview Questions
    Hello Experts, n nI have recently faced an interview of a Company and the interviewer asked me these question which i have mentioned below: n nFirst question : If a xyz sales person(may be he meant...
  • Posted in: Forum » SD (Sales and Distribution) » | By: Rohit Mahajan | Date: 04 Dec 2018 7:21 am | Comments (4)
  • Authorizations Interview Question and Answers
    FAQ: General Questions About Authorizations[1] Question: Can wildcards be used in authorizations?[2] Question: What does the PFCG_TIME_DEPENDENCY clean up?[3] Question: What happens to change...
  • Posted in: Interview Questions » BASIS » | By: rekha | Date: 18 May 2018 12:09 pm | Comments (0)
  • MODULARIZATION Interview Questions and Answers
    MODULARIZATION FAQs1.Does every ABAP/4 have a modular structure?Yes.2.What is Modularization and its benefits?If the program contains the same or similar blocks of statements or it is required to...
  • Posted in: Interview Questions » ABAP » | By: Merityunjay Kumar Shukla | Date: 19 May 2018 11:07 am | Comments (1)
  • SDBI_CLUSTER_CHECK Interview Questions and Answers
    Q-1.Will I be able to run the SDBI_CLUSTER_CHECK without option "Find duplicates"? What is the impact?Ans) It is indeed possible to run the report without causing any impacts. The option...
  • Posted in: Interview Questions » NetWeaver » | By: vaibhav gupta | Date: 18 May 2018 3:51 pm | Comments (0)
  • Informatica Interview Questions and Answer
    Informatica FAQ's n n1. What is Enterprise Data Warehousing? n nA: Enterprise Data Warehousing is the creation of organization data at a single access point. Data with global view can be given to...
  • Posted in: SAP Blogs » » | By: Nitesh Singh | Date: 30 May 2018 11:08 am | Comments (0)
  • Hive Interview Questions and Answers
    What is Hive? n nHive is a tool to perform ETL (extract, transform and load) and Data warehousing functions. It was developed as a sub-project of Hadoop Distributed File System (HDFS). Hive makes...
  • Posted in: Articles » » | By: vaibhav gupta | Date: 14 Feb 2019 6:43 am | Comments (0)
  • TestNG Interview Questions & Answers
    What is TestNG? n nTestNG is a tool to perform tasks like reporting, assertions, parallel test execution etc. integrating the framework with selenium or other automation tools. The NG in TestNG...
  • Posted in: Articles » » | By: Jyoti Pandey | Date: 15 Jan 2019 10:06 am | Comments (0)
  • SSRS Interview Questions and Answers
    What is SSRS? n nSQL Server Reporting Service is a server-based software system. It generates reports that Microsoft develops. You can prepare and deliver various printed reports that are...
  • Posted in: Articles » » | By: Shalesh Singh | Date: 11 Feb 2019 8:34 am | Comments (0)
  • VMware Interview Questions and Answers
    What is VMware? n nVMware is a software that enables you to do virtualization and cloud computing in your host computer. You can run a virtual computer from your own computer. The basis of...
  • Posted in: Articles » » | By: vaibhav gupta | Date: 24 Dec 2018 7:03 am | Comments (0)
  • Data Modelling Interview Questions
    What is data modelling? n nThe process of documenting the design of a complex software system through diagrams, text, and symbols that represent the data flow is known as data modelling. This...
  • Posted in: Articles » » | By: Romil Tripathi | Date: 15 Feb 2019 1:45 pm | Comments (0)
  • Microservices Interview Questions and Answers
    What are Microservices? n nMicroservices or Microservice Architecture is a style of architecture that organizes an application in the form of a collection of minor autonomous services that are...
  • Posted in: Articles » » | By: Sushma | Date: 08 Jan 2019 6:31 am | Comments (0)
VIEW MORE