Total Questions : 30
Expected Time : 30 Minutes

1. What is the purpose of the 'onload' event in Ajax?

2. Which JavaScript function is commonly used to parse JSON data received in an Ajax response?

3. What is the purpose of the 'responseType' property in the XMLHttpRequest object?

4. In Ajax, what is the purpose of the 'async' attribute in the 'script' tag?

5. What is the purpose of the 'onerror' event in Ajax?

6. What is the purpose of the XMLHttpRequest readyState property?

7. Which object is commonly used to perform asynchronous requests in Ajax?

8. What does the term 'preflight request' mean in the context of Ajax?

9. What is the role of the Ajax callback function?

10. Which method is used to send an asynchronous request to the server in Ajax?

11. What is the purpose of the same-origin policy in Ajax?

12. Which method is used to perform parallel Ajax requests?

13. What is the role of the 'onabort' event in Ajax?

14. What is the purpose of the 'async' attribute in the XMLHttpRequest open method?

15. What is the main advantage of using Ajax in web development?

16. What is the purpose of the XMLHttpRequest property 'onprogress' in Ajax?

17. Which property is used to access the status code of an Ajax response?

18. What security measure is used to prevent Cross-Site Request Forgery (CSRF) in Ajax?

19. Which attribute is used to set the content type of an Ajax request?

20. Which event is triggered when an Ajax request completes successfully?

21. In Ajax, what does the term 'serialization' refer to?

22. In Ajax, what is the purpose of the 'FormData' object?

23. What is the purpose of the 'Preflight request' in Ajax?

24. Which method is used to set custom headers in an Ajax request?

25. In Ajax, what does the term 'cross-origin' refer to?

26. What is the purpose of the 'crossOrigin' property in the 'Image' object in Ajax?

27. Which status code indicates a successful Ajax request?

28. What does Ajax stand for?

29. Which JavaScript function is commonly used to handle errors in Ajax?

30. How does the 'CORS' policy impact Ajax requests?