×

Top 30 AJAX Interview Questions for 2024

1) What is AJAX?

AJAX (Asynchronous JavaScript and XML) create better, faster and interactive web-apps. It provides data transfer between web-server and browser.

2) List some advantages of AJAX

Advantages are:
  1. More Interactive: Very quick in response.
  2. Bandwidth Utilization: When some data is fetched from some page it saves memory.
  3. Fast Retrieval of data: User is not blocked until the data is retrieved from server.

3) List some disadvantages of AJAX

Disadvantages are:
  1. Network Connection is slow and unreliable.
  2. Debugging of code is difficult.
  3. It is dependent on JavaScript.

4) Enlist some Web Application running on AJAX.

  • Google
  • Facebook
  • YouTube
  • Gmail
  • Twitter

5) What are security issues with AJAX?

  • We can view AJAX source code.
  • Script can be embedded into the system.

6) Describe Synchronous and Asynchronous request in AJAX?

Synchronous Request- In this browser is not unresponsive but blocks the client until operation is complete. JavaScript engine is blocked of the browser. Asynchronous Request-In this browser is responsive i.e. does not block the client. JavaScript engine in not blocked which allows user to perform different task as whole page is not refreshed.

7) Enlist technologies used by AJAX.

  • JavaScript
  • CSS
  • DOM
  • XHTML
  • XMLHttpRequest

8) What is XMLHttpRequest?

It is an API for JavaScript where the HTTP/HTTPS request is send to the web server and load its response into script.

9) Write different types of property of XMLHttpRequest?

  • onReadyStateChange
  • readyState
  • responseText
  • responseXML

10) Enlist all method of XMLHttpRequest.

  • open()
  • send()
  • setRequestHeader()

11) Describe JSON in AJAX?

JSON (JavaScript Object Notation) in JavaScript it is secure and reliable data exchange format which is easy to understand for both user and machine.

12) Enlist tool for debugging in AJAX.

  • APTANA- IDE is free, open source, cross platform.
  • Firebug- for Mozilla Firefox
  • Fiddler- for Internet Explorer
  • MyEclipse AJAX Tool
  • Script Debugger

13) What are the types of post back in AJAX?

Post Back is of 2 types
  1. Synchronous Post Back
  2. Asynchronous Post Back

14) Write all the ready state of a request in AJAX?

  • 0 means UNOPENED.
  • 1 means OPENED.
  • 2 mean HEADERS_RECEIVED.
  • 3 mean LOADING.
  • 4 means DONE.

15) List some AJAX Frameworks.

  • jQuery
  • MOO Tools
  • Prototype
  • YUI Library
  • AngularJS
  • Google Web Tool Kit

16) How can we test AJAX Code?

We can test the code by using open source unit testing framework i.e. JsUnit.

17) Give all controls of Ajax.

  • Pointer
  • ScriptManager
  • ScriptManagerProxy
  • Timer
  • UpdatePanel
  • UpdateProgress

18) Give methods for cross domain AJAX call.

There are 2 methods
  • CORS (Cross Origin Resource Sharing)
  • JSONP (JavaScript Object Notation with Padding)

19) How to handle concurrent request in AJAX?

We handle concurrent request with the object AjaxInteraction(URL,callback) where JavaScript function is designed. It is designed in such a manner that it can handle concurrent request and call back function.

20) Give the difference between Proxied and Proxyless Call.

Proxied Call- We call through stub objects which can be call through PHP classes. Proxyless Call- We call through utility javascript function such as HTML_AJAX.replace() and HTML_AJAX.append().

21) Define Extender Controls in AJAX?

Extender Controls are used to enhanced the capabilities of ASP.NET. It uses block of JavaScript to add new and enhanced capabilities.

22) What is Script Manager?

Script Manager is used to manage the client side script. It is a mediator as AJAX depends on JavaScript.It is also used to enables AJAX libraries as every page that uses AJAX has Script Manager.

23) What are the protocols used by AJAX?

Protocols are as follows:
  • HTTP’s GET or POST
  • XMLHttpRequest for placing a request with the web server.
  • Uses JSON to communicate between the client and server.
  • UED or URL encoded data

24) How to handle Exception Handling?

In AJAX we handle exception by ErrorTemplatewhich is the child tag of script manager.

25) How many types of ready states in AJAX?

Types of ready states are as follows:
  • Initialization
  • Request
  • Process
  • Ready

26) Which request is better, GET or POST?

In AJAX HTTP GET request is more reliable as the data does not change for a given URL requested. HTTP POST should be used when state is updated on the server.

27) Can AJAX request be send to another domain?

No, in AJAX we cannot send AJAX request to another domain.

28) What values exists for the XmlHttpRequest.readyState field?

Ready State values are:
  • Uninitialize: 0
  • Loading: 1
  • Loaded: 2
  • Interactive: 3
  • Complete: 4

29) How do we know that an AJAX request has completed?

AJAX request is completed when XmlHttpRequest.readyState has 4 value and XMLHttpRequest.Status is 200.

