Lession 4 - React.js

Lession 4 - React.js

Professional Development

10 Qs

quiz-placeholder

Similar activities

Quiz Webinar Flutter 29-04-2021

Quiz Webinar Flutter 29-04-2021

Professional Development

10 Qs

Techmag Confetti

Techmag Confetti

Professional Development

10 Qs

Behavioral patterns

Behavioral patterns

Professional Development

15 Qs

DBMS-Transactions-Revision

DBMS-Transactions-Revision

Professional Development

12 Qs

Microsoft Access

Microsoft Access

10th Grade - Professional Development

10 Qs

BÀI KIỂM TRA 10 PHÚT

BÀI KIỂM TRA 10 PHÚT

Professional Development

10 Qs

DẠY HỌC TRỰC TUYẾN

DẠY HỌC TRỰC TUYẾN

Professional Development

10 Qs

Scrum Quiz

Scrum Quiz

Professional Development

10 Qs

Lession 4 - React.js

Lession 4 - React.js

Assessment

Quiz

Computers

Professional Development

Practice Problem

Medium

Created by

Ba Nguyễn

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...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

State trong React là gì?

State là một hàm trong React.
State chỉ dùng để lưu trữ dữ liệu tĩnh.
State không thể thay đổi sau khi được khởi tạo.

State - trạng thái - là các thông tin mô tả về một cái gì đó (con người, sự vật, hiện tượng, …) tại một thời điểm cụ thể.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Có mấy cách để khai báo hàm xử lý sự kiện trong React?

1 cách
3 cách
4 cách
2 cách

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Làm thế nào để truyền hàm xử lý sự kiện thông qua props?

Sử dụng props để truyền hàm từ component cha sang component con.
Sử dụng state để quản lý hàm xử lý sự kiện.
Truyền hàm xử lý sự kiện từ component con sang component cha.
Gọi trực tiếp hàm xử lý sự kiện trong component con.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Làm thế nào để chia sẻ trạng thái giữa các thành phần?

Sử dụng local storage để lưu trữ trạng thái.
Sử dụng Context API, Redux, hoặc truyền props.
Chỉ cần sử dụng biến toàn cục.
Không cần chia sẻ trạng thái giữa các thành phần.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

SyntheticEvent là gì?

SyntheticEvent là một loại component trong React.
SyntheticEvent là một hàm xử lý sự kiện trong JavaScript.
SyntheticEvent là một thư viện bên ngoài cho React.
SyntheticEvent là đối tượng sự kiện trong React.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Làm thế nào để thêm tham số tùy chỉnh cho hàm xử lý sự kiện?

Sử dụng arrow function hoặc bind để thêm tham số tùy chỉnh.

Sử dụng biến toàn cục để thêm tham số tùy chỉnh.
Thay đổi tên hàm để thêm tham số tùy chỉnh.
Sử dụng setTimeout để thêm tham số tùy chỉnh.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cần làm gì để ngăn các hành vi mặc định hoặc ngăn sự kiện lan truyền lên trong cây DOM?

Sử dụng addEventListener() để xử lý sự kiện.
Chỉ cần xóa các phần tử khỏi DOM.
Sử dụng preventDefault() và stopPropagation() trong sự kiện.
Sử dụng setTimeout() để trì hoãn sự kiện.

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?