Search Header Logo

Mảng 2 chiều trong C

Authored by haibt@rikkei.edu.vn rikkei

Information Technology (IT)

University

Used 51+ times

Mảng 2 chiều trong C
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

16 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Cách nào khai báo một mảng số nguyên gồm 5 phần tử trong C?

int array[5]

int array[]

int array[5] = {0;}

int array = {5}

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Làm thế nào để truy cập phần tử thứ 4 của một mảng trong C?

array[2];

array[3];

array(3);

array(2);

3.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Độ dài (length) của một mảng số nguyên được khai báo như thế nào?

array.size();

sizeof(array)/sizeof(int};

sizeof(array)/sizeof(array[0]);

sizeof(array)/sizeof(int);

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Lệnh nào dùng để khởi tạo một mảng với các giá trị ban đầu?

int array[] = {1, 2, 3, 4, 5};

int array = [1, 2, 3, 4, 5];

int array[5];

int array[5] = {1, 2, 3, 4, 5};

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cách nào để lặp qua các phần tử của một mảng bằng vòng lặp for?

for (int i = 0; i <= n; i++)

for (int i = 0; i < n; i++)

for (int i = 0; i < sizeof(array); i++)

for (int i = 0; i < sizeof(array)/sizeof(array[0]); i++)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Chỉ số (index) của mảng trong lập trình C được bắt đầu từ mấy?

0

1

2

3

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Phần tử cuối cùng ở trong mảng sẽ có chỉ số là bao nhiêu?


Chỉ số = Độ dài của mảng

Chỉ số = Độ dài của mảng + 1

Chỉ số = Độ dài của mảng - 1

Chỉ số = Độ dài của mảng + 2

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?