Chương 3 - Cấu trúc rẽ nhánh

Chương 3 - Cấu trúc rẽ nhánh

University

22 Qs

quiz-placeholder

Similar activities

Transportation Engineering

Transportation Engineering

University

20 Qs

COM230 Public Speaking

COM230 Public Speaking

University

20 Qs

coupling devices and safe loading

coupling devices and safe loading

University

20 Qs

PEOPLE 8th Grade Interviews 2023

PEOPLE 8th Grade Interviews 2023

University

18 Qs

HAEMORRHAGE

HAEMORRHAGE

University

19 Qs

ENFUSE QUIZ

ENFUSE QUIZ

University

20 Qs

ĐỊA 6 CUỐI KÌ I 2024-2025

ĐỊA 6 CUỐI KÌ I 2024-2025

6th Grade - University

24 Qs

Transitions and grammar

Transitions and grammar

9th Grade - University

20 Qs

Chương 3 - Cấu trúc rẽ nhánh

Chương 3 - Cấu trúc rẽ nhánh

Assessment

Quiz

Education

University

Practice Problem

Hard

Created by

Đậu Phong

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?