Buổi 16 mảng 2 chiều

Quiz
•
Other
•
Professional Development
•
Medium
Nhựt Nguyễn
Used 4+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cách truy cập phần tử thứ (i, j) trong một mảng 2 chiều có kích thước m x n là gì?
arr[i][j]
arr[i, j]
arr[i*n+j]
arr[i+m+j]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kích thước của một mảng 2 chiều được tính bằng cách nào?
m + n
m * n
m - n
m / n
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Giả sử một mảng 2 chiều có kích thước 3x3, vậy các phần tử nằm ở vị trí nào của mảng?
arr[1][1] đến arr[3][3]
arr[1][1] đến arr[2][2]
arr[0][0] đến arr[2][2]
arr[0][0] đến arr[3][3]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để khai báo một mảng 2 chiều có 3 hàng và 4 cột, ta sử dụng cú pháp nào?
int arr[3][4];
int arr[4][3];
int arr[3,4];
int arr[4,3];
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong mảng 2 chiều, phần tử arr[i][j] nằm ở đâu trong bộ nhớ?
Địa chỉ của arr[i][j] sẽ bằng i+j
Địa chỉ của arr[i][j] sẽ bằng &arr+i+j
Địa chỉ của arr[i][j] sẽ bằng &arr[i][j]
Địa chỉ của arr[i][j] sẽ bằng arr[i]+j
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Mảng 2 chiều có thể được khởi tạo giá trị khi khai báo. Ví dụ: int arr[3][3] = {{1,2,3}, {4,5,6}, {7,8,9}}. Giá trị của arr[2][1] là:
1
2
4
8
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Mảng 2 chiều trong C có thể chứa các kiểu dữ liệu gì?
Chỉ kiểu int
Kiểu int và float
Kiểu int và char
Bất kỳ kiểu dữ liệu nào
Create a free account and access millions of resources
Similar Resources on Wayground
9 questions
Python Tuples

Quiz
•
Professional Development
10 questions
A P J Abdul Kalam Quiz

Quiz
•
5th Grade - Professio...
15 questions
MP Proficiency Test - VIOS

Quiz
•
Professional Development
10 questions
ASPAC Quiz 12

Quiz
•
Professional Development
10 questions
Le langage SMS

Quiz
•
9th Grade - Professio...
10 questions
Grammaire B1 le passé

Quiz
•
1st Grade - Professio...
15 questions
REV CODE

Quiz
•
Professional Development
14 questions
Buổi 6: Hàm

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Other
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
5 questions
Setting goals for the year

Quiz
•
Professional Development
14 questions
2019 Logos

Quiz
•
Professional Development
6 questions
GUM Chart Scavenger Hunt

Quiz
•
Professional Development
8 questions
Understanding Government: Limited and Unlimited

Quiz
•
Professional Development
20 questions
tape measure

Quiz
•
Professional Development
24 questions
Street Signs

Quiz
•
9th Grade - Professio...