






















































































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. Which phase of the CRISPāDM process focuses on understanding business objectives and translating them into a dataāscience problem? A) Data Understanding B) Business Understanding C) Modeling D) Deployment Answer: B Explanation: The Business Understanding phase defines the projectās objectives and requirements from a business perspective before any data work begins. Question 2. In the context of the dataāscience ecosystem, which term best describes the practice of extracting actionable insights from large volumes of structured and unstructured data? A) Business Analytics B) Big Data C) Data Engineering D) Data Science Answer: D Explanation: Data Science encompasses the entire workflow of collecting, cleaning, analyzing, and interpreting data to derive insights. Question 3. Which tool is most commonly used to create isolated Python environments that prevent dependency conflicts? A) pip B) conda C) virtualenv D) Docker
Answer: C Explanation: virtualenv creates isolated Python environments, ensuring that each projectās dependencies do not interfere with others. Question 4. When using Git, which command creates a new branch called āfeatureāxā based on the current HEAD? A) git branch featureāx B) git checkout - b featureāx C) git merge featureāx D) git pull featureāx Answer: B Explanation: git checkout - b both creates and switches to the new branch. Question 5. Which of the following data structures in Python provides O(1) averageātime complexity for lookāups by key? A) List B) Tuple C) Set D) Dictionary Answer: D Explanation: Dictionaries are hash tables, offering constantātime average lookāups for keys. Question 6. In Python OOP, which special method is invoked when an object is called as a function? A) init B) call
B) df.select(age > 30) C) df.loc[df[āageā] > 30] D) df.where(df.age > 30) Answer: C Explanation: df.loc[condition] selects rows that satisfy the boolean condition. Question 10. How can you read a JSON file directly into a Pandas DataFrame? A) pd.read_json('file.json') B) pd.read_csv('file.json') C) pd.DataFrame.from_json('file.json') D) json.load('file.json') Answer: A Explanation: pd.read_json parses a JSON file and returns a DataFrame. Question 11. Which SQL clause is used to retrieve only unique rows from a table? A) DISTINCT B) UNIQUE C) GROUP BY D) HAVING Answer: A Explanation: The DISTINCT keyword eliminates duplicate rows in the result set. Question 12. In MongoDB, which command inserts a document into the collection āusersā? A) db.users.insertOne({}) B) db.users.add({})
C) db.users.save({}) D) db.users.create({}) Answer: A Explanation: insertOne adds a single document to a collection in MongoDB. Question 13. Which measure of central tendency is most robust to extreme outliers? A) Mean B) Median C) Mode D) Geometric mean Answer: B Explanation: The median depends only on the order of data, not on the magnitude of extreme values. Question 14. If a datasetās variance is 0, what can be said about its standard deviation? A) It is undefined B) It equals 1 C) It equals 0 D) It equals the mean Answer: C Explanation: Standard deviation is the square root of variance; if variance = 0, SD = 0. Question 15. Which probability distribution models the number of successes in a fixed number of independent Bernoulli trials? A) Normal distribution B) Poisson distribution
A) It will decrease B) It will stay the same C) It will increase D) It will become zero Answer: C Explanation: Higher confidence requires a larger critical value, widening the interval. Question 19. Pearsonās correlation coefficient measures which type of relationship between two continuous variables? A) Causal B) Linear association C) Rankābased association D) Nonālinear association Answer: B Explanation: Pearsonās r quantifies the strength and direction of a linear relationship. Question 20. Multicollinearity in a regression model primarily inflates which statistic? A) Rāsquared B) Adjusted Rāsquared C) Standard errors of coefficients D) Fāstatistic Answer: C Explanation: High correlation among predictors increases the variance of coefficient estimates, leading to larger standard errors. Question 21. Which Pandas function is used to detect missing values in a DataFrame?
A) df.isnull() B) df.isna() C) Both A and B D) df.ismissing() Answer: C Explanation: isnull() and isna() are aliases that return a boolean mask indicating missing entries. Question 22. When handling missing numerical data, which imputation technique preserves the original distribution the best? A) Mean imputation B) Median imputation C) KāNearest Neighbors imputation D) Constant value imputation Answer: C Explanation: KNN uses similarity to replace missing values, often maintaining the underlying distribution more accurately than simple mean/median. Question 23. Which method is most appropriate for detecting outliers in a normally distributed variable? A) Zāscore > 3 or < ā 3 B) IQR method C) DBSCAN clustering D) Mahalanobis distance Answer: A Explanation: For normal data, values beyond three standard deviations are considered extreme outliers.
Question 27. Which plot is best suited to examine the relationship between two continuous variables? A) Histogram B) Bar chart C) Scatter plot D) Pie chart Answer: C Explanation: Scatter plots show paired observations, revealing patterns, trends, or clusters. Question 28. Which metric is appropriate for evaluating a regression modelās predictive accuracy? A) Accuracy B) F1āscore C) Mean Absolute Error (MAE) D) ROCāAUC Answer: C Explanation: MAE measures average absolute prediction error, suitable for regression tasks. Question 29. In simple linear regression, the coefficient of determination (R²) represents what? A) Proportion of variance in the dependent variable explained by the model B) Correlation between residuals C) Slope of the regression line D) Standard error of estimate Answer: A
Explanation: R² quantifies the fraction of total variability captured by the regression. Question 30. Which regularization technique adds a penalty equal to the absolute value of coefficients? A) Ridge (L2) B) Lasso (L1) C) Elastic Net D) Dropout Answer: B Explanation: Lasso uses an L1 penalty, encouraging sparsity by shrinking some coefficients to zero. Question 31. Logistic regression outputs probabilities using which function? A) Linear function B) Softmax C) Sigmoid (logistic) function D) ReLU Answer: C Explanation: The sigmoid maps any realāvalued input to the (0,1) interval, suitable for binary classification probabilities. Question 32. In KāNearest Neighbors classification, which distance metric is most commonly used for continuous features? A) Manhattan distance B) Euclidean distance C) Hamming distance
B) max_depth C) min_samples_split D) learning_rate Answer: B Explanation: max_depth limits how deep the tree can grow, preventing overāfitting. Question 36. Random Forest reduces overāfitting compared to a single decision tree primarily by: A) Using only a subset of features for each split B) Using bagging (bootstrap aggregation) of multiple trees C) Pruning each tree aggressively D) Applying gradient descent Answer: B Explanation: Bagging averages predictions over many decorrelated trees, improving generalization. Question 37. Gradient Boosting builds models sequentially. What is the main purpose of each new tree? A) To increase model complexity arbitrarily B) To correct errors (residuals) of the previous ensemble C) To randomize feature selection D) To replace the previous model entirely Answer: B Explanation: Each tree is fitted to the residuals (gradients) of the loss function, gradually improving performance.
Question 38. Which algorithm is most appropriate for discovering association rules in marketābasket data? A) KāMeans B) Apriori C) DBSCAN D) Linear Regression Answer: B Explanation: Apriori efficiently enumerates frequent itemsets and derives association rules. Question 39. In KāMeans clustering, the value of k determines: A) Number of iterations B) Number of clusters to form C) Dimensionality of data D) Distance metric used Answer: B Explanation: k is the preāspecified number of centroids (clusters) the algorithm will generate. Question 40. Hierarchical clustering differs from KāMeans because it does not require: A) A distance metric B) Preāspecifying the number of clusters C) Computing centroids D) Normalizing data Answer: B Explanation: Hierarchical methods create a dendrogram, allowing the analyst to choose the number of clusters postāhoc.
Explanation: F1āscore balances precision and recall, providing a single measure that accounts for class imbalance. Question 44. Crossāvalidation helps to estimate model performance by: A) Using the entire dataset for training only B) Splitting data once into train and test sets C) Repeatedly training on subsets and validating on heldāout folds D) Performing hyperparameter tuning on the test set Answer: C Explanation: Kāfold crossāvalidation rotates through different train/validation splits, giving a robust performance estimate. Question 45. Which technique can be used to prevent overāfitting in neural networks but is NOT a regularization method for linear models? A) L2 regularization B) Dropout C) Early stopping D) Elastic Net Answer: B Explanation: Dropout randomly deactivates neurons during training, a method specific to deep learning architectures. Question 46. In timeāseries forecasting, which model assumes that future values are a linear combination of past observations? A) ARIMA B) Prophet C) LSTM
D) Exponential Smoothing Answer: A Explanation: ARIMA (AutoRegressive Integrated Moving Average) models rely on past values and errors to predict future points. Question 47. Which of the following is a common reason to use a validation set separate from the test set? A) To train the final model B) To tune hyperparameters without biasing test performance C) To compute model accuracy D) To increase training data size Answer: B Explanation: The validation set guides model selection; the test set remains untouched for final unbiased evaluation. Question 48. When deploying a model as a REST API, which Python library is frequently used to create the service? A) NumPy B) Flask C) Pandas D) Scikitālearn Answer: B Explanation: Flask provides lightweight webāframework capabilities to expose model predictions via HTTP endpoints. Question 49. Which containerization technology enables consistent execution of dataāscience workloads across environments?
Question 52. In Python, which decorator is used to cache the results of a function call, improving performance for expensive computations? A) @staticmethod B) @lru_cache C) @property D) @abstractmethod Answer: B Explanation: functools.lru_cache memoizes function outputs based on input arguments. Question 53. Which of the following best describes ādata leakageā in machine learning? A) Missing values in the dataset B) Using information from the test set during training C) Overāparameterized models D) Storing data in an unsecured location Answer: B Explanation: Data leakage contaminates training with future information, leading to overly optimistic performance estimates. Question 54. When performing feature selection, which method evaluates the contribution of each feature by fitting a model and measuring performance drop when the feature is shuffled? A) Recursive Feature Elimination (RFE) B) Permutation Importance C) Mutual Information D) Chiāsquare test
Answer: B Explanation: Permutation importance assesses how shuffling a feature affects model accuracy, indicating its importance. Question 55. In a production pipeline, which stage should include data validation checks such as schema conformity and nullāvalue handling? A) Model training B) Data ingestion C) Model inference D) Hyperparameter tuning Answer: B Explanation: Validating data at ingestion ensures downstream stages receive clean, wellāstructured inputs. Question 56. Which Python library provides tools for building and executing dataāscience pipelines with lazy evaluation? A) Dask B) Luigi C) Airflow D) Prefect Answer: B Explanation: Luigi enables definition of tasks and dependencies, executing pipelines only when needed. Question 57. Which statistical test is appropriate for comparing the means of two independent groups with normally distributed data and equal variances? A) Paired tātest