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
20 questions
Pemasaran T6 sem 1 (Pengajiann Perniagaan)
Quiz
•
University
20 questions
Why do we study English?
Quiz
•
University
20 questions
REVISION CHAPTER 8 & 9
Quiz
•
3rd Grade - University
20 questions
covid
Quiz
•
University
20 questions
Python Assignment 1
Quiz
•
University
17 questions
Section 1 - TRANSPORT DOCUMENTATION (FWD&CS)
Quiz
•
University
20 questions
QUẢN TRỊ HỌC CHAP 1
Quiz
•
University
19 questions
K2 : COMPUTER NETWORK INSTALLATION & CONFIGURATION
Quiz
•
University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
