
Mảng 2 chiều trong C
Quiz
•
Information Technology (IT)
•
University
•
Medium
academy rikkei
Used 51+ times
FREE Resource
Enhance your content in a minute
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
PHP Basics and Forms
Quiz
•
University
20 questions
FIRST ROUND BINGO
Quiz
•
University
15 questions
Test wiedzy: Tablice jednowymiarowe w C++
Quiz
•
10th Grade - University
20 questions
QUIZ 2 - SỬ DỤNG BẢNG TÍNH CƠ BẢN -ICC
Quiz
•
University
14 questions
Data Structures and Algorithms Quiz
Quiz
•
University
20 questions
Pengenalan Bahasa Pemrograman Python
Quiz
•
9th Grade - University
21 questions
Data Structure Quiz
Quiz
•
University
15 questions
IT12 (Finals) - Quiz 1
Quiz
•
University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
Discover more resources for Information Technology (IT)
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
25 questions
Waves-8th Grade Physical Science
Quiz
•
KG - University
41 questions
Unit 8 Key Terms
Quiz
•
11th Grade - University
10 questions
Product & Quotient Derivative Rules
Quiz
•
University
5 questions
How to Calculate Force - Newton's 2nd Law of Motion
Interactive video
•
10th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
