MCQ Answer

<p>What will be the output of following Python code?</p><pre>import numpy as np<br>a = np.array([(10,20,30)])<br>print(a.itemsize)</pre><div><br></div>

What will be the output of following Python code?

import numpy as np
a = np.array([(10,20,30)])
print(a.itemsize)



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

import numpy as np
a = np.array([(10,20,30)])
print(a.itemsize)
Topic : NumPy Basics

A. 10

B. 9

C. 4

D. All of the mentioned above




Correct Answer is :

C. 4



Explanation

Using itemsize, we can determine the byte size of each element. In the above code, a single-dimensional array has built, and we can determine the size of each element with the aid of the itemsize function.


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