
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
20 questions
PHP Basics and Forms

Quiz
•
University
15 questions
Test wiedzy: Tablice jednowymiarowe w C++

Quiz
•
10th Grade - University
20 questions
FIRST ROUND BINGO

Quiz
•
University
15 questions
Quizizz - SS01 - TSU PLUS - Java Fundamental

Quiz
•
University
20 questions
Pengenalan Bahasa Pemrograman Python

Quiz
•
9th Grade - University
15 questions
codingม.ปลาย

Quiz
•
12th Grade - University
14 questions
Data Structures and Algorithms Quiz

Quiz
•
University
21 questions
Data Structure Quiz

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University