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 2021 CCC Practice Test Hindi 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