/Numpy Sample Test,Sample questions

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

1.array.reshape(shape)

2.reshape(shape,array)

3.reshape(array,shape)

4.reshape(shape)

Posted Date:-2019-06-05 07:51:02


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

1.By Shape()

2.By reshape()

3.By ord()

4.By change()

Posted Date:-2019-06-05 07:18:05


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

1.list(array)

2.list.array

3.array.list

4.None of the above

Posted Date:-2019-06-05 07:16:15


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

1.dtype

2.type

3.typei

4.itype

Posted Date:-2019-06-05 07:22:53


Question:
How we install Numpy in the system ?

1.install numpy

2.pip install python numpy

3.pip install numpy

4.pip install numpy python

Posted Date:-2019-06-05 07:05:02


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

1.Yes

2.No

3.Sometimes

4.None of the above

Posted Date:-2019-06-05 07:14:38


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

1.0

2.1

3.2

4.3

Posted Date:-2019-06-05 07:46:53


Question:
Numpy in the Python provides the

1.Function

2.Lambda function

3.Type casting

4.Array

Posted Date:-2019-06-05 07:05:48


Question:
Numpy.array(list), what it does ?

1.It convert array to list

2.It convert list to array

3.It convert array to array

4.Error

Posted Date:-2019-06-05 07:12:32


Question:
Shape() function in Numpy array is used to

1.Find the shape of the array

2.Change the shape of the array

3.Both of the above

4.None of the above

Posted Date:-2019-06-05 07:18:55


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

1.It find the direction

2.It find the number of items

3.It find the shape

4.All of the above

Posted Date:-2019-06-05 07:21:53


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

1.To make a Matrix with all element 0

2.To make a Matrix with all diagonal element 0

3.To make a Matrix with first row 0

4.None of the above

Posted Date:-2019-06-05 07:45:24


Question:
Which of the following argument we need to pass in reshape() function?

1.Array

2.Shape

3.only array

4.Both array and shape

Posted Date:-2019-06-05 07:49:51


Question:
Which of the following counts the number of elements in Numpy array ?

1.count()

2.return()

3.shape()

4.size()

Posted Date:-2019-06-05 07:20:42


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

1.max(array)

2.array.max()

3.array(max)

4.None of the above

Posted Date:-2019-06-05 07:52:32


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

1.import numpy

2.import numpy as np

3.from numpy import *

4.All of the above

Posted Date:-2019-06-05 07:09:15


Question:
Which of the following is not valid to import the numpy module ?

1.import numpy as np

2.import numpy as n

3.import numpy as p

4.None of the above

Posted Date:-2019-06-05 07:10:15


Question:
Which of the following is the essential argument to pass in full() function of Numpy array ?

1.shape

2.value

3.Both of the above

4.None of the above

Posted Date:-2019-06-05 07:47:49


Question:
Which of the following is used to convert the list data type to the Numpy array ?

1.array(list)

2.array.list

3.Numpy.array(list)

4.None of the above

Posted Date:-2019-06-05 07:07:57


Question:
Which of the following keyword is used to access the numpy module in python ?

1.access

2.import

3.fetch

4.from

Posted Date:-2019-06-05 07:11:27


More MCQS

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!