Search Header Logo

Web_FE_BASIC_SS37

Authored by haibt@rikkei.edu.vn rikkei

Information Technology (IT)

University

Used 2+ times

Web_FE_BASIC_SS37
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kích thước tối đa của dữ liệu có thể lưu trữ trong localStorage là bao nhiêu?

A. 1 MB

B. 5 MB

C. 10 MB

D. 50 MB

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

localStorage lưu trữ dữ liệu như thế nào sau khi trình duyệt đóng?

A. Dữ liệu bị xóa

B. Dữ liệu còn lại cho đến khi bị xóa bằng tay

C. Dữ liệu được lưu trữ trên máy chủ

D. Dữ liệu được lưu trữ trong bộ nhớ RAM

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Dữ liệu trong localStorage có thể được chia sẻ giữa các tab hoặc cửa sổ của cùng một trình duyệt không?

A. Không, dữ liệu chỉ chia sẻ trong cùng một tab

B. Có, dữ liệu được chia sẻ giữa các tab và cửa sổ

C. Không, dữ liệu chỉ tồn tại trong cửa sổ hiện tại

D. Có, nhưng cần cấu hình đặc biệt

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

sessionStorage khác với localStorage ở điểm nào?

A. sessionStorage lưu trữ dữ liệu lâu dài còn localStorage lưu trữ tạm thời

B. sessionStorage lưu trữ dữ liệu cho mỗi phiên duyệt web, còn localStorage lưu trữ lâu dài

C. sessionStorage chỉ lưu trữ dữ liệu cho các tab khác nhau, còn localStorage lưu trữ cho toàn bộ trình duyệt

D. Không có sự khác biệt

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Dữ liệu trong sessionStorage sẽ bị xóa khi nào?

A. Khi trình duyệt đóng

B. Khi máy tính tắt

C. Khi tab hoặc cửa sổ trình duyệt đóng

D. Khi người dùng đăng xuất

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cú pháp nào để lưu dữ liệu vào sessionStorage?

A. sessionStorage.set('key', 'value');

B. sessionStorage.addItem('key', 'value');

C. sessionStorage.setItem('key', 'value');

D. sessionStorage.store('key', 'value');

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Làm thế nào để lấy dữ liệu từ sessionStorage?

A. sessionStorage.get('key');

B. sessionStorage.getValue('key');

C. sessionStorage.getItem('key');

D. sessionStorage.retrieve('key');

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?