React Native Session 15 API

React Native Session 15 API

University

20 Qs

quiz-placeholder

Similar activities

QUIZ 2 - SỬ DỤNG BẢNG TÍNH CƠ BẢN -ICC

QUIZ 2 - SỬ DỤNG BẢNG TÍNH CƠ BẢN -ICC

University

20 Qs

Raspodijeljeni sustavi - uvodne vježbe

Raspodijeljeni sustavi - uvodne vježbe

University

17 Qs

TDT Workshop IT Career Roadmap

TDT Workshop IT Career Roadmap

University

15 Qs

HackHarbor 3.0 : Day 1

HackHarbor 3.0 : Day 1

University

16 Qs

Uji Pemahaman C++ dan Google Colab

Uji Pemahaman C++ dan Google Colab

10th Grade - University

20 Qs

Tin 11 Bài 10 KNTT

Tin 11 Bài 10 KNTT

11th Grade - University

20 Qs

ÔN TẬP CRV1

ÔN TẬP CRV1

6th Grade - University

22 Qs

Mini Game- THỬ TÀI AI – SIÊU NHÂN CÔNG NGHỆ

Mini Game- THỬ TÀI AI – SIÊU NHÂN CÔNG NGHỆ

University

15 Qs

React Native Session 15 API

React Native Session 15 API

Assessment

Quiz

Information Technology (IT)

University

Practice Problem

Easy

Created by

academy rikkei

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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?