wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Fe bronze

Total questions: 18

Worksheet time: 9mins

Name
Class
Date
1.

Chọn đáp án đúng:

console.log(`The value of b is ${b}`); let b;

a)

The value of b is undefined

b)

The value of b is

c)

Error

d)

The value of b is b

2.

console.log(typeof class School {});

a)

class

b)

object

c)

function

d)

undifined

3.
a)

a

b)

b

c)

c

d)

d

4.
a)

syntax error vì x là const

b)

{

value1: 1,

value2: 2

}

c)

{

value1: 3,

value2: 5

}

d)

{

value1: 1,

value2: 5

}

5.
a)

a

b)

b

c)

c

d)

d

6.
a)

a

b)

b

c)

c

d)

d

7.
a)

a

b)

b

c)

c

d)

d

8.
a)

Error

b)

Value: 10

c)

Value: undifined

d)

Value: [object Promise]

9.
a)

This is a, This is b

b)

This is b, This is a

c)

Error

d)

,

10.

const every = [0,1,2,3,4].every(item=>item);

console.log(every);

a)

[0,1,2,3]

b)

[1,2,3,4]

c)

4

d)

false

11.
a)

a

b)

b

c)

c

d)

d

12.

<form/> element có những method nào

a)

get, put, patch, post, delete

b)

get, post

c)

get, put, patch, post

13.

SCSS to SCC

a)

a

b)

b

c)

c

d)

d

14.
a)

.childA {

text-align: center;

}

b)

.parent {

text-align: center

}

c)

.parent {

display: flex;

justify-content: center;

}

d)

.parent {

display: flex;

align-items: center;

}

15.

Trong react 17, setState dùng cơ chế nào để so sánh giá trị cũ và giá trị hiện tại:

a)

Virtual Dom tự nhận biết

b)

Deep compare

c)

Shallow compare

16.

useEffect( ()=>{ console.log("running") } )

a)

"running" được hiển thị liên tục kể cả component không re-render

b)

"running" được hiển thị duy nhất 1 lần

c)

"running" được hiển thị sau mỗi lần component re-render

d)

Lỗi thiếu dependency

17.

Hàm return trong useEffect:

a)

Chạy sau hàm render, khi dependencies thay đổi

b)

Chạy trước hàm render, khi dependencies thay đổi

c)

Chạy sau hàm render, chạy 1 lần khi component được render

d)

Chạy trước khi component unmount

18.

setState

a)

Là đồng bộ

b)

Là bất đồng bộ

c)

Ko thể truyền callback function

d)

Nếu truyền 1 callback function vào thì là đồng bộ, còn ko thì bất đồng bộ