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

Máy tính - Người bạn mới của em

Máy tính - Người bạn mới của em

2nd Grade - University

50 Qs

TIN HỌC 6 - ÔN TẬP GK1 2425

TIN HỌC 6 - ÔN TẬP GK1 2425

6th Grade - University

50 Qs

Technical Training Test for III BTech - VCE - CSE

Technical Training Test for III BTech - VCE - CSE

University

45 Qs

UTS Struktur Data

UTS Struktur Data

University

53 Qs

Ngôn ngữ lập trình C/C++

Ngôn ngữ lập trình C/C++

University

50 Qs

Unit 5 - communication plan

Unit 5 - communication plan

University

48 Qs

FT1 - App

FT1 - App

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

Practice Problem

Hard

Created by

Thắng Quốc

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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?