Aparna Dhirde
Test por , creado hace más de 1 año

Test sobre Multiple Choice Questions-NumPy, creado por Aparna Dhirde el 30/03/2020.

3241
0
0
Aparna Dhirde
Creado por Aparna Dhirde hace alrededor de 4 años
Cerrar

Multiple Choice Questions-NumPy

Pregunta 1 de 15

1

Correct syntax of the reshape() function in Numpy array python is

Selecciona una de las siguientes respuestas posibles:

  • array.reshape(shape)

  • reshape(shape,array)

  • reshape(array,shape)

  • reshape(shape)

Explicación

Pregunta 2 de 15

1

Which of the following find the maximum number in the Numpy array ?

Selecciona una de las siguientes respuestas posibles:

  • max(array)

  • array.max()

  • array(max)

  • None of the above

Explicación

Pregunta 3 de 15

1

How we can change the shape of the Numpy array in python?

Selecciona una de las siguientes respuestas posibles:

  • By Shape()

  • By reshape()

  • By ord()

  • By change()

Explicación

Pregunta 4 de 15

1

How we can convert the Numpy array to the list in python?

Selecciona una de las siguientes respuestas posibles:

  • list(array)

  • list.array

  • array.list

  • None of the above

Explicación

Pregunta 5 de 15

1

How we can find the type of numpy array in python ?

Selecciona una de las siguientes respuestas posibles:

  • dtype

  • type

  • typei

  • itype

Explicación

Pregunta 6 de 15

1

How we install Numpy in the system ?

Selecciona una de las siguientes respuestas posibles:

  • install numpy

  • pip install python numpy

  • pip install numpy

  • pip install numpy python

Explicación

Pregunta 7 de 15

1

It is possible to convert the Numpy array to list in python ?

Selecciona una de las siguientes respuestas posibles:

  • Yes

  • No

  • Sometimes

  • None of the above

Explicación

Pregunta 8 de 15

1

Minimum number of argument to pass in full() function in Numpy array ?

Selecciona una de las siguientes respuestas posibles:

  • 0

  • 1

  • 2

  • 3

Explicación

Pregunta 9 de 15

1

Numpy in the Python provides the

Selecciona una de las siguientes respuestas posibles:

  • Function

  • Lambda function

  • Type casting

  • Array

Explicación

Pregunta 10 de 15

1

Numpy.array(list), what it does ?

Selecciona una de las siguientes respuestas posibles:

  • It convert array to list

  • It convert list to array

  • It convert array to array

  • Error

Explicación

Pregunta 11 de 15

1

Shape() function in Numpy array is used to

Selecciona una de las siguientes respuestas posibles:

  • Find the shape of the array

  • Change the shape of the array

  • Both of the above

  • None of the above

Explicación

Pregunta 12 de 15

1

What is the use of the size attribute in Numpy array in python ?

Selecciona una de las siguientes respuestas posibles:

  • It find the direction

  • It find the number of items

  • It find the shape

  • All of the above

Explicación

Pregunta 13 de 15

1

what is the use of the zeros() function in Numpy array in python ?

Selecciona una de las siguientes respuestas posibles:

  • To make a Matrix with all element 0

  • To make a Matrix with all diagonal element 0

  • To make a Matrix with first row 0

  • None of the above

Explicación

Pregunta 14 de 15

1

What gets printed?
import numpy as np
ary=np.array([1,2,3,5,8])
ary=ary+1
print(ary[1])

Selecciona una de las siguientes respuestas posibles:

  • 1

  • 2

  • 3

  • 4

Explicación

Pregunta 15 de 15

1

Which of the following is correct way to import the Numpy module in your program ?

Selecciona una de las siguientes respuestas posibles:

  • import numpy

  • import numpy as np

  • from numpy import *

  • All of the above

Explicación