×

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 15 Java JDBC Interview Questions for 2024

1) What are the types of JDBC Drivers in Java? JDBC Drivers are of four types are: JDBC-ODBC bridge driver Native-API driver Network Protocol driver Thin driver 2) What are the five...

4 minutes read.

Top 16 Yii PHP Framework Interview Questions for 2024

1) What is Yii Framework? Yii is an open source, web application framework based on MVC. It is written in PHP and used to design PHP applications. This application was started...

4 minutes read.

Top 30 Joomla Interview Questions for 2024

1) What is Joomla? Joomla is an open source content management system. It is used to build online applications and websites. It uses model-view-controller (MVC) web application framework. It is free and easy to...

4 minutes read.

Top 28 Firebase Interview Questions for 2024

1) What is Firebase? Firebase is a platform which is used for building Web, IOS and Android applications. It offers: Real time database Different APIs Multiple authentication types and Hosting platform 2) What are the features of...

3 minutes read.

Top 48 C# Interview Questions for 2024

1) Write a program in C# to print "HELLO WORLD"? class Program         {          static void Main(string  args[])           {             System.Console.WriteLine(" HELLO WORLD ");             }          } 2) Write a program in C# to print "TutorialandExample" using namespace? Here, namespace is used to group related classes. Using System;    namespace  TutorialandExample      {         public class           {             public static void Main(string[]  args)             {              Console.WriteLine(" TutorialandExample ");             }          }       } 3) What are the...

8 minutes read.

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: More Interactive: Very...

3 minutes read.

Top 18 Blockchain Interview Questions and Answers for 2024

Top 20 Commonly Asked Blockchain Interview Questions and Answers 1. What do you understand by Blockchain? Blockchain is a chain of blocks made up of digital pieces of information or can be defined as...

6 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 26 SEO Interview Questions for 2024

Most Frequently asked SEO Interview Questions and Answers for Fresher and Experienced 1) What is SEO? SEO stands for Search Engine Optimization. It is a set of processes followed by website owners...

4 minutes read.

Top 10 Java Swing Interview Questions for 2024

1) What is Java Swing? It is a part of JFC (Java Foundation Classess) that is used to create window-based applications. Java Swing components are platform independent and lightweight . 2) What is...

3 minutes read.

Top 30 Ruby on Rails Interview Questions for 2024

1) What is Ruby on Rails? It is a server-side web application framework. It is an open source ruby framework which is used for developing database-backed web applications. Here, no compilation phase is...

4 minutes read.

Top 30 CSS Interview Questions for 2024

1) Define the process where block elements can be centered with css. It can be centered by using margin-left and margin-right properties we can centered the block level elements. 2) Name the...

4 minutes read.

Top 15 PostgreSQL Interview Questions for 2024

1) What is PostgreSQL? PostgreSQL is a most advance open source database system. PostgreSQL is an object Oriented Relational Database Management System (ORDBMS). PostgreSQL source code is available free of charge...

3 minutes read.

Top 25 PL/SQL Interview question for 2024

1) What is PL/SQL? It is defined as SQL having Procedural features of Programming Language i.e. Procedural Language extension of SQL. 2) Enlist the section of PL/SQL block. It consist of three block ...

4 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 15 Bootstrap Interview Questions for 2024

1) Explain what is Bootstrap? It is a Framework which is used for building the web application with minimal effort. Bootstrap is also used for developing responsive, mobile-first web sites. 2) What...

10 minutes read.

Top 15 NodeJS Interview Questions for 2024

1) What is NodeJs? NodeJs is open source JavaScript based feamework used to develop I/O intensive web application. It is collections of JavaScript library and runtime environment. It is used to...

3 minutes read.

Top 18 UiPath Interview Questions for 2024

RPA UiPath Interview Questions and Answers for Fresher  1. What is RPA? RPA is an acronym for Robotic Process Automation. Robotic In RPA, Robotic is termed as an entity or machine which tries to...

7 minutes read.

Top 15 CherryPy Interview Questions for 2024

1) What is CherryPy? CherryPy is a web framework used for Python. It provides a friendly interface for Http protocol for Python developer. 2) Why we use CherryPy? CherryPy has following strength: Simplicity: It...

3 minutes read.

Top 30 AngularJS Interview Questions and Answers for 2024

Most Frequently asked AngularJS Interview Questions and Answers for Fresher 1) Describe Angular JS ? It is a powerful framework of JavaScript. AngularJS is used to design Rich Internet Application. This framework...

5 minutes read.