DATA ANALYTICS WITH PYTHON
For any Assignment related queries, Call us at : - +1 678 648 4277
You can mail us at :- support@pythonhomeworkhelp.com or
reach us at :- https://www.pythonhomeworkhelp.com/
pythonhomeworkhelp.com
1) Which ckrstering algorithm works well when the shape of the clusters is hyper-
spherical ?
a. K Means
b. Agglomerative hierarchical clustering
c. Divisive hierarchical clustering
d. AlI of the above
Answers: a. K Means
2) Single linkage and complete linkage are defined as -
e. Minimum and average distances respectively
f. Minimum and maximum distances respectively
g. Maximum and minimum distances respectively
h. Average and maximum distances respectively
Answers: b. Minimum and maximum distances respectively
3) Affinity option in the python is used for -
i. Selecting the linkage option
j. Selecting the distance option
k. Selecting a particular method option
l. Selecting the number of clusters
pythonhomeworkhelp.com
Answers: b. Selecting the distance option
4) In decision tree, an m.emal node represents -
a. A test on an attribute
b. An outcome of the test
c. Entire sample population
d. Holds a class label
Answers: a. A test on an attribute
5) Choose the correc s•atement about the CART model -
e. CART follows unsupervised learning technique
f. CART follows a supervised learning technique
g. CART adopt a greedy approach
h. Both (b) and (c)
Answers: d. Both (b) and (c)
6) Which attnbute selection measure are used by the CART model -
i. Information
j. Gain Gain ratio
k. Gini Index
pythonhomeworkhelp.com
d. All of the above
Answers: c. Gini Index
7) Select the correct statement -
e. Gni index is used to find the splitting criterion for each attribute in the tuple in
Database
f. The attribute with the maximum gain ratio is selected as the splitting attribute
g. Gain ratio and information gain are the same
h. Both (a) and (b)
Answers: d. Both (a) and (b)
8) Fit transfcvm 0 method is used to -
i. Fit label encoder and return encoded labels
j. Normalize the labels
k. Transform non-numerical labels to numencal labels
l. All of the above
Answers: d. All of the above
pythonhomeworkhelp.com
9) Drop 0 method is used to -
a. Remove rows by specifying label names and corresponding axis by specifying
index or column names directly
b. Remove columns by defining label names and the corresponding axis
c. Remove rows by specifying index or column names dinictly
d. All of the above
Answer: d. All of the above
10) Which library is used to bu Id the decision tree model -
e. Decisiontreeciassifier
f. DecesionTreeCiassifier
g. Decision_Tree_Classifier
h. Decision tree classifier
Answers:b. DecisionTreeClassifier
pythonhomeworkhelp.com