Để mô tả cấu trúc rẽ nhánh trong thuật toán, nhiều ngôn ngữ lập trình bậc cao dùng câu lệnh IF – ELSE, sau IF là <điều kiện> . Điều kiện là

MD1_Array

Quiz
•
Education
•
1st - 5th Grade
•
Medium
Bach Nguyen
Used 11+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Biểu thức số học;
Biểu thức quan hệ;
Biểu thức lôgic;
Một câu lệnh;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phát biểu nào sau đây có thể lấy làm biểu thức điều kiện trong cấu trúc rẽ nhánh ?
A + B
N mod 100
“A nho hon B”
A > B
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Cho biết giá trị của biến counter ?
let counter = 3;
if (counter > 2) {
counter = counter + 2;
}
if (counter > 4) {
counter = counter + 1;
}
console.log(counter)
3
4
5
6
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
let number = 3;
if (number > 0) {
let newNumber = 2;
}
if (newNumber > 3) {
number = 5;
}
console.log(x);
2
1
5
Chương trình lỗi
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Cho biết kết quả của chương trình ?
let x = 4;
if (--x > 4) {
x += 1;
} else {
x -= 1;
}
console.log(x);
Lỗi
2
3
4
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Kết quả của đoạn code sau là gì?
Các số chẵn từ 2 đến 9
Các số chẵn từ 2 đến 10
Các số lẻ từ 2 đến 10
Không có đáp án đúng
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Câu lệnh continue trong JavaScript được sử dụng để bỏ qua phần còn lại của vòng lặp hiện tại và tiếp tục với vòng lặp kế tiếp. Đúng hay sai?
Đúng
Sai
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Fruits and vegetable

Quiz
•
1st - 5th Grade
20 questions
Programming Knowledge Quiz (Easy)

Quiz
•
5th Grade - Professio...
20 questions
FDD-TMU-CAT-2

Quiz
•
1st Grade
15 questions
Palabras con "G"

Quiz
•
1st Grade
20 questions
Fruits and vegetables

Quiz
•
1st - 12th Grade
20 questions
PAS English Class 3 SD

Quiz
•
3rd Grade
17 questions
v-for em Vue.js

Quiz
•
3rd Grade
15 questions
Fruits and Vegetables

Quiz
•
2nd Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Education
15 questions
Character Analysis

Quiz
•
4th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
11 questions
Decimal/fraction conversions quick check

Quiz
•
5th - 7th Grade
10 questions
Identifying equations

Quiz
•
KG - University
14 questions
IREAD-3 Practice Test

Quiz
•
3rd Grade
15 questions
Multiplication Facts

Quiz
•
4th Grade