Search Header Logo

Câu hỏi trắc nghiệm C++

Authored by Hải Long

Instructional Technology

Professional Development

Câu hỏi trắc nghiệm C++
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

21 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh nào dùng để in ra màn hình trong C++?

printf()

print()

echo

cout

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết thúc mỗi câu lệnh trong C++ bằng ký hiệu nào?

,

:

;

.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh `cin >> x;` trong C++ có chức năng gì?

Xuất giá trị của x

Nhập giá trị cho x

Gán x = 0

Tạo biến x

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong C++, kiểu dữ liệu nào dùng để lưu số nguyên?

float

char

int

double

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Từ khóa nào dùng để khai báo một hằng số không thay đổi?

constant

#define

const

static

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Toán tử nào dùng để tăng giá trị biến lên 1?

+=2

++

+1

inc

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh điều kiện trong C++ được viết như thế nào?

switch

if

condition

for

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?