第七章测试
1.Numpy is a third party package for ____ in Python? ( )
A:Lambda function
B:Array
C:Type casting
D:Function

答案:B
2.How to convert a Numpy array to a list in Python? ( )
A:list.append(array)
B:array.list
C:list(array)
D:list.array
3.Which keyword is used to access the Numpy package in Python? ( )
A:from
B:import
C:fetch
D:load
4.Which one is correct syntax for the ‘reshape()’ function in Numpy? ( )
A:reshape(shape,array)
B:reshape(array,shape)
C:array.reshape(shape)
D:reshape(shape)
5.What will be the output for the following code?
import numpy as np
a = np.array([1, 2, 3], dtype = complex)
print(a) ( )
A:[[ 1.+0.j, 2.+0.j, 3.+0.j]]
B:[ 1.+0.j, 2.+0.j, 3.+0.j]
C:[ 1.+0.j]
D:Error

温馨提示支付 ¥3.00 元后可查看付费内容,请先翻页预览!
点赞(143) dxwkbang
返回
顶部