Aparna Dhirde
Quiz por , criado more than 1 year ago

Quiz sobre Multiple Choice Questions-NumPy, criado por Aparna Dhirde em 30-03-2020.

3275
0
0
Aparna Dhirde
Criado por Aparna Dhirde mais de 4 anos atrás
Fechar

Multiple Choice Questions-NumPy

Questão 1 de 15

1

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

Selecione uma das seguintes:

  • array.reshape(shape)

  • reshape(shape,array)

  • reshape(array,shape)

  • reshape(shape)

Explicação

Questão 2 de 15

1

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

Selecione uma das seguintes:

  • max(array)

  • array.max()

  • array(max)

  • None of the above

Explicação

Questão 3 de 15

1

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

Selecione uma das seguintes:

  • By Shape()

  • By reshape()

  • By ord()

  • By change()

Explicação

Questão 4 de 15

1

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

Selecione uma das seguintes:

  • list(array)

  • list.array

  • array.list

  • None of the above

Explicação

Questão 5 de 15

1

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

Selecione uma das seguintes:

  • dtype

  • type

  • typei

  • itype

Explicação

Questão 6 de 15

1

How we install Numpy in the system ?

Selecione uma das seguintes:

  • install numpy

  • pip install python numpy

  • pip install numpy

  • pip install numpy python

Explicação

Questão 7 de 15

1

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

Selecione uma das seguintes:

  • Yes

  • No

  • Sometimes

  • None of the above

Explicação

Questão 8 de 15

1

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

Selecione uma das seguintes:

  • 0

  • 1

  • 2

  • 3

Explicação

Questão 9 de 15

1

Numpy in the Python provides the

Selecione uma das seguintes:

  • Function

  • Lambda function

  • Type casting

  • Array

Explicação

Questão 10 de 15

1

Numpy.array(list), what it does ?

Selecione uma das seguintes:

  • It convert array to list

  • It convert list to array

  • It convert array to array

  • Error

Explicação

Questão 11 de 15

1

Shape() function in Numpy array is used to

Selecione uma das seguintes:

  • Find the shape of the array

  • Change the shape of the array

  • Both of the above

  • None of the above

Explicação

Questão 12 de 15

1

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

Selecione uma das seguintes:

  • It find the direction

  • It find the number of items

  • It find the shape

  • All of the above

Explicação

Questão 13 de 15

1

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

Selecione uma das seguintes:

  • 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

Explicação

Questão 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])

Selecione uma das seguintes:

  • 1

  • 2

  • 3

  • 4

Explicação

Questão 15 de 15

1

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

Selecione uma das seguintes:

  • import numpy

  • import numpy as np

  • from numpy import *

  • All of the above

Explicação