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 

CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad