NEW
Font size
WorksheetsCourse_ 3
Total questions: 20
Worksheet time: 20mins
Write a function called show_stars(rows). If rows is 5, it should print the following:
● *
● **
● ***
● ****
● *****
What is the output of the following code?
eval(''1 + 3 * 2'')
‘1+ 6’
‘4*2’
‘1+3*2’
7
Which options are correct to create an empty set in Python?
{}
()
[]
set()
What is output of following − print(''abbzxyzxzxabb''.count(‘abb’,-10,-1))
2
3
Error
0
Error
Supervised learning requires training labeled data. For example, in order to do classification (a supervised learning task), you’ll need to first label the data you’ll use to train the model to classify data into your labeled groups.
True
False
Model Testing is meaning Check the accuracy of the model through the test data
True
False
Regression is used when the output variable is categorical , with 2 or more classes. For example, yes or no, male or
female, true or false, etc.
True
False
You trained a binary classifier model which gives very high accuracy on the
training data, but much lower accuracy on validation data. Which of the
following may be true?
This is an instance of overfitting
This is an instance of underfitting
This is an instance of goodfitting
Which of the following is a disadvantage of decision trees?
Decision trees are prone to be overfit
Decision trees are robust to outliers
Factor analysis
None of the mentioned
In sigmoid function, which is :
If z = 1000 then f(z) ≈
0
1
∞
−∞
Find the first derivative of this equation.
Plug each value of x by 2 and choose the result of substituting the derivative equation.
f(x)' when x = 2 is ??
10
28
-10
8
What is the integral result of this function?
What is the result of the root of 12*12 ?
144
24
12
14
In the equation of a straight line
y = m x + b When the value of m is negative .
what is the direction of the line?
up
down
straight
If A is a matrix of order m x n and B is a matrix of order n x p then the order of AB is
p x m
p x n
n x p
m x p
Calculate the dot product of
a=(1,2,3) and b=(4,−5,6) ?
20
16
10
12
What is the function used in numpy to multiply arrays?
divmod()
multiply()
remainder()
power()
Find the Transpose of this matrix
What is the function used in numpy to Transpose array?
a. T()
b. transpose()
c. mod()
both a ,b
