wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

MD1 - Bài1: Biến - Kiểu Dữ Liệu - Toán Tử (Kiểm tra cuối buổi))

Total questions: 10

Worksheet time: 8mins

Name
Class
Date
1.

Cho đoạn code sau, đáp án là?

let x = 50;

let y = 30;

let z = x + y;

console.log(typeof z);

a)

Number

b)

Boolean

c)

String

d)

Array

2.

Cho đoạn code sau, đáp án là?

let x = "10";

let y = "20";

let z = x + y;

console.log(typeof z + " " + z);

a)

number 30

b)

string 30

c)

string 1020

d)

number 1020

3.

Cho đoạn code sau, đáp án đúng là?

a)

happy

b)

I feel ${myFeel}

c)

"I feel ${myFeel}"

d)

I feel happy

4.

Cho đoạn code sau, đáp án đúng là?

let x = 4;

let y = "20";

console.log(x + y);

a)

24

b)

420

c)

70

d)

204

5.

Cho đoạn code sau, đâu là đáp án đúng?

console.log(`Result of 5+4 is ${5+4}`);

a)

Result of 5+4 is 9

b)

Result of 5+4 is 54

c)

Result of 5+4 is ${5+4}

d)

${5+4}

6.

Cho đoạn code sau, đáp án đúng là?

let a = "succeed";

let b = "study";

let c = "can";

let d = "only";

console.log(d + " " + b + " " + c + " " + a);

a)

only study can succeed

b)

succeed only study can

c)

succeed study can only

d)

only succeed can study

7.

Cho đoạn code sau, đâu là chuỗi đúng?

let a = "Bill Gates ";

let b = "is an American businessman, ";

let c = "was born in ";

let d = "1955 ";

let e = "he is ";

let f = " years old now";

console.log(a + c + d + b + e + `${2022 - 1955}` + f);

a)

Bill Gates was born in 1955 is an American businessman, he is 67 years old now

b)

Bill Gates is an American businessman, was born in 1955 he is 67 years old now

c)

Bill Gates was born in 1955 is an American businessman, he is 2022-1955 years old now

d)

Bill Gates was born in 1955 he is 67 years old now is an American businessman,

8.

Cho đoạn code sau, đâu là đáp án đúng?

let a = 20;

let b = "10";

let c = 30;

let d = 10;

let e = "10";

console.log(a + c + d + e + b);

a)

204020

b)

80

c)

20104010

d)

601010

9.

Cho đoạn code sau, đâu là đáp án đúng?

let a = "I'm happy ";

let b = "in RA";

let c = "to study";

console.log(a + `b + c`);

a)

I'm happy to study in RA

b)

I'm happy b + c

c)

a + b + c

d)

I'm happy `to study in RA`

10.

String, Number, Boolean là kiểu dữ liệu gì?

a)

Kiểu dữ liệu nguyên thủy

b)

Kiểu dữ liệu phức tạp

c)

Kiểu dữ liệu số và chữ

d)

Tôi không biết :(