MCQ Answer

which one is the correct syntax to create an array of type float?

which one is the correct syntax to create an array of type float?

फ्लोट प्रकार की सरणी बनाने के लिए सही सिंटैक्स क्या है?
Topic : NumPy Basics

A. arr=np.float([1,2,3,4])

B. arr=np.array([1,2,3,4]).toFloat()

C. arr=np.array([1,2,3,4],dtype='float')

D. arr=np.farray([1,2,3,4])




Correct Answer is :

C. arr=np.array([1,2,3,4],dtype='float')



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