+91 90691 39140 | +1 253 214 3115 | info@hub4tech.com | hub4tech

Frequently Asked Ajax Interview Questions and Answers

Mon, 2017-05-08 14:32
Ajax Interview Questions

Are you searching for Interview Questions and answers of Ajax? You are the right place. Here We have listed AJAX Interview Questions and Answers  for freshers/beginners and experienced with examples on Java, .Net and Php, using Xml and Json, asynchronous request handling, Ajax example with database and a lot of Ajax topics.

These questions will be helpful for your interview preparation. If you prepare these Ajax interview questions and answers you will get an idea on the frequently asked interview questions which will be helpful to crack an interview.

Ajax Interview Questions and Answers

  1. What is Ajax?
  2. Answer:
    Ajax is abbreviated as Asynchronous Javascript and XML. It is 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 internet faster and user friendly. It is not a programming language.
    Asynchronous JavaScript and XML, or Ajax (pronounced "Aye-Jacks"), is a web development technique for creating interactive web applications using a combination of XHTML (or HTML) and CSS for marking up and styling information. (XML is commonly used, although any format will work, including preformatted HTML, plain text, JSON and even EBML).

  1. Does AJAX work with Java?
  2. Answer: Absolutely. Java is a great fit for AJAX! You can use Java Enterprise Edition servers to generate AJAX client pages and to serve incoming AJAX requests, manage server side state for AJAX clients, and connect AJAX clients to your enterprise resources. The JavaServer Faces component model is a great fit for defining and using AJAX components.

  1. How many types of triggers are present in update panel?
  2. Answer: There are two types of triggers used in update panel:

    • PostBackTrigger – This works as full postback and it cannot work asynchronously
    • AsyncPostBackTrigger – Partial post back asynchronously
  1. What are all the controls of Ajax?
  2. Answer: Following are the controls of Ajax:

    • ScriptManager
    • ScriptManagerProxy
    • UpdatePanel
    • UpdateProgress
    • Timer
  1. Do Ajax applications always deliver a better experience than traditional web applications?
  2. Answer: Not necessarily. Ajax gives interaction designers more flexibility. However, the more power we have, the more caution we must use in exercising it. We must be careful to use Ajax to enhance the user experience of our applications, not degrade it.

  1. What is the difference between proxied and proxyless calls?
  2. Answer:
    Proxied calls are made through stub objects that mimic your PHP classes on the JavaScript side. E.g., the helloworld class from the Hello World example.
    Proxyless calls are made using utility javascript functions like HTML_AJAX.replace() and HTML_AJAX.append().

  1. Should I use an HTTP GET or POST for my AJAX calls?
  2. Answer: AJAX requests should use an HTTP GET request when retrieving data where the data will not change for a given request URL. An HTTP POST should be used when state is updated on the server. This is in line with HTTP idempotency recommendations and is highly recommended for a consistent web application architecture.

  1. Some of the Google examples you cite don't use XML at all. Do I have to use XML and/or XSLT in an Ajax application?
  2. Answer: No. XML is the most fully-developed means of getting data in and out of an Ajax client, but there's no reason you couldn't accomplish the same effects using a technology like JavaScript Object Notation or any similar means of structuring data for interchange.

  1. Whats with the -alpha in the install instructions?
  2. Answer: HTML_AJAX hasn't had a stable release yet and the pear installer doesn't install non stable packages by default unless you specify a version.

  1. How do I test my AJAX code?
  2. Answer: There is a port of JUnit for client-side JavaScript called JsUnit

  1. When will HTML_AJAX have a stable release?
  2. Answer: Once all the major features are complete and the API has been tested, the roadmap gives an idea of whats left to be done.

  1. What are all the browsers support AJAX?
  2. Answer: 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
  1. What role of #&& in querystring?
  2. Answer: # is treated as fragment delimiter to delimit the history state and && precedes is used to check on the information in the query string.

  1. How do I abort the current XMLHttpRequest?
  2. Answer: Just call the abort() method on the request.

  1. What is the minimum version of PHP that needs to be running in order to use HTML_AJAX?
  2. Answer: The oldest PHP version i've fully tested HTML_AJAX is 4.3.11, but it should run on 4.2.0 without any problems. (Testing reports from PHP versions older then 4.3.11 would be appreciated.)

  1. Which are the two methods used for cross domain Ajax calls?
  2. Answer: There are two methods used to transfer data between the two more 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
  1. What are all the technologies used by Ajax?
  2. Answer: AJAX uses following technologies:

    • JavaScript
    • XMLHttpRequest
    • Document Object Model (DOM)
    • Extensible HTML (XHTML)
    • Cascading Style Sheets (CSS)

Use Full Link for AJAX Training and Certification

Hitesh Patel
 
Copyright ©2015 Hub4Tech.com, All Rights Reserved. Hub4Tech™ is registered trademark of Hub4tech Portal Services Pvt. Ltd.
All trademarks and logos appearing on this website are the property of their respective owners.
FOLLOW US