Search Header Logo

Buổi 3_ Biến trong C++ (1)

Authored by Thanh Huyền

Computers

6th - 8th Grade

Used 7+ times

Buổi 3_ Biến trong C++ (1)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu nào sau đây khai báo biến số nguyên đúng cú pháp?

int a = "5";

int a = 5;

a int = 5;

int a := 5;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu nào sau đây khai báo biến số thực đúng?

float x = 2.5;

float x = '2.5';

float = x 2.5;

float x = "2.5";

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Biến char dùng để lưu kiểu dữ liệu nào?

Một từ

Một câu

Một ký tự

Một số nguyên

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào sau đây khai báo đúng một biến char?

char x = "A";

char x = 'A';

char x = A;

char = 'A';

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào khai báo đúng một biến logic (boolean)?

bool check = True;

boolean check = false;

bool check = true;

bool check = "true";

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả của dòng lệnh sau là gì? bool x = false; cout << x;

false

0

true

1

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Đâu là tên biến hợp lệ trong C++?

float

123abc

diem_so

ten hoc sinh

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?