Search Header Logo

Quiz về NumPy và Pandas

Authored by Mr. Bang

Education

7th Grade

Used 2+ times

Quiz về NumPy và Pandas
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

38 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

NumPy được sử dụng chủ yếu cho mục đích gì?

Tính toán ma trận và mảng

Vẽ đồ thị

Xử lý văn bản

Phát triển giao diện

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để tạo một mảng 1 chiều với các phần tử từ 0 đến 4, ta dùng:

np.arange(5)

np.array([0, 4])

np.zeros(5)

np.linspace(0, 4, 5)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để tạo mảng gồm toàn các số 0 với kích thước 3x3, ta sử dụng hàm:

np.zeros((3, 3))

np.ones((3, 3))

np.empty((3, 3))

np.full((3, 3), 0)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh np.random.rand(3, 2) tạo ra:

Mảng 3x2 chứa các số ngẫu nhiên từ 0 đến 1

Mảng 2x3 chứa các số ngẫu nhiên từ 0 đến 1

Mảng 3x2 chứa các số ngẫu nhiên nguyên

Mảng 2x3 chứa các số ngẫu nhiên nguyên

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để tìm phần tử lớn nhất trong mảng, ta sử dụng:

np.max()

np.maximum()

np.max_element()

np.maximum_element()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để xác định kích thước của mảng, ta dùng:

shape

size

length

dimension

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để thay đổi hình dạng mảng từ 1 chiều sang 2 chiều, ta dùng:

reshape()

resize()

reshape_to_2d()

dimension()

Access all questions and much more by creating a free account

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

Already have an account?