Interview Questions

AJAX Interview Questions Android Interview Questions Angular 2 Interview Questions AngularJs Interview Questions Apache Presto Interview Questions Apache Tapestry Interview Questions Arduino Interview Questions ASP.NET MVC Interview Questions Aurelia Interview Questions AWS Interview Questions Blockchain Interview Questions Bootstrap Interview Questions C Interview Questions C Programming Coding Interview Questions C# Interview Questions C++ Interview Questions Cakephp Interview Questions Cassandra Interview Questions CherryPy Interview Questions Clojure Interview Questions Cobol Interview Questions CodeIgniter interview Questions CoffeeScript Interview Questions Cordova Interview Questions CouchDB interview questions CSS Buttons Interview Questions CSS Interview Questions D Programming Language Interview Questions Dart Programming Language Interview Questions Data structure & Algorithm Interview Questions DB2 Interview Questions DBMS Interview Questions Django Interview Questions Docker Interview Questions DOJO Interview Questions Drupal Interview Questions Electron Interview Questions Elixir Interview Questions Erlang Interview Questions ES6 Interview Questions and Answers Euphoria Interview Questions ExpressJS Interview Questions Ext Js Interview Questions F# Interview Questions Firebase Interview Questions Flask Interview Questions Flex Interview Questions Fortran Interview Questions Foundation Interview Questions Framework7 Interview Questions FuelPHP Framework Interview Questions Go Programming Language Interview Questions Google Maps Interview Questions Groovy interview Questions GWT Interview Questions Hadoop Interview Questions Haskell Interview Questions Highcharts Interview Questions HTML Interview Questions HTTP Interview Questions Ionic Interview Questions iOS Interview Questions IoT Interview Questions Java BeanUtils Interview Questions Java Collections Interview Questions Java Interview Questions Java JDBC Interview Questions Java Multithreading Interview Questions Java OOPS Interview Questions Java Programming Coding Interview Questions Java Swing Interview Questions JavaFX Interview Questions JavaScript Interview Questions JCL (Job Control Language) Interview Questions Joomla Interview Questions jQuery Interview Questions js Interview Questions JSF Interview Questions JSP Interview Questions KnockoutJS Interview Questions Koa Interview Questions Laravel Interview Questions Less Interview Questions LISP Interview Questions Magento Interview Questions MariaDB Interview Questions Material Design Lite Interview Questions Materialize CSS Framework Interview Questions MathML Interview Questions MATLAB Interview Questions Meteor Interview Questions MongoDB interview Questions Moo Tools Interview Questions MySQL Interview Questions NodeJS Interview Questions OpenStack Interview Questions Oracle DBA Interview Questions Pascal Interview Questions Perl interview questions Phalcon Framework Interview Questions PhantomJS Interview Questions PhoneGap Interview Questions Php Interview Questions PL/SQL Interview Questions PostgreSQL Interview Questions PouchDB Interview Questions Prototype Interview Questions Pure CSS Interview Questions Python Interview Questions R programming Language Interview Questions React Native Interview Questions ReactJS Interview Questions RequireJs Interview Questions RESTful Web Services Interview Questions RPA Interview Questions Ruby Interview Questions Ruby on Rails Interview Questions SAS Interview Questions SASS Interview Questions Scala Interview Questions Sencha Touch Interview Questions SEO Interview Questions Servlet Interview Questions SQL Interview Questions SQL Server Interview Questions SQLite Interview Questions Struts Interview Questions SVG Interview Questions Swift Interview Questions Symfony PHP Framework Interview Questions T-SQL(Transact-SQL) Interview Questions TurboGears Framework Interview Questions TypeScript Interview Questions UiPath Interview Questions VB Script Interview Questions VBA Interview Questions WCF Interview Questions Web icon Interview Questions Web Service Interview Questions Web2py Framework Interview Questions WebGL Interview Questions Website Development Interview Questions WordPress Interview Questions Xamarin Interview Questions XHTML Interview Questions XML Interview Questions XSL Interview Questions Yii PHP Framework Interview Questions Zend Framework Interview Questions

Top 30 AJAX Interview Questions for 2022

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.



ADVERTISEMENT
ADVERTISEMENT