Report Bug

Qus

What will be output for the following code ?

import numpy as np
a = np.array([[1, 2, 3],[0,1,4],[11,22,33]])
print (a.size)
Qus

निम्नलिखित कोड के लिए आउटपुट क्या होगा?

import numpy as np
a = np.array([[1, 2, 3],[0,1,4],[11,22,33]])
print (a.size)


A. 1
B. 3
C. 9
D. 4


Solution
C. 9



Explanation

size attribute of numPy array return the number of elements in array

CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad