Top 350+ Solved Machine Learning (ML) MCQ Questions Answer

From 46 to 60 of 422

Q. if there is only a discrete number of possible outcomes (called categories),the process becomes a            .

a. regression

b. classification.

c. modelfree

d. categories

  • b. classification.

Q. Let’s say, you are working with categorical feature(s) and you have not looked at the distribution of the categorical variable in the test data.You want to apply one hot encoding (OHE) on the categorical feature(s). What challenges you may face if you have applied OHE on a categorical variable of train dataset?

a. all categories of categorical variable are not present in the test dataset.

b. frequency distribution of categories is different in train as compared to the test dataset.

c. train and test always have same distribution.

d. both a and b

  • d. both a and b

Q. Which of the following sentence is FALSE regarding regression?

a. it relates inputs to outputs.

b. it is used for prediction.

c. it may be used forinterpretation.

d. it discovers causalrelationships.

  • d. it discovers causalrelationships.

Q. scikit-learn also provides functions for creatingdummy datasets from scratch:

a. make_classification()

b. make_regression()

c. make_blobs()

d. all above

  • d. all above

Q.           which can accept a NumPy RandomStategenerator or an integer seed.

a. make_blobs

b. random_state

c. test_size

d. training_size

  • b. random_state

Q.             is the most drastic one and should be considered only when the dataset is quite large, the number of missing features is high, and any prediction could be risky.

a. removing the whole line

b. creating sub- model to predict those features

c. using an automatic strategy to input them according to the other known values

d. all above

  • a. removing the whole line

Q. It's possible to specify if the scaling process must include both mean and standard deviation using theparameters                 .

a. with_mean=tru e/false

b. with_std=true/ false

c. both a & b

d. none of the mentioned

  • c. both a & b

Q. Which of the following selects the best K high-scorefeatures.

a. selectpercentile

b. featurehasher

c. selectkbest

d. all above

  • c. selectkbest

Q. Suppose you have fitted a complex regression model on a dataset. Now, you are using Ridge regression with tuning parameter lambda to reduce its complexity. Choose the option(s) below which describes relationship of bias andvariance with lambda.

a. in case of very large lambda; bias is low, variance islow

b. in case of very large lambda; bias is low, variance ishigh

c. in case of very large lambda; bias is high, variance islow

d. in case of very large lambda; bias is high, variance ishigh

  • c. in case of very large lambda; bias is high, variance islow

Q. Which of the following method(s) does not haveclosed form solution for its coefficients?

a. ridgeregression

b. lasso

c. both ridgeand lasso

d. none of both

  • b. lasso

Q. Function used for linear regression in R is

a. lm(formula, data)

b. lr(formula, data)

c. lrm(formula, data)

d. regression.linear (formula, data)

  • a. lm(formula, data)
Subscribe Now

Get All Updates & News