
React Native Session 15 API
Quiz
•
Information Technology (IT)
•
University
•
Practice Problem
•
Easy
academy rikkei
Used 1+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh nào sau đây được sử dụng để cài đặt thư viện axios thông qua npm?
npm install react-native-axios
npm install axios
npm add axios-library
npm get axios
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để lấy dữ liệu từ một API endpoint, bạn nên sử dụng phương thức nào của axios?
axios.post()
axios.push()
axios.get()
axios.fetch()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cú pháp đúng để thực hiện một yêu cầu POST bằng axios là gì?
axios.post('/api/users')
axios.post('/api/users', { name: 'John' })
axios.post({ name: 'John' }, '/api/users')
axios.post('/api/users').data({ name: 'John' })
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Khi một yêu cầu axios.get() thành công, dữ liệu trả về từ server thường nằm trong thuộc tính nào của đối tượng response?
response.json
response.text
response.data
response.content
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để cập nhật toàn bộ thông tin của một tài nguyên đã tồn tại trên server, phương thức nào thường được sử dụng?
axios.post()
axios.patch()
axios.put()
axios.update()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phương thức nào được sử dụng để xóa một tài nguyên trên API?
axios.remove('/api/users/1')
axios.delete('/api/users/1')
axios.get('/api/users/1/delete')
axios.drop('/api/users/1')
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
axios.create() được sử dụng để làm gì?
Tạo ra một yêu cầu GET mới.
Xóa một cấu hình axios đã có.
Tạo một instance (thể hiện) mới của axios với cấu hình tùy chỉnh (như baseURL, headers).
Chỉ để gửi dữ liệu dạng form.
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
18 questions
Câu hỏi về quy trình phát triển phần mềm
Quiz
•
University
15 questions
CNTT
Quiz
•
University
15 questions
chương5-ktmp
Quiz
•
University
15 questions
HTTQL nhóm 5
Quiz
•
University
19 questions
Manufacturing IT part
Quiz
•
University
21 questions
TR01-HT01-OP'4
Quiz
•
University
24 questions
Codean | Rest API Error Handling in Spring Boot
Quiz
•
University
20 questions
Chương 7 - Ứng dụng HTTT
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University
