• Data Science MCQ Topics

• Data Science Reference

• Other Reference

# Python SciPy MCQ Questions And Answers

This section focuses on "Python SciPy" for Data Science. These Python SciPy Multiple Choice Questions (MCQ) should be practiced to improve the Data Science skills required for various interviews (campus interview, walk-in interview, company interview), placements, entrance exams and other competitive examinations.

1. SciPy stands for?

A. science library
B. source library
C. significant library
D. scientific library

2. SciPy Original author is?

A. Guido van Rossum
B. Travis Oliphant
C. Wes McKinney
D. Jim Hugunin

3. Which of the following is not correct sub-packages of SciPy?

A. scipy.cluster
B. scipy.source
C. scipy.interpolate
D. scipy.signal

4. The number of axes is called as _____.

A. object
B. Vectors
C. rank
D. matrices

5. Which of the following is true?

A. By default, all the NumPy functions have been available through the SciPy namespace
B. There is no need to import the NumPy functions explicitly, when SciPy is imported.
C. SciPy is built on top of NumPy arrays
D. All of the above

6. What will be output for the following code?

```import numpy as np

print np.arange(7)```

A. array([0, 1, 2, 3, 4, 5, 6])
B. array(0, 1, 2, 3, 4, 5, 6)
C. [0, 1, 2, 3, 4, 5, 6]
D. [[0, 1, 2, 3, 4, 5, 6]]

7. What will be output for the following code?

```import numpy as np

print np.linspace(1., 4., 6)```

A. array([ 1. , 2.2, 2.8, 3.4, 4. ])
B. array([ 1. , 1.6, 2.8, 3.4, 4. ])
C. array([ 1. , 1.6, 2.2, 2.8, 3.4, 4. ])
D. array([ 1. , 1.6, 2.2, 2.8, 4. ])

8. Which of the following code is used to whiten the data?

A. data = numpy.whiten(data)
B. data = whiten(data)
C. data =SciPy.whiten(data)
D. data = data.whiten()

9. How to import Constants Package in SciPy?

A. import scipy.constants
B. from scipy.constants
C. import scipy.constants.package
D. from scipy.constants.package

10. What is "h" stand for Constant?

A. Newton's gravitational constant
B. Elementary charge
C. Planck constant
D. Molar gas constant

11. what is constant defined for Boltzmann constant in SciPy?

A. G
B. e
C. R
D. k

12. What is the value of unit milli in SciPy?

A. 0.01
B. 0.1
C. 0.0001
D. 0.001

13. What will be output for the following code?

```from scipy import linalg

import numpy as np

a = np.array([[3, 2, 0], [1, -1, 0], [0, 5, 1]])

b = np.array([2, 4, -1])

x = linalg.solve(a, b)

print x```

A. array([ 2., -2., 9., 6.])
B. array([ 2., -2., 9.])
C. array([ 2., -2.])
D. array([ 2., -2., 9., -9.])

14. What will be output for the following code?

```from scipy import linalg

import numpy as np

A = np.array([[1,2],[3,4]])

x = linalg.det(A)

print x```

A. 2
B. 1
C. -2
D. -1

15. In SciPy, determinant is computed using?

A. determinant()
B. SciPy.determinant()
C. det()
D. SciPy.det()

16. scipy.linalg always compiled with?

A. BLAS/LAPACK support
B. BLAS/Linalg support
C. Linalg/LAPACK support
D. None of the above

17. Which of the following is false?

A. scipy.linalg also has some other advanced functions that are not in numpy.linalg
B. SciPy version might be faster depending on how NumPy was installed.
C. Both A and B
D. None of the above

18. The scipy.linalg.solve feature solves the _______.

A. integration problem
B. differentiation problem
C. linear equation
D. All of the above

19. What relation is consider between Eigen value (lambda), square matrix (A) and Eign vector(v)?

A. Av = lambda*v
B. Av =Constant * lambda*v
C. Av =10 * lambda*v
D. Av != lambda*v

20. What will be output for the following code?

```from scipy.special import logsumexp

import numpy as np

a = np.arange(10)

res = logsumexp(a)

print res```

A. 10
B. 9.45862974443
C. 9
D. 9.46