
Câu hỏi về JavaScript b2
Quiz
•
Information Technology (IT)
•
8th Grade
•
Practice Problem
•
Medium
B22DCCN034 Anh
Used 2+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong JavaScript, câu lệnh nào được dùng để kiểm tra một điều kiện và thực thi một khối mã nếu điều kiện đó đúng?
while
switch
if
for
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đoạn code nào sau đây sẽ in ra "Lớn" nếu biến `x` lớn hơn 10?
if (x > 10) { console.log("Lớn"); }
else if (x > 10) { console.log("Lớn"); }
if x > 10: console.log("Lớn")
if (x > 10) then { console.log("Lớn"); }
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để thực thi một khối mã nhiều lần với số lần lặp đã biết, bạn sẽ sử dụng vòng lặp nào?
while
do...while
for
switch
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Vòng lặp `while` khác với vòng lặp `do...while` ở điểm nào?
`while` không cần điều kiện lặp.
`do...while` luôn thực thi khối mã ít nhất một lần.
`while` chỉ thực thi khối mã một lần.
Chúng hoàn toàn giống nhau.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Từ khóa `break` trong một vòng lặp có tác dụng gì?
Bỏ qua lần lặp hiện tại và tiếp tục lần lặp tiếp theo.
Tạm dừng chương trình.
Thoát khỏi vòng lặp hiện tại.
Quay trở lại đầu vòng lặp.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh nào dưới đây sử dụng cấu trúc `switch case` một cách chính xác?
switch (day) { case 1: console.log("Thứ Hai"); }
switch day { case 1: console.log("Thứ Hai"); }
switch (day) { if (day == 1) { console.log("Thứ Hai"); } }
case day { 1: console.log("Thứ Hai"); }
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để in ra các số từ 1 đến 5, bạn sẽ điền gì vào chỗ trống trong vòng lặp sau?
for (let i = 1; _____; i++) { console.log(i); }
i < 5
i <= 5
i == 5
i < 6
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
14 questions
IC3_GS6_Level3_Bài 3: Thu hẹp phạm vi tìm kiếm
Quiz
•
8th Grade
17 questions
Quiz về kiểu dữ liệu Str
Quiz
•
6th - 8th Grade
20 questions
Ôn tập kiểm tra HKII_02
Quiz
•
8th Grade
15 questions
Khảo Sát Chất Lượng Môn TIN 8
Quiz
•
8th Grade - University
10 questions
Kiến thức công nghệ số
Quiz
•
8th Grade
14 questions
Stay Safe Online: A Quiz
Quiz
•
8th Grade
20 questions
THÔNG TIN TRONG MÔI TRƯỜNG SỐ
Quiz
•
8th Grade
18 questions
Kiến thức về thiết bị kỹ thuật số
Quiz
•
8th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Information Technology (IT)
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
15 questions
scatter plots and trend lines
Quiz
•
8th Grade
20 questions
Solving Systems of Equations by Graphing
Quiz
•
8th Grade
20 questions
Christmas Song Emojis
Quiz
•
8th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
