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
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
10 questions
Umanismul românesc
Quiz
•
Professional Development
13 questions
Rocketlane Quiz for Yellow
Quiz
•
Professional Development
19 questions
N9 révisions de l'unité 4
Quiz
•
Professional Development
11 questions
LATIHAN CU01-CU02
Quiz
•
12th Grade - Professi...
16 questions
CroKiX PC®
Quiz
•
Professional Development
16 questions
Quiz Avengers (uleprzany)
Quiz
•
2nd Grade - Professio...
16 questions
COVID19
Quiz
•
Professional Development
15 questions
China Shipment
Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
Discover more resources for Other
10 questions
How to Email your Teacher
Quiz
•
Professional Development
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
16 questions
Spooky Season Quiz
Quiz
•
Professional Development
10 questions
Halloween Trivia
Quiz
•
Professional Development
20 questions
Context Clues: Multiple Meaning Words
Quiz
•
Professional Development
18 questions
Do or Does
Quiz
•
Professional Development
31 questions
Servsafe Food Manager Practice Test 2021- Part 1
Quiz
•
9th Grade - Professio...
