NIELIT O Level Exam

<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)

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.


Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad