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

Latest Current Affairs 2024 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2024 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