Search Header Logo

android 8

Authored by Bùi Lưu

Computers

University

Used 4+ times

android 8
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

46 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Phương thức nào dưới đây được sử dụng để đọc phản hồi từ server khi sử dụng HttpURLConnection? Loại: Radio | Số đáp án đúng: 1

A. getResponseCode()

B. getInputStream()

C. readResponse()

D. fetchResponse()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Retrofit là gì trong Android? Loại: Radio | Số đáp án đúng: 1

A. Một thư viện để quản lý cơ sở dữ liệu.

B. Một thư viện để thực hiện kết nối mạng.

C. Một framework để xây dựng giao diện người dùng.

D. Một công cụ để quản lý bộ nhớ.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Phương thức nào dưới đây được sử dụng để tạo một instance của Retrofit? Loại: Radio | Số đáp án đúng: 1

A. Retrofit.Builder()

B. new Retrofit()

C. Retrofit.create()

D. Retrofit.instance()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Điền vào chỗ trống trong đoạn code dưới đây để thiết lập phương thức HTTP và thêm một header vào yêu cầu: connection.__________(“GET”) connection.__________(“Authorization”, “Bearer token”) Loại: Radio | Số đáp án đúng: 1

A. setRequestProperty, setRequestMethod

B. setMethod, addRequestHeader

C. setRequestMethod, setRequestProperty

D. setHttpMethod, setHeader

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

CoroutineScope là gì?

Loại: **Radio** | Số đáp án đúng: **1**

A.

Một loại dữ liệu

B. Một giao diện quản lý vòng đời coroutine

C.

Một thư viện bên ngoài

D.

Một hàm không đồng bộ

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Đoạn code nào dưới đây dùng để thực hiện một tác vụ không đồng bộ và không trả về giá trị? Loại: Radio | Số đáp án đúng: 1

A. async {}

B. launch {}

C. runBlocking {}

D. withContext {}

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Phương thức HTTP GET được sử dụng để làm gì? Loại: Radio | Số đáp án đúng: 1

A. Gửi dữ liệu từ client đến server

B. Lấy dữ liệu từ server về client

C. Xóa dữ liệu từ server

D. Cập nhật dữ liệu trên server

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?