Quiz on NumPy Empty Function



1. What does the numpy.empty() function do?
2. Which parameter is used to define the shape of the array in numpy.empty()?
3. What will be the default data type of the array created by numpy.empty() if not specified?
4. Can you specify the data type while creating an array with numpy.empty()?
5. What will the contents of an array created by numpy.empty() be initialized to?

Advertisements