YouTube Icon

Interview Questions.

29 Ajax Interview Questions and Answers - Mar 04, 2023

fluid

29 Ajax Interview Questions and Answers

1. What is Ajax?

Ajax stands for Asynchronous JavaScript and XML. It is a latest and extra efficient method for asynchronous facts switch among browser and net server. It permits to send and obtain statistics without reloading internet browser, therefore, it is a fast technique.

2. What are the advantages of Ajax?

Data is retrieved speedy as simplest critical facts are sent to server.

It makes packages rapid and interactive.

Bandwidth usage

three. What are the disadvantages of Ajax?

It is JavaScript structured. If JavaScript is disabled in browser, ajax will not feature.

Source code of ajax is human readable because of which safety problem can arise.

Debugging is hard

Accessibility problems. As ajax disable backward/forward buttons because of which accessibility of internet site is affected.

Four. Give the examples of utility of ajax?

Most internet programs use ajax generation like Gmail, Twitter, Facebook and so forth.

5. How ajax works?

User ship request from a browser in which JavaScript is enabled. XMLHttpRequest item gets name and sent it to server. Server retrieves records and sends XML or JSON statistics back to HMLHttpRequest callback feature and facts is shown to consumer on browser.

6. What is XMLHttpRequest item?

It is used for asynchronous transfer of facts between browser(customer) and internet server.

7. What are the dreams of Ajax?

Reduce the visitors travels between the patron and the server.

Faster reaction time

Reduced Network load

Interactive person interface

Improved performance with the aid of negating web page postback.

Support for synchronous in addition to asynchronous verbal exchange

Provision of server-side and customer-facet frameworks.

Eight. What technology are used by Ajax?

AJAX makes use of following the technologies.

Document Object Model (DOM) :

JavaScript

XMLHttpRequest

Hypertext Markup Language (HTML)

Extensible HTML (XHTML)

Cascading Style Sheets (CSS)

nine. What are the controls of Ajax?

Ajax has following center controls.

UpdatePanel

UpdateProgress

ScriptManager

ScriptManagerProxy

Timer manage

10. What is UpdatePanel control?

UpdatePanel allows rendering partial web page. You can refresh critical components of the page as opposed to clean entire page.

Eleven. What is UpdateProgress control?

UpdateProgress manage  suggests the progress for all partial-web page updates at the page. You can use an UpdatePanel manipulate for every UpdateProgress manipulate.

12. What is ScriptManager manage?

There is handiest one ScriptManager manipulate in one web page. It registers ajax library scripts for that page. It also creates proxies for asynchronous net service call.

Thirteen. What is ScriptManagerProxy control?

As stated above there may be only one ScriptManager control in a single page but the page may have multiple ScriptManagerProxy controls. If you have the ScriptManager in grasp web page a good way to go throughout all pages, you can not add some other ScriptManager to underlying pages, instead ScriptManagerProxy control would be introduced to the ones underlying pages otherwise the web page might show mistakes.

14. What is timer manage in ajax?

Timer manipulate permits you to do postbacks at certain periods. It permits timed partial updates web page while used with UpdatePanel manipulate.

15. What is JSON in Ajax?

JSON is an abbreviation of JavaScript Object Notation. Data exchange is quicker than XML and is easy to recognize.

16. What is the name of the DLL that includes Ajax control tool kit?

Ajaxcontroltoolkit.Dll carries Ajax manipulate toolkit.

17. What are styles of postback in Ajax?

There are  kinds, synchronous postback and asynchronous postback.

18. What is the distinction between synchronous and asynchronous postback?

In case of synchronous postback, entire internet web page is despatched to server while most effective vital records are despatched to server in asynchronous postback.

19. What is server-side ajax framework?

It facilitates in growing Ajax functionality and helps server controls and components.

20. What is customer-side ajax framework?.

It allows growing net packages having wealthy user interactivity. It includes set of java libraries which can be independent of ASP.NET

21. What strategies are used in cross domain Ajax calls?

Following  techniques are used for move domain ajax calls.

Cross Origin Resource Sharing(CORS)  works with the HTTP net browsers.

JSON with Padding(JSONP) works with the HTTP GET and on legacy browsers.

22. What are the additives of ASP.NET Ajax Client Library?

Ajax purchaser library includes following components.

Component Layer

Core Services Layer

Browser Compatibility Layer

23. What are extender controls?

Extender controls uses JavaScript code to decorate patron functionality of ASP.Net. For example, time picker is an extender control which is used to enter time.

24. Which browsers guide AJAX?

Following browsers guide AJAX:

Microsoft Internet Explorer 5 and above.

Mozilla Firefox 1.Zero and above.

Netscape 7.1 and above.

Apple Safari 1.2 and above.

Opera 7.6 and above.

25. How can AJAX programs be debugged?

Two tools are used for debugging:

By the use of external application Fiddler .

By the usage of community tab or the use of Firebug in Mozilla.

26. What are the protocols utilized by Ajax?

XMLHttpRequest

HTTP’s GET or POST

URL encoded statistics

JSON for conversation between purchaser and server.

27. What are a few not unusual ajax framework?

MooTools: It is one of the popular JavaScript toolkits that is frequently used for growing visual outcomes.

Google Web Toolkit (GWT): It allows builders to create wealthy Ajax programs the usage of Java.

Dojo Toolkit: It is most famous toolkit and utilized in massive variety of programs. It is a modular JavaScript toolkit which is shipped beneath an open-supply license. Dojo toolkit includes many person interface consequences, widget APIs, drag and drop AISs and so on.

Yahoo User Interface(YUI):  YUI library is an open supply JavaScript framework and is used to make interactive applications.

Spry: This framework changed into advanced through Adobe. It includes animation and visible results additives, a data binding thing, and a framework to crate widgets.

28. What is wealthy internet software (RIA)?

It is a web software which has many characteristics of desktop software software program. It has short response time and plenty of superior functions. An RIA is browser dependent or require browser plugin or a digital device to supply consumer utility.

29. What are features protected in Microsoft Ajax library?

Imperative syntax

Script loader

Client facts access

Client facts context

ADONetDataContext




CFG