Latest Questions
Post Top Ad
Your Ad Spot
Wednesday, June 26, 2019

50 Top Ajax Interview Questions and Answers {Updated}

Ajax Interview Questions and Answers for experienced PDF, Read commonly asked Ajax Job Interview Questions with Answers PDF for Freshers.

Read Ajax Interview Questions and Answers

What is Ajax?
Ajax is abbreviated as Asynchronous JavaScript and XML. It is a new technique used to create better, faster and more interactive web systems or applications. Ajax uses asynchronous data transfer between the Browser and the web server.
This technique is used to make the internet faster and user-friendly. It is not a programming language.

What are Ajax applications?
Browser-based applications and platform-independent applications are used by Ajax.

How many types of triggers are present in the update panel?
There are two types of triggers used in update panel:
PostBackTrigger – This works as full postback and it cannot work asynchronously
AsyncPostBackTrigger – Partial postback asynchronously

What are all the controls of Ajax?
Following are the controls of Ajax:

What is the name of the DLL that contains the Ajax control tool kit?
Ajaxcontroltoolkit.dll is the DLL used for Ajax control tool kit and it can be downloaded from the internet. It can be added in the toolbox or copied directly in the bin folder.

What role of #&& in the query string?
# is treated as fragment delimiter to delimit the history state and && precedes is used to check on the information in the query string.

How to control the duration of an Ajax request?
AsyncPostBackTimeout property is used to control the duration of the Ajax request. The default value of this property is 90 seconds.
Example – <asp:ScriptManager runat=”server” id=”sample” AsyncPostBackTimeout=”40”/>

What are the advantages of Ajax?
Following are the advantages of Ajax:
Bandwidth utilization – It saves memory when the data is fetched from the same page.
More interactive, Speeder retrieval of data

What are the disadvantages of Ajax?
Following are the disadvantages of Ajax:
AJAX is dependent on Javascript. If there is some Javascript problem with the browser or in the OS, Ajax will not support
Ajax can be problematic in Search engines as it uses Javascript for most of its parts.
Source code written in AJAX is easily human readable. There will be some security issues in Ajax.
Debugging is difficult
Increases size of the requests
Slow and unreliable network connection.
Problem with browser back button when using AJAX enabled pages.

What is an update panel?
Update panel is a server control used to update the specified portion of a web page. Script Manager needs to be used whenever an update panel is used. Using the update panel, the user cannot handle outside controls.

Which are the two methods used for cross-domain Ajax calls?
There are two methods used to transfer data between the two more security domains:
CROS – Cross-Origin Resource Sharing and it works with the HTTP web browsers
JSONP – JSON with Padding which works with the HTTP GET and on legacy browsers

What are all the technologies used by Ajax?
AJAX uses the following technologies:
Document Object Model (DOM)
Extensible HTML (XHTML)
Cascading Style Sheets (CSS)

What are all the features of Ajax?
Following are the features of Ajax and they are as follows:
Live data binding
Client-side template rendering
Declarative instantiation of client components
Observer pattern on JavaScript objects and arrays
Invoking ADO.NET data services and data contexts
DataView control

What is JSON in Ajax?
JSON is abbreviated as JavaScript Object Notation.
JSON is a safe and reliable data interchange format in JavaScript, which is easy to understand for both users and machines.

What are the limitations of Ajax?
An Ajax Web Application tends to confuse end users if the network bandwidth is slow and there is no full postback running.

What are the components of the ASP.NET AJAX architecture?
There are two components of AJAX Architecture:
AJAX client architecture
AJAX server architecture

What are the extender controls?
The extender controls use a block of JavaScript code to add new and enhanced capabilities to ASP.NET.

What is AJAX Control Extender Toolkit?
AJAX Control Toolkit is one of the extenders that are used to extend or add the functionalities of the ASP.NET controls. The extenders use a block of JavaScript code to add new and enhanced capabilities to the ASP.NET controls.
AJAX Control Extender Toolkit is a free download from the site.

Where AJAX cannot be used?
Users cannot use AJAX if
If Page need to show in a search engine
If the browser does not support JavaScript
If the user wants to create a secure application

What are the pre-requisites to execute AJAX applications on a server?
AJAX is built-in functionality of .NET Framework 4.0 and AJAX application can be executed by just installing Microsoft Visual Studio 2010. To use extenders in your applications, you are required to install AJAX Control Toolkit and copy the AjaxControlToolkit.dll file to the Bin directory of your application.

Common Ajax Interview Questions and Answers PDF

What is AJAX Framework?
ASP.NET AJAX is a free framework to implement Ajax in web applications. It is used to quickly creating efficient and interactive Web applications that work across all browsers.

How can you find out that an AJAX request has been completed?
ReadyState property is used to check whether AJAX request has been completed. If the property is equal to four, then the request has been completed and data is available.

Is javascript knowledge is required to do Ajax?
Yes, if you plan to develop new AJAX functionality for your web application.

What are all the browsers support AJAX?
Following browsers support AJAX:
Internet Explorer 5.0 and above
Opera 7.6 and above
Netscape 7.1 and above
Safari 1.2 and above

How can you test the Ajax code?
JSUnit is the client side javascript code used as part of JUnit. JSUnit has been used for Ajax code.

Is Ajax said to be a technology platform or is it an architectural style?
Ajax supports both technology and an architectural style.

How can AJAX applications be debugged?
Two tools are used for debugging:
Fiddler for IE
Firebug for Mozilla.

