Search Header Logo

LẬP TRÌNH c++

Authored by Phạm Thị Bích Thảo

Computers

10th - 12th Grade

Used 20+ times

LẬP TRÌNH c++
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

1 min • 1 pt

Cú pháp nào sau đây để đánh dấu sự bắt đầu và kết thúc của một khối lập trình ?

{ }

-> and <-

BEGIN and END

( and )

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Cú pháp nào sau đây dùng để xuống dòng ?

\s

\r

\n

\t

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Chọn cách khai báo biến đúng?

int a;b;c;

int a,b,c;

int:a,b,c;

var a,b,c:integer;

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Cho biết kết quả của đoạn chương trình sau:

int a; a=23/8; cout<<a;

2.875

2

1

0

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Cú pháp lệnh nhập dữ liệu cho biến từ bàn phím trong C++ là

cin>>tenbien;

cin<<tenbien;

cout>>tenbien;

cin tenbien;

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Trong ngôn ngữ lập trình C++, câu lệnh nào sau đây là đúng ?

if (biểu thức ) ; câu_lệnh_1 ; else câu_lệnh_2 ;

if (biểu thức) ; câu_lệnh_1 else câu_lệnh_2 ;

if (biểu thức) câu_lệnh_1 ; else câu_lệnh_2 ;

if (biểu thức ) câu_lệnh_1 else câu_lệnh_2 ;

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Khi thực thi câu lệnh: cout << "150+250"; thì kết quả hiển thị là gì?

150

250

400

150+250

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?