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



Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 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 Best Website and Software Company in Allahabad