How can we cancel the XMLHttpRequest in AJAX?
Abort() method can be called to cancel the XMLHttpRequest in Ajax.

Is AJAX code cross-browser compatible?
No, it is supporting cross-browser compatible. If the browsers support native XMLHttpRequest JavaScript object, then this can be used.

What is the name of an object used for AJAX request?
XmlHttpRequest object is used for Ajax requests.

What is a prerequisite for Update Panel in Ajax?
Script Manager is pre-requisite to use Update Panel controls.

How many update panel can be used per page?
There are no restrictions on the number of update panels per page.

What is Script Manager?
Script Manager helps manage the client side script of AJAX. Script Manager acts as a mediator as AJAX depends on JavaScript. Every page that uses AJAX has a Script Manager to enable AJAX libraries.

How Ajax objects can be created?
The following syntax can be used to create Ajax objects:
Var sample = New ajaxObject(‘path of the page’)

What are the protocols used by Ajax?
XMLHttpRequest for placing a request with the web server
Uses JSON to communicate between the client and server
UED or URL encoded data.

What are all the security issues of Ajax?
Security issues that can be encountered
When Ajax calls are sent through plain text and it may lead to know the database details
Inserting scripts can also be possible and attackers can easily penetrate into the system.

How can we handle concurrent requests?
Javascript functions should be written to handle concurrent requests and call back function can be passed as a parameter. Those parameters are passed to AjaxInteraction(URL, callback) object.

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. Refresh can be made for the partial page instead of the whole page.

Can we use nested update panel in Ajax?
Yes, we can use nested update panel in Ajax. Update panels can be nested to have more control over the Page Refresh.

What are the types of post back in Ajax?
There are two types of postbacks:
Synchronous Postback
Asynchronous Postback

How can we handle exception handling in Ajax?
ErrorTemplate which is the child tag of Script Manager is used to handle exception handling in Ajax.

What are the components of the ASP.NET Ajax Client Library?
Following components are used in Ajax client library:
Component Layer
Core Services Layer
Browser Compatibility Layer

What are the controls of the Script Management group?
The controls of script Management group are:

What are all the different data types that JSON supports?
JSON supports the following data types:

Download PDF Ajax Interview Questions with Answers

What are the goals of Ajax?
The basic goals of ASP.NET Ajax are:
Reduced web server hits
Reduced Network load
Interactive user interface
Platform and architecture neutrality
Support for both synchronous and asynchronous communication
Provide a server- and client-side framework

What is the difference between proxied and proxyless calls in AJAX?
Proxied calls are made through stub objects which can be called from PHP classes on the JavaScript side in AJAX.
Proxyless calls are made using utility JavaScript functions like HTML_AJAX.replace() and HTML_AJAX.append() in AJAX.

How many types of ready states in Ajax?
There are four ready states in Ajax:

What is the difference between RegisterClientScriptBlock, RegisterClientScriptInclude and RegisterClientScriptResource?
Following are the functions:
RegisterClientScriptBlock – The script is specified as a string parameter.
RegisterClientScriptInclude – By setting the source attribute to a URL that point to a script file.
RegisterClientScriptResource – specifies Resource name in an assembly. The source attribute is automatically populated with a URL by a call to an HTTP handler that retrieves the named script from the assembly.

Which request is better, Get or Post?
AJAX requests should use an HTTP GET request where the data does not change for a given URL requested.
An HTTP POST should be used when the state is updated on the server. This is highly recommended for consistent web application architecture.

Searches related to Ajax Interview Questions and Answers

  • ajax interview questions javatpoint
  • ajax interview questions c#
  • ajax interview questions and answers for experienced
  • ajax interview questions for experienced
  • ajax interview questions and answers pdf
  • ajax interview questions tutorialspoint
  • ajax interview questions pdf
  • ajax interview questions and answers
  • ajax jquery interview questions answers
  • ajax basic interview questions
  • basic ajax interview questions and answers
  • ajax based interview questions
  • ajax call interview questions
  • ajax coding interview questions
  • ajax control toolkit interview questions and answers
  • ajax interview questions and answers for experienced c#
  • ajax interview questions pdf download
  • ajax interview questions experienced
  • ajax interview questions for experienced professionals
  • ajax interview questions for experience
  • jquery ajax interview questions for experienced
  • ajax interview questions and answers for experienced in mvc
  • ajax interview questions for 5 years experience
  • ajax interview questions for 2 years experience
  • ajax interview questions in c#
  • ajax interview questions in mvc
  • interview questions in ajax
  • jquery ajax interview questions
  • jquery ajax interview questions and answers
  • ajax json interview questions
  • ajax java interview questions
  • interview questions on ajax
  • interview questions on ajax and jquery
  • interview questions on ajax and json
  • interview questions on ajax in php
  • interview questions on ajax in mvc
  • interview questions on ajax for experienced
  • interview questions on ajax in javascript
  • interview questions on ajax for freshers
  • ajax practical interview questions
  • ajax programming interview questions
  • php ajax interview questions and answers
  • php ajax interview questions and answers for experienced
  • ajax related interview questions
  • salesforce ajax interview questions
  • top ajax interview questions
  • ajax technical interview questions
  • ajax tricky interview questions
  • ajax truclient interview questions
  • top 50 ajax interview questions
  • top 10 ajax interview questions
  • what is ajax interview questions
  • jquery with ajax interview questions

Post Top Ad

Your Ad Spot