NumPy में array बनाने के लिए निम्न में से कौन सा method प्रयोग कर सकते हैं?
Which of the following can be used to create NumPy arrays?
A
np.empty()
B
np.ones()
C
np.zeros()
D
All of the above
Explanation
-
np.empty()→ Empty array (uninitialized) -
np.ones()→ Array filled with 1s -
np.zeros()→ Array filled with 0s
All are used to create NumPy arrays.
Correct Answer: D) All of the above