Kiến thức về xử lý mảng 1 chiều trong C++

Kiến thức về xử lý mảng 1 chiều trong C++

University

50 Qs

quiz-placeholder

Similar activities

Review 8 BMTINHOC

Review 8 BMTINHOC

University

50 Qs

[THĐC]Phần 1: Tin học căn bản(1)

[THĐC]Phần 1: Tin học căn bản(1)

University

50 Qs

Ôn Tập Tin Học 5

Ôn Tập Tin Học 5

3rd Grade - University

54 Qs

HỌC KỲ 2 ÔN TẬP TIN 5

HỌC KỲ 2 ÔN TẬP TIN 5

5th Grade - University

46 Qs

Kiến thức PowerPoint và Scratch

Kiến thức PowerPoint và Scratch

4th Grade - University

52 Qs

2nd C Programming Quiz

2nd C Programming Quiz

University

50 Qs

Ôn tập môn học tin học đại cương 1

Ôn tập môn học tin học đại cương 1

University

50 Qs

5. CB_201-250

5. CB_201-250

University

50 Qs

Kiến thức về xử lý mảng 1 chiều trong C++

Kiến thức về xử lý mảng 1 chiều trong C++

Assessment

Quiz

Computers

University

Hard

Created by

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?