Search Header Logo

React Native Session 15 API

Authored by haibt@rikkei.edu.vn rikkei

Information Technology (IT)

University

Used 1+ times

React Native Session 15 API
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?