
Mảng 2 chiều trong C

Quiz
•
Information Technology (IT)
•
University
•
Medium
academy rikkei
Used 51+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Array + Function trong JavaScript

Quiz
•
University
15 questions
Understanding Loops in C Programming

Quiz
•
1st Grade - University
12 questions
Структуры в С++

Quiz
•
University
15 questions
Bài 26

Quiz
•
10th Grade - University
15 questions
Session 12 + 13 + 14: Searching and Sorting Algorithms

Quiz
•
University
20 questions
Вопросы по массивам в C++

Quiz
•
University
16 questions
VBA Quiz

Quiz
•
University
17 questions
Session 19: Pointer

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade