Aparna Dhirde
Quiz von , erstellt am more than 1 year ago

Quiz am Multiple Choice Questions-NumPy, erstellt von Aparna Dhirde am 30/03/2020.

3279
0
0
Aparna Dhirde
Erstellt von Aparna Dhirde vor mehr als 4 Jahre
Schließen

Multiple Choice Questions-NumPy

Frage 1 von 15

1

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

Wähle eine der folgenden:

  • array.reshape(shape)

  • reshape(shape,array)

  • reshape(array,shape)

  • reshape(shape)

Erklärung

Frage 2 von 15

1

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

Wähle eine der folgenden:

  • max(array)

  • array.max()

  • array(max)

  • None of the above

Erklärung

Frage 3 von 15

1

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

Wähle eine der folgenden:

  • By Shape()

  • By reshape()

  • By ord()

  • By change()

Erklärung

Frage 4 von 15

1

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

Wähle eine der folgenden:

  • list(array)

  • list.array

  • array.list

  • None of the above

Erklärung

Frage 5 von 15

1

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

Wähle eine der folgenden:

  • dtype

  • type

  • typei

  • itype

Erklärung

Frage 6 von 15

1

How we install Numpy in the system ?

Wähle eine der folgenden:

  • install numpy

  • pip install python numpy

  • pip install numpy

  • pip install numpy python

Erklärung

Frage 7 von 15

1

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

Wähle eine der folgenden:

  • Yes

  • No

  • Sometimes

  • None of the above

Erklärung

Frage 8 von 15

1

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

Wähle eine der folgenden:

  • 0

  • 1

  • 2

  • 3

Erklärung

Frage 9 von 15

1

Numpy in the Python provides the

Wähle eine der folgenden:

  • Function

  • Lambda function

  • Type casting

  • Array

Erklärung

Frage 10 von 15

1

Numpy.array(list), what it does ?

Wähle eine der folgenden:

  • It convert array to list

  • It convert list to array

  • It convert array to array

  • Error

Erklärung

Frage 11 von 15

1

Shape() function in Numpy array is used to

Wähle eine der folgenden:

  • Find the shape of the array

  • Change the shape of the array

  • Both of the above

  • None of the above

Erklärung

Frage 12 von 15

1

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

Wähle eine der folgenden:

  • It find the direction

  • It find the number of items

  • It find the shape

  • All of the above

Erklärung

Frage 13 von 15

1

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

Wähle eine der folgenden:

  • 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

Erklärung

Frage 14 von 15

1

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

Wähle eine der folgenden:

  • 1

  • 2

  • 3

  • 4

Erklärung

Frage 15 von 15

1

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

Wähle eine der folgenden:

  • import numpy

  • import numpy as np

  • from numpy import *

  • All of the above

Erklärung