AEM 249 Lecture 19

AEM 249 Lecture 19

University

15 Qs

quiz-placeholder

Similar activities

IIP D1 - Introduction to Data Analysis

IIP D1 - Introduction to Data Analysis

University

10 Qs

IDEs and Programming Tools - Activity 1

IDEs and Programming Tools - Activity 1

University

11 Qs

NumPy

NumPy

University

20 Qs

Bertelsmann AI Track Quiz Initiative #3

Bertelsmann AI Track Quiz Initiative #3

University - Professional Development

20 Qs

PPS PYTHON QUIZ

PPS PYTHON QUIZ

University

20 Qs

Python, NumPy, and Pandas Quiz

Python, NumPy, and Pandas Quiz

University

20 Qs

Python Quiz

Python Quiz

University

20 Qs

Django quiz

Django quiz

University

20 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?