Search Header Logo

Scipy and Numpy Quiz

Authored by Mr. 1684

Computers

University

Used 5+ times

Scipy and Numpy Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is a correct syntax to return the mathematical number PI from the constants module, if the module is imported like this:

from scipy import constants

constants.pi

constants.pi_int

PI

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is a correct syntax to a list of all units under the constants module, if the module is imported like this:

from scipy import constants

constants

dir(constants)

constants.list

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

When dealing with curves, what are the low points called?

minima

low

U

bottom

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the correct syntax to return the number of 'not zero' values in an array?

nonzeros()

no_zeros()

nozeros()

count_nonzeros()

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

When working with constanst, what would be the result of the following:

constants.kilo

10.0

1000.0

1.0

100.0

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the correct syntax to create a NumPy array?

np.array([1, 2, 3, 4, 5])

np.createArray([1, 2, 3, 4, 5])

np.object([1, 2, 3, 4, 5])

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is a correct syntax to check the number of dimensions in an array?

np.ndim

np.dim

np.ndim()

np.dim()

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?