AEM 249 Lecture 19

AEM 249 Lecture 19

University

15 Qs

quiz-placeholder

Similar activities

NumPy Basics Quiz

NumPy Basics Quiz

University

20 Qs

Python_IOSC

Python_IOSC

University

15 Qs

Scipy

Scipy

University

20 Qs

Python Quiz 1.6

Python Quiz 1.6

University

12 Qs

Linear Algebra Using Python

Linear Algebra Using Python

University

10 Qs

MÓDULOS Y PAQUETES PARA MACHINE LEARNING CON PYTHON

MÓDULOS Y PAQUETES PARA MACHINE LEARNING CON PYTHON

University

20 Qs

Exploring NumPy Arrays

Exploring NumPy Arrays

University

10 Qs

Detectives del Código: Explorando el Mundo del Testing en Python

Detectives del Código: Explorando el Mundo del Testing en Python

University

10 Qs

AEM 249 Lecture 19

AEM 249 Lecture 19

Assessment

Quiz

Computers

University

Easy

Created by

Markeith Diamond

Used 3+ times

FREE Resource

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)

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?