Chương 3 - Cấu trúc rẽ nhánh
Quiz
•
Education
•
University
•
Hard
Đậu Phong
FREE Resource
22 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Toán tử nào sau đây là toán tử quan hệ?
+
==
%
!
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh if nào đúng trong C++?
if x == 10
if (x == 10)
if x = 10
if (x = 10)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Biến cờ (Flag) là gì?
Một biến có thể chứa nhiều giá trị
Một biến chỉ có thể chứa true hoặc false
Một biến lưu trạng thái của chương trình
Một biến lưu trữ số nguyên
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Toán tử logic nào sau đây dùng để kiểm tra điều kiện "và" (AND)?
&&
||
!
==
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh if/else nào sau đây là đúng?
A. if (a > b) cout << "A"; else cout << "B";
B. if (a > b) cout << "A"; else {cout << "B";}
C. if (a > b) {cout << "A";} else cout << "B";
D. Tất cả các đáp án
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh if lồng nhau có thể dùng trong trường hợp nào?
Khi cần kiểm tra nhiều điều kiện liên tiếp
Khi chỉ có một điều kiện đơn giản
Khi không có điều kiện nào cả
Khi cần dừng chương trình
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Toán tử điều kiện (ternary operator) trong C++ là gì?
if (điều kiện) else
(điều kiện) ? biểu_thức_đúng : biểu_thức_sai
(điều kiện) && biểu_thức_đúng || biểu_thức_sai
switch (điều kiện)
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
24 questions
Алгоритми №2
Quiz
•
University
19 questions
Chương 1 - Giới thiệu ngôn ngữ lập trình
Quiz
•
University
19 questions
MLA Citation Methods
Quiz
•
University
25 questions
Tes Umum PPKD JB
Quiz
•
University
25 questions
KOD ARAHAN HTML Tingkatan 1
Quiz
•
12th Grade - University
17 questions
9. 他住哪儿?
Quiz
•
University
23 questions
Statistika
Quiz
•
University
20 questions
Indirect and Direct questions
Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Education
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms
Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
20 questions
La Hora
Quiz
•
9th Grade - University
7 questions
Cell Transport
Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University