1. Home
  2. Data Science
  3. NumPy
  4. What does the term "broadcasting" refer to in NumPy?

Added 28 Jan 2024

What does the term "broadcasting" refer to in NumPy?

  1. Radio broadcasting
  2. Simultaneous operation on arrays with different shapes Correct answer
  3. Printing arrays
  4. Broadcasting live events

Correct answer

B. Simultaneous operation on arrays with different shapes

11 views

MCQSEXAM

Explanation

In NumPy, broadcasting is the rule that lets arrays of different shapes be used together in arithmetic: the smaller array is stretched (virtually) across the larger one so the operation can be performed element-wise.

Video explanation

Reference

https://www.w3schools.com/python/numpy/default.asp

Doubts & discussion

Not sure why the answer is B? 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