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 Quizizz
54 questions
10 ĐIỂM TIN LÀ DỄ

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

Quiz
•
1st Grade - University
46 questions
BAI ON KHOI 5

Quiz
•
1st Grade - University
50 questions
TN HTML+CSS

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

Quiz
•
11th Grade - University
54 questions
Bài 3. Phần mềm mã nguồn mở

Quiz
•
11th Grade - University
52 questions
NHẬP MÔN CNTT 3

Quiz
•
University
54 questions
Ôn Tập CUỐI KÌ I Tin 8

Quiz
•
8th Grade - University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade