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
Similar Resources on Wayground
50 questions
[THĐC]Phần 1: Tin học căn bản(1)

Quiz
•
University
50 questions
5. CB_201-250

Quiz
•
University
53 questions
IC3 GS6 level1 1

Quiz
•
6th Grade - University
50 questions
CB_101-150

Quiz
•
University
50 questions
FinalsQuiz-CC104-MSTIP

Quiz
•
University
50 questions
ÔN VĐK TX1_Trắc nghiệm

Quiz
•
University
50 questions
Ôn tập môn học tin học đại cương 1

Quiz
•
University
50 questions
SỬ DỤNG INTERNET

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University