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

AEM 249 Lecture 19

Quiz
•
Computers
•
University
•
Easy
Markeith Diamond
Used 3+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Similar Resources on Quizizz
10 questions
Reshaping & vStack&hstack( )

Quiz
•
9th Grade - University
17 questions
PYTHON-QUIZ-2023

Quiz
•
University
12 questions
SAIMLDS

Quiz
•
University
10 questions
TA MODUL 7 (VERSI 3)

Quiz
•
University
10 questions
Exploring Data Visualization

Quiz
•
9th Grade - University
10 questions
PYTHON_CHAPTER 1

Quiz
•
University
15 questions
Python Workshop Day - 2

Quiz
•
University
20 questions
Python and NumPy MCQ Quiz

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade