Total Questions : 30
Expected Time : 30 Minutes

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

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

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

4. Which status code indicates a successful Ajax request?

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

6. Which HTTP method is commonly used in Ajax for updating data on the server?

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

8. What is the purpose of the XMLHttpRequest property 'responseType' in Ajax?

9. Which method is used to cancel an ongoing Ajax request?

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

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

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

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

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

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

16. In Ajax, what does the term 'asynchronous' refer to?

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

18. What does Ajax stand for?

19. What role does the 'withCredentials' property play in Ajax requests?

20. How does the 'same-origin policy' impact Ajax requests?

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

22. Which method is used to initiate an Ajax request in JavaScript?

23. In Ajax, what is the purpose of the XMLHttpRequest method 'getAllResponseHeaders'?

24. How does the 'Blob' object contribute to handling responses in Ajax?

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

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

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

28. What role does the 'onreadystatechange' event play in Ajax?

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

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