




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































Question 1: What is the main difference between machine learning and traditional programming? A. Machine learning systems require less data than traditional programming B. Machine learning uses explicit rules to process inputs C. Machine learning uses data-driven approaches to improve performance without explicit programming D. Traditional programming is only used for numerical computations Correct: C Explanation: Traditional programming involves explicitly coding rules, while machine learning automatically infers patterns from data to improve its performance. Question 2: Which of the following is NOT a type of machine learning?
A. Supervised Learning B. Blind Learning C. Unsupervised Learning D. Reinforcement Learning Correct: B Explanation: Blind Learning is not a recognized category. The main types are supervised, unsupervised, semi-supervised, and reinforcement learning. Question 3: In supervised learning, what are the training labels used for? A. To measure algorithm speed B. To evaluate the size of the dataset C. To guide the model to learn the mapping from input data to output D. To select the best features Correct: C
A. The final prediction of the model B. The raw data collected from users C. Individual measurable properties or characteristics used as input to the model D. The error metric used for evaluation Correct: C Explanation: Features are the attributes or variables that are used by the model as inputs. Question 6: What is the main goal of unsupervised learning? A. To classify data using labeled examples B. To find patterns or structure in data without labeled outputs C. To maximize reward in an environment D. To minimize the loss function Correct: B
Explanation: Unsupervised learning seeks to discover underlying patterns or groupings in data without supervision. Question 7: Which of the following is NOT a key component of reinforcement learning? A. Agent B. Environment C. Kernel D. Reward Correct: C Explanation: Kernel is a term used in SVMs, not in reinforcement learning, whose main components are agent, environment, states, actions, and rewards.
C. Semi-supervised Learning D. Reinforcement Learning Correct: C Explanation: Semi-supervised learning uses a combination of labeled and unlabeled data for training. Question 10: What is the primary advantage of machine learning over traditional rule-based programming? A. Requires no computing resources B. Learns from data and adapts to new patterns C. Is always more accurate D. Does not require validation Correct: B
Explanation: Machine learning models can learn from data and adapt to unseen situations, making them powerful for complex, data-driven tasks. Question 11: In machine learning terminology, what is the ‘label’? A. The input features B. The output or target variable the model is trying to predict C. The model parameters D. The loss function Correct: B Explanation: The label is the value that the model is trained to predict, such as a class or a continuous value. Question 12: Which of the following is most likely to cause underfitting in a model?
Explanation: The test set is a separate subset used to assess how well the trained model performs on new data. Question 14: In supervised learning, the mapping learned by the model is from: A. Features to features B. Features to labels C. Labels to features D. Features to hyperparameters Correct: B Explanation: Supervised learning maps the input features to the correct output labels. Question 15: Which of the following is NOT a typical application of supervised learning?
A. Spam detection B. Image classification C. Market basket analysis D. Credit scoring Correct: C Explanation: Market basket analysis is typically an unsupervised learning task, involving association rules. Question 16: Which mathematical concept is fundamental to understanding gradient descent optimization? A. Probability distributions B. Eigenvalues and eigenvectors C. Partial derivatives D. Combinatorics Correct: C
C. Linear D. Poisson Correct: C Explanation: Linear is not a probability distribution; the others are. Question 19: What is the determinant of a matrix used for in machine learning? A. Calculating learning rate B. Checking if the matrix is invertible C. Computing the mean of features D. Encoding categorical variables Correct: B Explanation: The determinant helps determine if a matrix is invertible, which is important for some algorithms.
Question 20: In linear regression, which metric measures the average squared difference between actual and predicted values? A. F1 Score B. Mean Squared Error (MSE) C. Precision D. Entropy Correct: B Explanation: MSE is a common loss function for regression, measuring the average squared prediction error. Question 21: What is the sigmoid function used for in logistic regression? A. To scale input features B. To encode categorical variables C. To map predictions to probabilities between 0 and 1 D. To compute gradients
A. To increase tree depth B. To prevent overfitting by removing unnecessary branches C. To increase accuracy on training data D. To add more features Correct: B Explanation: Pruning removes branches that do not provide significant power to the model, reducing overfitting. Question 24: In random forests, what does ‘bagging’ refer to? A. Using multiple kernels B. Applying regularization C. Training multiple trees on random subsets of data and features D. Combining supervised and unsupervised learning Correct: C
Explanation: Bagging (Bootstrap Aggregating) involves training each tree on a random subset to reduce variance. Question 25: The ‘k’ in k-nearest neighbors (KNN) algorithm refers to: A. The number of features B. The number of clusters C. The number of nearest data points to consider for classification D. The number of classes Correct: C Explanation: ‘k’ is the number of neighbors whose labels are used to classify a new data point. Question 26: Which assumption is central to the Naive Bayes classifier? A. Features are highly correlated B. Features are independent given the label
Question 28: What is the main goal of clustering algorithms? A. To maximize the loss function B. To group similar data points together C. To label new data points D. To calculate the mean of each feature Correct: B Explanation: Clustering groups data into clusters so that points in the same cluster are similar. Question 29: In K-means clustering, what does the ‘centroid’ represent? A. The nearest neighbor B. The point with maximum variance C. The central point of a cluster D. The feature with highest importance Correct: C
Explanation: The centroid is the mean position of all the points in a cluster. Question 30: What is the purpose of the ‘elbow method’ in K-means? A. To select the number of features B. To determine the optimal number of clusters C. To decide the distance metric D. To prune clusters Correct: B Explanation: The elbow method helps to identify the best number of clusters by plotting inertia. Question 31: Which clustering algorithm can find arbitrarily shaped clusters?