1. Home
  2. Data Science
  3. NumPy
  4. Which function is used to compute the cross-product of two…

Added 25 Feb 2024

Which function is used to compute the cross-product of two arrays in NumPy?

  1. np.dot()
  2. np.matmul()
  3. np.multiply()
  4. np.cross() Correct answer

Correct answer

D. np.cross()

12 views

MCQSEXAM

Explanation

The np.cross() function computes the cross-product of two arrays. It is commonly used in vector and matrix algebra, especially in applications involving vectors in three-dimensional space.

Doubts & discussion

Not sure why the answer is D? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More NumPy MCQs

Practise all NumPy MCQs

Similar MCQs