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
45 questions
C3. Giao dich dien tu

Quiz
•
University
46 questions
Cuộc Sống Trực Tuyến

Quiz
•
3rd Grade - University
46 questions
Ôn tập

Quiz
•
10th Grade - University
50 questions
TN HTML+CSS

Quiz
•
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
50 questions
PTIT Giữa kỳ - CSDL

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade