Loading

Quipoin Menu

Learn • Practice • Grow

Direction: Choose the correct option

Q1.

What is Axios?
A. A promise-based HTTP client for the browser and Node.js
B. A state management library
C. A built-in React method
D. A routing library
Direction: Choose the correct option

Q2.

How do you make a GET request with Axios?
A. axios.post(url)
B. axios.fetch(url)
C. axios.get(url)
D. axios.request('GET', url)
Direction: Choose the correct option

Q3.

How does Axios differ from Fetch?
A. Axios does not support promises
B. They are the same
C. Axios is built-in, Fetch is not
D. Axios automatically transforms JSON data, Fetch needs .json()
Direction: Choose the correct option

Q4.

How do you handle errors with Axios?
A. Using onError callback
B. Errors are ignored
C. Using error state
D. Using .catch() or try/catch with async/await
Direction: Choose the correct option

Q5.

Can Axios be used with async/await?
A. Yes, since it returns promises
B. Only with .then()
C. No, it uses callbacks
D. Only in class components