machine-learning banner

Machine Learning Multiple Choice Questions (MCQs) and Answers

Master Machine Learning with Practice MCQs. Explore our curated collection of Multiple Choice Questions. Ideal for placement and interview preparation, our questions range from basic to advanced, ensuring comprehensive coverage of machine learning concepts. Begin your placement preparation journey now!

Q91

Q91 What is the main idea behind Principal Component Analysis (PCA)?

A

To maximize variance along new dimensions

B

To minimize data loss

C

To reduce the number of data points

D

To classify data

Q92

Q92 What happens to the original features in PCA after transformation?

A

They remain the same

B

They are transformed into orthogonal components

C

They are multiplied by a scalar

D

They are clustered

Q93

Q93 What is the role of the eigenvectors in PCA?

A

They represent the directions of the principal components

B

They increase the variance

C

They minimize the cost function

D

They maximize the distance between clusters

Q94

Q94 Which function in sklearn is used to implement PCA?

A

pca_reduction()

B

PrincipalComponent()

C

PCA()

D

ComponentAnalysis()

Q95

Q95 How can you set the number of components to retain in PCA using sklearn?

A

num_components()

B

n_components

C

retain_components

D

reduce_dimensions

Q96

Q96 Which library can be used to implement t-SNE for dimensionality reduction in Python?

A

sklearn

B

pandas

C

numpy

D

matplotlib

Q97

Q97 After applying PCA, a model's performance drops significantly. What could be the issue?

A

Too many components retained

B

Too few components retained

C

The model is overfitting

D

Data was not scaled properly

Q98

Q98 A t-SNE model does not correctly represent the structure of high-dimensional data. What could improve it?

A

Use fewer iterations

B

Increase perplexity

C

Reduce the learning rate

D

Use PCA before t-SNE

Q99

Q99 A dimensionality reduction algorithm removes important features from the data. What could prevent this?

A

Increase the number of components

B

Use regularization

C

Perform feature selection first

D

Use a different distance metric

Q100

Q100 What is the purpose of model evaluation in machine learning?

A

To reduce the number of features

B

To increase the accuracy

C

To assess the performance of a model

D

To select the best algorithm

Q101

Q101 Which metric is most appropriate for evaluating classification problems?

A

Mean Squared Error

B

Precision and Recall

C

R-squared

D

Mean Absolute Error

Q102

Q102 What does the ROC curve represent in a classification task?

A

The trade-off between true positive and false positive rates

B

The accuracy of the model

C

The training time

D

The distribution of classes

Q103

Q103 What does a high variance in a model indicate?

A

Underfitting

B

Overfitting

C

Balanced performance

D

Poor training accuracy

Q104

Q104 What is the F1-Score used for in classification problems?

A

To measure the ratio of true positives

B

To balance precision and recall

C

To calculate accuracy

D

To measure sensitivity

Q105

Q105 Which function in sklearn is used to calculate accuracy for classification models?

A

calc_accuracy()

B

accuracy()

C

accuracy_score()

D

classification_accuracy()

Q106

Q106 How can you calculate the confusion matrix in sklearn?

A

confusion_matrix()

B

conf_matrix()

C

calc_confusion()

D

matrix_conf()

Q107

Q107 How do you implement cross-validation in Python using sklearn?

A

cross_validate()

B

cross_val_score()

C

validation_score()

D

cv_validate()

Q108

Q108 A model has a high accuracy but poor performance on new data. What is the issue?

A

Overfitting

B

Underfitting

C

Low variance

D

Incorrect metric

Q109

Q109 A classification model has a high false positive rate. Which metric should be optimized?

A

Accuracy

B

Recall

C

Precision

D

F1-Score

Q110

Q110 A model performs well on the training set but poorly on the validation set. What could be the cause?

A

Underfitting

B

Overfitting

C

Balanced data

D

High recall

Q111

Q111 What is the role of the activation function in a neural network?

A

To adjust weights

B

To control the learning rate

C

To introduce non-linearity

D

To increase training speed

Q112

Q112 What is the vanishing gradient problem in deep learning?

A

Weights become too large

B

Gradients stop flowing back to earlier layers

C

Gradients become too large

D

The model overfits

Q113

Q113 What is the purpose of dropout in a neural network?

A

To prevent overfitting

B

To increase learning rate

C

To improve accuracy

D

To increase data size

Q114

Q114 How does backpropagation work in neural networks?

A

By adjusting the input data

B

By updating weights using gradients

C

By changing the model architecture

D

By increasing the number of layers

Q115

Q115 Which Python library is commonly used to implement neural networks?

A

numpy

B

pandas

C

keras

D

matplotlib

Q116

Q116 Which function in Keras is used to compile a neural network model?

A

model.compile()

B

network.compile()

C

compile_nn()

D

compile_model()

Q117

Q117 How do you add a dense layer to a neural network in Keras?

A

add_dense()

B

model.add(Dense())

C

add_layer()

D

layer.add(Dense())

Q118

Q118 A neural network performs well on the training set but poorly on the test set. What could be the issue?

A

Underfitting

B

Overfitting

C

Data leakage

D

Incorrect architecture

Q119

Q119 A neural network fails to converge during training. What could be the cause?

A

Low learning rate

B

High number of epochs

C

Small dataset

D

Overfitting

Q120

Q120 A deep neural network suffers from the vanishing gradient problem. What can help mitigate this issue?

A

Use a larger dataset

B

Increase learning rate

C

Use ReLU activation function

D

Reduce the number of layers

ad verticalad vertical
ad