DS_NumPy_TEST1

DS_NumPy_TEST1

University

12 Qs

quiz-placeholder

Similar activities

Pemrograman Web 1

Pemrograman Web 1

University

10 Qs

Round 1

Round 1

University

15 Qs

R variable Data Type and Flow Control Quiz

R variable Data Type and Flow Control Quiz

University

12 Qs

Introduction to Django Framework Quiz

Introduction to Django Framework Quiz

University

15 Qs

introduction to computer graphics

introduction to computer graphics

University

10 Qs

CCIS 104 Quiz # 1.3

CCIS 104 Quiz # 1.3

University

11 Qs

Clustering_Pertemuan2_Quiz_Ceria

Clustering_Pertemuan2_Quiz_Ceria

University

10 Qs

assemblyLanguageChap3

assemblyLanguageChap3

University

10 Qs

DS_NumPy_TEST1

DS_NumPy_TEST1

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

RAJU S

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function would you use to create a 2x3 array of random integers between 0 and 10?

np.random.randint(0, 10, size=(2, 3))

np.random.randint(2, 3, 0, 10)

np.random.rand(0, 10, (2, 3))

np.random.random_integers(0, 10, size=(2, 3))

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does np.ones((3, 4)) do?

Creates a 3x4 array filled with ones

Creates a 4x3 array filled with ones

Creates a 3x4 identity matrix

Creates a 4x3 identity matrix

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function sorts the elements of an array in ascending order?

np.sort()

np.argsort()

np.order()

np.arrange()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you find the unique elements in a NumPy array?

np.unique()

np.distinct()

np.single()

np.nonduplicate()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to concatenate two arrays along a specified axis?

np.concatenate()

np.append()

np.join()

np.merge()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does np.transpose(arr) do to the array arr?

Rotates the array by 90 degrees

Flattens the array

Transposes the array (flips axes)

Reshapes the array

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary purpose of NumPy?

Web development

Data analysis

Scientific computing

Game development

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

Already have an account?