0% found this document useful (0 votes)
6 views2 pages

Py2 MOdule 18 Quiz

Uploaded by

Naimur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

Py2 MOdule 18 Quiz

Uploaded by

Naimur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

1. What does AJAX stand for?

a) Asynchronous JavaScript and XML


b) Automated JavaScript and XML
c) Advanced JavaScript and XML
d) Application JavaScript and XML
Answer: a

2. Which HTTP method is commonly used in AJAX to fetch data from the server?
a) POST
b) GET
c) PUT
d) DELETE
Answer: b

3. Which method is used to send data to the server in AJAX?


a) GET
b) POST
c) FETCH
d) READ
Answer: b

4. What is the main advantage of using AJAX?


a) It makes the server faster.
b) It allows updates to a web page without reloading the entire page.
c) It replaces the need for HTML in web development.
d) It improves the design of the web page.
Answer: b

5. Which method in AJAX is used to update existing data on the server?


a) GET
b) POST
c) PUT
d) DELETE
Answer: c

6. In an AJAX configuration, which property sets the request URL?


a) data
b) type
c) url
d) method
Answer: c

7. What response format is commonly used in AJAX for exchanging data?


a) HTML
b) JSON
c) CSV
d) XML
Answer: b
8. What happens when the readyState of an XMLHttpRequest object equals 4?
a) The request has not been initialized.
b) The request has been sent but not completed.
c) The request is completed, and the response is ready.
d) The request is being processed by the server.
Answer: c

9. Which of the following is an example of sending a DELETE request using AJAX?


a) $.ajax({ type: 'DELETE', url: '/tasks/1' });
b) $.delete('/tasks/1');
c) $.ajax({ method: 'REMOVE', url: '/tasks/1' });
d) $.deleteTask('/tasks/1');
Answer: a

10. Which function is used to handle AJAX success responses in jQuery?


a) error()
b) complete()
c) success()
d) done()
Answer: c

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy