Report Bug

Qus

What will be output for the following code ?

import numpy as np
a=np.array([2,3,4,5])
print(a.dtype)
Qus

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

import numpy as np
a=np.array([2,3,4,5])
print(a.dtype)



A. int32
B. int
C. float
D. none of these


Solution
A. int32



Explanation

All elements in array are integer so the dtype of array is int32 or int64 

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