Kiến thức về xử lý mảng 1 chiều trong C++
Quiz
•
Computers
•
University
•
Hard
Thắng Quốc
Used 2+ times
FREE Resource
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Khai báo một mảng có tên là 'numbers' gồm 5 phần tử kiểu int trong ngôn ngữ C++.
int numbers[6];
int numbers[] = {1, 2, 3, 4, 5};
int numbers[5];
int numbers[5];
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Làm thế nào để truy cập vào phần tử thứ 3 trong mảng 'numbers'?
numbers[3]
numbers[2]
number[3]
number[2]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Viết đoạn code để thay đổi giá trị của phần tử thứ 2 trong mảng 'numbers' thành 10.
numbers[2] = 10
numbers[0] = 10
numbers[1] = 10
numbers[1] = 2
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Khai báo một mảng có tên là 'grades' gồm 10 phần tử kiểu float trong ngôn ngữ C++.
float grades[10];
float grades[10]
float grades[] = new float[10];
float[] grades = new float[10];
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Làm thế nào để truy cập vào phần tử thứ 7 trong mảng 'grades'?
grades[6]
grades[5]
grades[1]
grades[0]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Viết đoạn code để thay đổi giá trị của phần tử thứ 5 trong mảng 'grades' thành 8.5.
grades[5] = 8.5
grades[6] = 8.5
grades[4] = 8.5
grades[3] = 8.5
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Viết đoạn code để tìm kiếm phần tử có giá trị 9.2 trong mảng 'grades'.
grades.index(9.2)
grades.locate(9.2)
grades.search(9.2)
grades.find(9.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
48 questions
Chuong3_Collection
Quiz
•
University
50 questions
EX-5
Quiz
•
University
50 questions
TIN HỌC 8 - ÔN TẬP GK1 2425
Quiz
•
8th Grade - University
50 questions
TIN HỌC 10 - ÔN TẬP GK1 2425
Quiz
•
10th Grade - University
48 questions
Phím Tắt 1 - Keyboard Shortcut
Quiz
•
KG - University
50 questions
Pre Test Informatika XI
Quiz
•
11th Grade - University
55 questions
Lý thuyết Word
Quiz
•
University
46 questions
Tin 3 - Ôn thi HK2
Quiz
•
University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
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
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
