Search Header Logo

AEM 249 Lecture 19

Authored by Markeith Diamond

Computers

University

Used 3+ times

AEM 249 Lecture 19
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a logical function in NumPy that tests whether all array elements along a given axis evaluate to True?

np.logical_and(a, b)

np.isfinite(a)

np.linalg.matrix_power(a, n)

np.allclose(a, b, tol)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the @ operator do in NumPy?

Performs matrix addition

Performs element-wise multiplication

Performs matrix multiplication

Performs element-wise addition

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function in NumPy is used to calculate the matrix or vector norm?

np.linalg.det(a)

np.linalg.matrix_power(a, n)

np.linalg.norm(a)

np.linalg.inv(a)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the np.logical_xor(a, b) function in NumPy do?

Compute the truth value of a and b element-wise

Compute the truth value of a or b element-wise

Compute the truth value of not a element-wise

Compute the truth value of a exclusive or b element wise

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function in NumPy is used to calculate the determinant of an array?

np.linalg.inv(a)

np.linalg.det(a)

np.linalg.matrix_power(a, n)

np.linalg.norm(a)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the np.isinf(a) function in NumPy do?

Test element-wise for negative infinity

Test element-wise for positive or negative infinity

Test element-wise for NaN

Test element-wise for finiteness

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function in NumPy is used to calculate the inverse of a matrix?

np.linalg.det(a)

np.linalg.inv(a)

np.linalg.matrix_power(a, n)

np.linalg.norm(a)

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?