30) Define the role of the Update Panel?

Update Panel is used to add functionality to the existing ASP.NET applications. By using partial page rendering, it can be used to update the content.

Related Topics

Top 30 Less Interview Questions for 2024

1) What is Less? Less is a dynamic style sheet language that can be compiled in to CSS (Cascading style Sheet). It runs on client side and server side. It is...

4 minutes read.

Top 16 OpenStack Interview Questions for 2024

Most Frequently Asked OpenStack Interview Questions and Answers for Freshers 1. Describe OpenStack. OpenStack is designed as the future of cloud computing and developed as free and open-source software that facilitates a...

8 minutes read.

VB.NET Interview Questions

1) What is VB.NET? VB.NET stands for Visual Basic .NET. It is an object oriented programming language. It is implemented on .NET framework and launched by Microsoft in 2001. 2) Who is...

3 minutes read.

Top 25 MySQL Interview Questions for 2024

1) What is MySQL? MySql is defined as multi-user DBMS which is built and distributed my MySQLab now acquired by Oracle Co. 2) Enlist the features of MySQL. Cross-Platform Support Wide range...

3 minutes read.

Top 14 MathML Interview Questions for 2024

1) What is MathML? MathL stands for Mathematical Markup Language. It is extended form of XML. It is used to describe mathematical and scientific notations. 2) Who is the developer of MathML? World...

3 minutes read.

Top 30 Magento Interview Questions for 2024

1) What is Magento? Magento is an open-source content management system. It is used to create e-commerce websites. It is developed by Varien ,Inc, a US private company headquartered in Culver City, California. It...

5 minutes read.

Top 15 XML Interview Questions for 2024

1) What is XML? XML (eXtensible Markup Language) is designed to transport and store data. It has user executive tags i.e. no pre-defined tags used as in HTML. This language is...

2 minutes read.

Top 30 Perl interview questions for 2024

1) What is Perl? It is a programming language which is used for web development, system administration, GUI development and etc. It is also known as cross-platform programming language. 2) What are the...

4 minutes read.

Top 15 Java BeanUtils Interview Questions for 2024

1) What is Java BeanUtils? Java BeanUtils is a design pattern component of the Apache Commons. It facilitates architecture for Java language which is derived from JavaAPI. It helps to set...

3 minutes read.

Top 30 DBMS Interview Questions for 2024

1) What is DBMS? DBMS (Data Base Management System) is a technology for managing data of database i.e. Create, Update, Delete, Alter. 2) What is a Database System? It is defined as collection...

4 minutes read.

Top 12 Docker Interview Questions for 2024

Most frequently asked Docker Interview Questions and Answers for Fresher 1. What is Docker? Docker is a new form of Software Containerization in the field of IT. It is an open-source container...

4 minutes read.

Top 25 CoffeeScript Interview Questions for 2024

1) What is CoffeeScript? It is a language that compiles into JavaScript. CoffeeScript is an attempt to expose good parts of JavaScript so, that user can code more easily. 2) Name the...

3 minutes read.

Top 30 CodeIgniter interview Questions for 2024

1) What is CodeIgniter? CodeIgniter is an open source PHP framework. It is used to develop web applications and websites. It is loosely based on MVC pattern and easy to use...

4 minutes read.

SSRS Interview Questions

1. What is SSRS? The Microsoft SQL Server Reporting Service (SSRS) is a server-based reporting platform. It allows you to produce structured reports. The reports are generally represented in the form of data, graph,...

5 minutes read.

Top 15 ExpressJS Interview Questions for 2024

1) What is ExpressJs? Express Js is a framework for node.js which is light-weight and fast. It is used to develop web and mobile applications. 2) What are the features of ExpressJs? Following...

4 minutes read.

Artificial Neural Network Interview Questions

1. Explain Neural Network?  Neural Network is a sequence of an algorithm that gives its best to recognize the underlying relationship in a data-set through a process. The artificial neural network...

8 minutes read.

Top 30 Sencha Touch Interview Questions for 2024

1) What is Sencha Touch? Sencha Touch is an UI (User Interface) JavaScript library. It is written in JavaScript. It is used to build mobile interface quickly and easily. It works...

6 minutes read.

Top 50 HTML Interview Questions for 2024

1) What is HTML? HTML stands for Hyper Text Markup Language. It is used for creating web pages and web applications. HTML documents are made up of two things: the content and the tags. 2) What are...

10 minutes read.

Top 20 C Programming | Coding Interview Questions for 2024

Most Frequently asked C programming | Coding Interview Questions and answer for Fresher C is a powerful high-level programming language.  It is a fast, portable and available for all platforms. C...

15 minutes read.

Top 30 FuelPHP Framework Interview Questions for 2024

1) What is FuelPHPFramework? FuelPHP Framework is an open source web application and written in PHP scripting language. It is based on the HMVC (Hierarchical Model View Controller) design pattern. It was released...

6 minutes read.