MCQ Answer

What is the purpose of zeros() function used in NumPy array ?

What is the purpose of zeros() function used in NumPy array ?

NumPy सरणी में उपयोग किए जाने वाले शून्य () फ़ंक्शन का उद्देश्य क्या है?
Topic : NumPy Basics

A. To make a Matrix with all diagonal element 0

B. To make a Matrix with first row 0

C. To make a Matrix with all elements 0

D. None of the above




Correct Answer is :

C. To make a Matrix with all elements 0



Explanation
Python numpy. zeros() function returns a new array of given shape and type, where the element's value as 0.
CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz