Search Header Logo

Đề thi C++ về mảng

Authored by Duy Thế

Computers

12th Grade

Used 2+ times

Đề thi C++ về mảng
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

36 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hãy viết cú pháp khai báo một mảng số nguyên trong C++

arrayName size;

arrayName[size]

int arrayName[size];

int arrayName[];

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Làm thế nào để gọi phần tử thứ 3 trong mảng trong C++?

arrayName.get(3)

arrayName[3]

arrayName[2]

arrayName(2)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Làm thế nào để thêm một phần tử vào cuối mảng trong C++?

Sử dụng phương thức add_last()

Sử dụng phương thức push_back()

Sử dụng phương thức insert_end()

Sử dụng phương thức append()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hãy mô tả cú pháp khai báo một mảng chuỗi trong C++

arrayName[size]

arrayName{}

int arrayName[size]

string arrayName[size];

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Làm thế nào để truy cập và thay đổi giá trị của phần tử thứ 5 trong mảng trong C++?

arrayName[6] = newValue;

arrayName[3] = newValue;

arrayName[5] = newValue;

arrayName[4] = newValue;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Làm thế nào để xóa phần tử đầu tiên trong mảng trong C++?

Sử dụng hàm add()

Sử dụng hàm insert()

Sử dụng hàm erase()

Sử dụng hàm push_back()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hãy mô tả cú pháp khai báo một mảng số thực trong C++

int arrayName[size];

float arrayName[size];

double arrayName[size];

char arrayName[size];

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?