Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Quiz 11

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

write code to print print pi=3.14 with lib SciPy ????

(a)  

2.

I want to display all constants in the scipy ??

(a)  

3.

What is output :

import numpy as np
from scipy.sparse import csr_matrix
arr = np.array([0, 0, 0, 0, 0, 1, 1, 0, 2])
print(csr_matrix(arr))

a)
 (0, 5)    1
  (0, 6)	1
  (0, 8)	2
b)
 [1 1 2]
c)

3

d)
(1, 2) 	1
  (2, 0)  1
  (2, 2)  2
4.

True or False: Optimizers are a set of procedures defined in SciPy that either find the minimum value of a function, or the root of an equation?

a)

True

b)

False

5.

When working with the csgraph modul, what is a correct method to find the shortest path in a graph from one element to another?

a)

dijkstra()

b)

bellmann()

c)

ford()

6.

what is output :

import numpy
speed = [99,86,87,88,111,86,103,87,94,78,77,85,86]
x = numpy.mean(speed) print(x)

y = numpy.median(speed) print(y)

z = stats.mode(speed) print(z)

a)

90.0

87.0

86.0

b)

89.76

88.0

86.0

c)

89.76

87.0

86.0

d)

89.76

87.0

111.0

7.

Regression is

a)

Supervised

b)

un Supervised

c)

rain forsment

d)

all of the choices

8.

Regression data is

a)

continuous data

b)

category data

9.

when learning rate almost to zero

in gradient descent Equation ??

a)

Maximum iterations

b)

Minimum iterations

c)

no change in iterations

10.

from sklearn import liner model

write code to use liner regression ??

(a)