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++.
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
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
Similar Resources on Wayground
51 questions
Lập trình C1

Quiz
•
University
53 questions
Cách ăn tết yên ổn

Quiz
•
12th Grade - University
53 questions
Tin 11 - Đề cương ôn tập GK1

Quiz
•
11th Grade - University
51 questions
lập trình C4

Quiz
•
University
54 questions
10 ĐIỂM TIN LÀ DỄ

Quiz
•
12th Grade - University
46 questions
TIN HOC LƠP 4 HK1

Quiz
•
1st Grade - University
47 questions
12a7

Quiz
•
12th Grade - University
46 questions
BAI ON KHOI 5

Quiz
•
1st Grade - University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade