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

Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 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 Best Website and Software Company in Allahabad