Courseiva

CCNA Data Analysis Questions

75 of 230 questions · Page 2/4 · Data Analysis · Answers revealed

76
MCQmedium

An analyst runs a simple linear regression with an R² value of 0.85. Which interpretation is correct?

A.85% of the variance in the dependent variable is explained by the independent variable.
B.The slope of the regression line is 0.85.
C.The independent variable is 85% correlated with the dependent variable.
D.85% of the data points lie on the regression line.
AnswerA

R² is the coefficient of determination, indicating explained variance.

Why this answer

R² represents the proportion of variance in the dependent variable explained by the independent variable. 0.85 means 85% is explained.

77
Multi-Selecthard

An analyst is performing K-means clustering on customer data. The elbow method shows a clear bend at k=4. Which THREE of the following are true about K-means clustering with k=4?

Select 3 answers
A.The number of clusters is determined to be 4.
B.The algorithm will always produce the same clusters regardless of initial centroids.
C.The centroids are recomputed iteratively until convergence.
D.Categorical variables should be standardised before clustering.
E.The algorithm minimises the sum of squared distances between points and their assigned centroid.
AnswersA, C, E

Correct: Elbow method indicates k=4.

Why this answer

K-means initialises centroids randomly, so results can vary. The elbow method suggests 4 clusters. The algorithm minimises within-cluster sum of squares.

K-means works best with numeric data and assumes spherical clusters.

78
MCQmedium

A marketing analyst wants to predict whether a customer will churn (yes/no) based on account age and monthly charges. Which regression technique is most appropriate?

A.Logistic regression
B.Simple linear regression
C.Multiple linear regression
D.K-means clustering
AnswerA

Logistic regression handles binary outcomes.

Why this answer

Logistic regression is used for binary classification problems, outputting probabilities.

79
MCQhard

A data scientist is analyzing a dataset with multiple features and wants to apply k-means clustering to segment customers. She chooses k = 4 based on the elbow method. During the iteration process, which of the following correctly describes a step in the k-means algorithm?

A.Compute the covariance matrix and use principal components to initialize centroids.
B.Use hierarchical clustering to determine initial centroids.
C.Randomly assign centroids and then compute distances to the cluster medians.
D.Assign each point to the nearest centroid based on Euclidean distance, then update centroids as the mean of points in each cluster.
AnswerD

This is the standard k-means iteration.

Why this answer

K-means iteratively assigns each point to the nearest centroid, then recalculates centroids as the mean of points in the cluster.

80
MCQmedium

Refer to the exhibit. Which type of ensemble method is being used?

A.Boosting
B.Stacking
C.Voting
D.Bagging
AnswerD

Random forest uses bagging (bootstrap aggregating) to create multiple decision trees.

Why this answer

The exhibit shows multiple base models (Model 1, Model 2, Model 3) trained in parallel on bootstrap samples of the data, and their predictions are combined via averaging (regression) or majority voting (classification). This parallel training with resampled data and equal-weight aggregation is the defining characteristic of bagging (Bootstrap Aggregating).

Exam trap

CompTIA often tests the distinction between bagging and boosting by showing parallel vs. sequential training diagrams, and the trap here is confusing the parallel bootstrap resampling with the sequential error-correction approach of boosting.

How to eliminate wrong answers

Option A is wrong because boosting trains models sequentially, where each subsequent model focuses on correcting the errors of the previous one, not in parallel on bootstrap samples. Option B is wrong because stacking uses a meta-learner to combine predictions from diverse base models, not simple averaging or majority voting. Option C is wrong because voting typically combines predictions from different model types (e.g., logistic regression, SVM) trained on the same dataset, not from the same model type trained on bootstrap samples.

81
MCQmedium

A data analyst is reviewing a SQL query that joins three large tables. The query takes over an hour to run. The analyst notices that the WHERE clause filters on indexed columns in only two tables. Which of the following should the analyst do first to improve performance?

A.Use subqueries instead of joins
B.Check the query execution plan and optimize join order
C.Add indexes to all columns used in joins
D.Increase server memory
AnswerB

Analyzing the execution plan reveals performance bottlenecks and suggests whether indexes, join order, or other optimizations are needed.

Why this answer

The query execution plan reveals how the database engine processes joins and filters. By checking the plan, the analyst can identify the most selective filter and rearrange the join order to reduce the number of rows processed early, which is the most impactful first step. Optimizing join order leverages existing indexes without requiring schema changes or hardware upgrades.

Exam trap

CompTIA often tests the misconception that adding indexes or hardware is the immediate fix, when in fact analyzing the execution plan and adjusting join order is the cheapest and most effective first step.

How to eliminate wrong answers

Option A is wrong because subqueries often perform worse than joins in large-table scenarios, as they can lead to correlated subquery execution and repeated scans. Option C is wrong because adding indexes to all join columns is unnecessary and may degrade write performance; the analyst should first verify if existing indexes are being used efficiently via the execution plan. Option D is wrong because increasing server memory is a reactive, costly measure that does not address the root cause of inefficient query processing, such as poor join order or missing index usage.

82
MCQmedium

An analyst compares average sales across three different store locations using a statistical test. Which test is most appropriate?

A.ANOVA
B.t-test
C.Correlation analysis
D.Chi-square test
AnswerA

ANOVA compares means of three or more groups.

Why this answer

ANOVA compares means across three or more groups.

83
Multi-Selecthard

A data analyst is evaluating the quality of a customer database. Which THREE of the following are dimensions of data quality?

Select 3 answers
A.Completeness
B.Correlation
C.Timeliness
D.Accuracy
E.Variance
AnswersA, C, D

Whether all required data is present.

Why this answer

Accuracy, completeness, and timeliness are standard data quality dimensions.

84
MCQeasy

Which data quality dimension ensures that data represents the real-world object or event correctly?

A.Accuracy
B.Completeness
C.Consistency
D.Timeliness
AnswerA

Correct definition.

Why this answer

Accuracy refers to how well data reflects reality.

85
MCQmedium

A data analyst is performing time series analysis on monthly sales data and notices a consistent pattern of higher sales every December. Which component of time series does this represent?

A.Trend
B.Irregular component
C.Seasonality
D.Cyclical
AnswerC

Seasonality is regular periodic pattern.

Why this answer

Seasonality refers to regular patterns that repeat at fixed intervals, such as yearly.

86
Multi-Selecthard

A data analyst is cleaning a dataset and identifies several outliers. Which TWO methods are appropriate for handling outliers?

Select 2 answers
A.Capping
B.Mean imputation
C.Removal
D.Min-max normalization
E.Forward-fill
AnswersA, C

Replaces outliers with a threshold value.

Why this answer

Capping (winsorizing) and removal are common outlier treatments. Mean imputation is for missing values, and min-max normalization is scaling.

87
MCQmedium

A data analyst is examining sales data for a retail chain and notices that the mean monthly sales is $50,000 while the median is $35,000. Which of the following best describes the distribution of the sales data?

A.The distribution is right-skewed.
B.The distribution is bimodal.
C.The distribution is left-skewed.
D.The distribution is symmetrical.
AnswerA

Correct: mean > median indicates right skew.

Why this answer

When the mean is greater than the median, the distribution is right-skewed (positively skewed) because the mean is pulled towards the higher values by outliers or a long right tail.

88
MCQhard

A data analyst is cleaning a dataset and finds that 5% of values in the 'income' column are missing. The analyst decides to impute missing values using the mean of the non-missing values. Which potential issue should the analyst be most concerned about?

A.The imputation may reduce the variance and distort the distribution.
B.The imputation is not valid because the missing rate is too low.
C.The imputation will increase the standard deviation of the variable.
D.The imputation will create outliers.
AnswerA

Mean imputation pulls values toward the mean, reducing variance and potentially biasing results.

Why this answer

Mean imputation reduces variance and can distort relationships, especially if data is skewed. It may also bias estimates if missingness is not random.

89
MCQmedium

A dataset contains a variable 'Income' with many missing values. The analyst decides to impute missing values with the median income of the non-missing values. Which type of imputation is this?

A.Interpolation
B.Deletion
C.Median imputation
D.Forward-fill imputation
AnswerC

Correct term.

Why this answer

Replacing missing values with the median is a form of mean/median/mode imputation.

90
MCQeasy

A data analyst needs to identify outliers in a dataset. Which of the following is a common method based on the interquartile range (IQR)?

A.Values more than 2 standard deviations from the mean
B.Values that are negative
C.Values below Q1 - 1.5*IQR or above Q3 + 1.5*IQR
D.Values below the 5th percentile or above the 95th percentile
AnswerC

Correct: IQR method.

Why this answer

A common rule is to consider any data point below Q1 - 1.5*IQR or above Q3 + 1.5*IQR as an outlier.

91
Multi-Selecthard

Which THREE of the following are assumptions of linear regression? (Select THREE).

Select 3 answers
A.Normal distribution of independent variables
B.Multicollinearity among independent variables
C.Independence of errors
D.Homoscedasticity (constant variance of errors)
E.Linearity between independent and dependent variables
AnswersC, D, E

Errors should be independent.

Why this answer

Independence of errors is a core assumption of linear regression, meaning the residuals (errors) should not be correlated with each other. This is critical for valid inference because correlated errors violate the Gauss-Markov theorem, leading to biased standard errors and unreliable hypothesis tests. In time series data, this assumption is often violated due to autocorrelation, which can be detected using the Durbin-Watson test.

Exam trap

The trap here is that candidates confuse the normality assumption for errors with a normality assumption for the independent variables, leading them to incorrectly select Option A.

92
Multi-Selecteasy

Which TWO of the following are examples of supervised learning algorithms?

Select 2 answers
A.Linear regression
B.K-means clustering
C.Principal component analysis (PCA)
D.Decision trees
E.Apriori algorithm
AnswersA, D

Supervised regression algorithm.

Why this answer

Linear regression is a supervised learning algorithm because it learns a mapping from input features to a continuous target variable using labeled training data. The model minimizes the difference between predicted and actual values (e.g., via ordinary least squares) to make predictions on new data.

Exam trap

CompTIA often tests the distinction between supervised and unsupervised learning by including clustering (K-means) and association (Apriori) as distractors, which candidates mistakenly think are supervised because they involve pattern discovery.

93
MCQmedium

A data analyst is examining the relationship between advertising spend (in dollars) and revenue (in dollars). The Pearson correlation coefficient r is calculated as +0.92. Which of the following interpretations is correct?

A.There is a strong negative linear relationship.
B.There is no linear relationship.
C.There is a strong positive linear relationship.
D.92% of the variation in revenue is explained by advertising spend.
AnswerC

Close to +1 indicates strong positive.

Why this answer

r = +0.92 indicates a strong positive linear relationship.

94
MCQeasy

A data analyst needs to identify the most frequently occurring value in a dataset. Which measure of central tendency should they use?

A.Mode
B.Standard deviation
C.Median
D.Mean
AnswerA

Mode is the most frequently occurring value.

Why this answer

The mode is the measure of central tendency that identifies the most frequently occurring value in a dataset. Unlike the mean or median, the mode directly counts the frequency of each distinct value and returns the value with the highest count, making it the correct choice for this specific requirement.

Exam trap

The trap here is that candidates often confuse 'most frequently occurring' with 'average' or 'middle value' and incorrectly choose mean or median, especially when the dataset is numeric and they assume central tendency always refers to mean.

How to eliminate wrong answers

Option B (Standard deviation) is wrong because it measures the dispersion or spread of data points around the mean, not the frequency of occurrence of any single value. Option C (Median) is wrong because it identifies the middle value when the dataset is sorted, which does not indicate which value appears most often. Option D (Mean) is wrong because it calculates the arithmetic average of all values, which can be skewed by outliers and does not reflect frequency of occurrence.

95
MCQhard

A data analyst is performing a chi-square test of independence on a contingency table of customer satisfaction (satisfied vs. dissatisfied) and product type (A, B, C). The test yields a p-value of 0.04 with α = 0.05. What is the correct conclusion?

A.There is no evidence of an association between satisfaction and product type.
B.There is a significant association between satisfaction and product type.
C.The test is invalid because the expected counts are too low.
D.Satisfaction and product type are independent.
AnswerB

Correct: reject null, conclude association.

Why this answer

Since p-value < α, we reject the null hypothesis of independence, meaning there is a significant association between satisfaction and product type.

96
MCQmedium

A company wants to segment its customers into distinct groups based on purchasing behavior. Which algorithm is best suited for this task?

A.Decision tree
B.Logistic regression
C.K-means clustering
D.Linear regression
AnswerC

K-means clustering groups similar customers together based on features.

Why this answer

K-means clustering is an unsupervised learning algorithm that partitions data into K distinct clusters based on feature similarity, making it ideal for segmenting customers by purchasing behavior without predefined labels. It groups customers who exhibit similar purchasing patterns, enabling the company to identify natural segments for targeted marketing.

Exam trap

The trap here is that candidates often confuse supervised learning algorithms (like decision trees or logistic regression) with unsupervised clustering, mistakenly thinking that any algorithm that 'groups' data can be used for segmentation without recognizing the need for unlabeled data.

How to eliminate wrong answers

Option A is wrong because a decision tree is a supervised learning algorithm used for classification or regression, requiring labeled training data to predict outcomes, not for discovering unknown groupings in unlabeled data. Option B is wrong because logistic regression is a supervised classification algorithm for binary or multinomial outcomes, relying on labeled target variables, and cannot perform unsupervised clustering. Option D is wrong because linear regression is a supervised regression algorithm that models the relationship between a dependent variable and one or more independent variables, and it is not designed to segment data into distinct groups without predefined categories.

97
Multi-Selecthard

A company runs an A/B test to compare a new website layout (treatment) against the current layout (control). The conversion rate for the control is 5% and for the treatment is 5.5%. The p-value is 0.06 at α=0.05. Which THREE of the following conclusions are valid?

Select 3 answers
A.There is not enough evidence to conclude that the new layout is better.
B.The test has sufficient power to detect the observed effect.
C.The observed lift of 0.5% may be due to random chance.
D.The new layout significantly increases conversion rate.
E.A larger sample size might reveal a significant difference if one exists.
AnswersA, C, E

Correct: Fail to reject null.

Why this answer

The p-value > α, so fail to reject the null; the difference is not statistically significant. However, the observed lift is 0.5% (absolute). Sample size might be insufficient; statistical power could be low.

98
MCQmedium

A dataset contains features with vastly different scales (e.g., age 0-100 and income 0-1,000,000). Which data transformation should be applied before using a K-nearest neighbors algorithm?

A.No transformation is needed
B.Min-max normalization
C.Log transformation
D.Z-score standardization
AnswerB

Min-max scales features to a fixed range (0-1), suitable for distance-based methods.

Why this answer

Distance-based algorithms like KNN require features on similar scales; min-max normalization is appropriate.

99
Multi-Selectmedium

A data analyst is preparing a dataset for analysis and needs to ensure data quality. Which TWO of the following are dimensions of data quality?

Select 2 answers
A.Volume
B.Velocity
C.Consistency
D.Variety
E.Accuracy
AnswersC, E

Correct: consistency ensures data is uniform across sources.

Why this answer

Accuracy and consistency are recognized dimensions of data quality in CompTIA Data+.

100
MCQmedium

A data analyst wants to test if the proportion of customers who prefer Product A over Product B is different from 50%. She surveys 200 customers and finds that 120 prefer Product A. Which statistical test should she use?

A.Chi-square test of independence
B.One-sample z-test for proportions
C.ANOVA
D.Two-sample t-test
AnswerB

Correct for testing a single proportion against a hypothesized value.

Why this answer

A one-sample z-test for proportions compares a sample proportion to a hypothesized population proportion. Here, the null is p=0.5. A chi-square test for goodness-of-fit could also be used, but the z-test is standard for a single proportion.

101
MCQmedium

A retail company wants to predict sales based on advertising spend and season. Which data modeling technique should the analyst use?

A.Simple linear regression
B.Multiple linear regression
C.Logistic regression
D.K-means clustering
AnswerB

Multiple linear regression handles two or more predictors and predicts a continuous outcome.

Why this answer

Multiple linear regression is the correct technique because the analyst needs to model a continuous outcome (sales) based on two or more predictor variables: advertising spend (continuous) and season (categorical, typically encoded as dummy variables). This allows the model to capture the independent effect of each predictor on sales, which simple linear regression cannot do because it only handles one predictor.

Exam trap

The trap here is that candidates often confuse simple linear regression with multiple linear regression, thinking that 'linear regression' alone suffices, but the exam specifically tests whether you recognize that multiple predictors require multiple regression.

How to eliminate wrong answers

Option A is wrong because simple linear regression can only model the relationship between one independent variable and the dependent variable, but here we have two predictors (advertising spend and season). Option C is wrong because logistic regression is used for binary or categorical outcome variables (e.g., yes/no), not for continuous outcomes like sales. Option D is wrong because K-means clustering is an unsupervised learning technique used to group similar data points, not to predict a continuous target variable.

102
Multi-Selectmedium

A data team is preparing data for a clustering analysis. Which THREE of the following steps are commonly part of data cleaning?

Select 3 answers
A.Removing duplicate records
B.Imputing missing values
C.Calculating the mean
D.Training a regression model
E.Capping outliers at the 5th and 95th percentiles
AnswersA, B, E

Deduplication is cleaning.

Why this answer

Data cleaning includes handling missing values, outlier treatment, and deduplication.

103
MCQmedium

A data scientist is performing K-means clustering on customer data. She plots the within-cluster sum of squares (WCSS) for different values of k and observes an 'elbow' at k=4. What does this indicate?

A.The optimal number of clusters is 4
B.The algorithm should be run with k=3 to avoid overfitting
C.The data contains exactly 4 outliers
D.The WCSS is minimized at k=4, indicating perfect clustering
AnswerA

The elbow point indicates a good trade-off between cluster compactness and number of clusters.

Why this answer

The elbow method suggests that adding more clusters beyond k=4 yields diminishing returns, so k=4 is a suitable number of clusters.

104
MCQmedium

A data analyst is evaluating a multiple regression model with three predictors. The R² value is 0.85. Which of the following is the best interpretation of R²?

A.85% of the variance in the outcome is explained by the predictors.
B.85% of the predicted values are correct.
C.The model has a high bias.
D.The model has a strong correlation of 0.85.
AnswerA

Correct: R² measures explained variance.

Why this answer

R² represents the proportion of variance in the dependent variable explained by the independent variables. 0.85 means 85% of the variance is explained.

105
Multi-Selecteasy

Which TWO of the following are dimensional modeling techniques commonly used in data warehouses?

Select 2 answers
A.Entity-relationship diagram
B.Snowflake schema
C.Star schema
D.Scatter plot
E.Histogram
AnswersB, C

Snowflake schema is a dimensional modeling technique where dimensions are normalized.

Why this answer

The snowflake schema is a dimensional modeling technique where dimension tables are normalized into multiple related tables, reducing data redundancy. This structure is commonly used in data warehouses to improve query performance and maintainability for complex analytical queries.

Exam trap

The trap here is that candidates may confuse general data modeling concepts (like ERDs) or data visualization tools (like scatter plots and histograms) with specific dimensional modeling techniques used in data warehouses.

106
MCQhard

A data scientist trains a regression model and observes high variance with low bias. Which technique is most appropriate to reduce variance?

A.Apply Ridge regularization
B.Increase polynomial features
C.Use a smaller training set
D.Remove correlated features
AnswerA

Ridge adds penalty to coefficients, reducing overfitting and variance.

Why this answer

Ridge regularization (L2) reduces variance by adding a penalty term proportional to the square of the coefficients, which shrinks them toward zero without eliminating them. This directly addresses high variance (overfitting) by constraining the model's complexity, while low bias indicates the model fits the training data well. The regularization parameter λ controls the trade-off between bias and variance.

Exam trap

CompTIA often tests the misconception that reducing variance requires removing features or simplifying the model, but Ridge regularization is the correct technique because it penalizes coefficient magnitude without discarding predictors.

How to eliminate wrong answers

Option B is wrong because increasing polynomial features adds higher-order terms, which increases model complexity and typically increases variance, not reduces it. Option C is wrong because using a smaller training set reduces the amount of data available for learning, which generally increases variance due to less stable coefficient estimates. Option D is wrong because removing correlated features can reduce multicollinearity but does not directly penalize coefficient magnitudes; it may even increase variance if important predictors are dropped.

107
Multi-Selecthard

A logistic regression model predicts customer churn (0=no churn, 1=churn). The model outputs probabilities. Which THREE of the following statements about logistic regression are correct?

Select 3 answers
A.The model output is a probability between 0 and 1.
B.The coefficient of determination R² is used to assess model fit.
C.The coefficients represent the change in log-odds for a one-unit change in the predictor.
D.Logistic regression is used for binary classification.
E.The model uses the linear regression equation y = mx + b directly.
AnswersA, C, D

Correct: The sigmoid function ensures output in [0,1].

Why this answer

Logistic regression outputs probabilities; it uses the logistic function (sigmoid) to map linear combination to [0,1]. The coefficients represent log-odds changes. R² is for linear regression; pseudo-R² is used but not standard R².

108
Multi-Selecthard

A data analyst is performing a chi-square test for independence between two categorical variables. Which THREE of the following are necessary conditions for the test to be valid?

Select 3 answers
A.Variances are equal across groups
B.Data is normally distributed
C.Sample is randomly selected
D.Observations are independent
E.Expected frequency in each cell is at least 5
AnswersC, D, E

Correct condition.

Why this answer

The chi-square test requires expected frequencies ≥5, random sampling, and independence of observations.

109
MCQeasy

A retail company wants to analyze monthly sales data over the past three years to identify long-term trends. Which component of time series analysis is most relevant for this goal?

A.Irregular component
B.Cyclical component
C.Seasonality
D.Trend
AnswerD

Trend shows the overall long-term direction of the time series.

Why this answer

The trend component represents the long-term direction of the data, which is exactly what the company wants to identify.

110
Multi-Selecthard

A company is planning an A/B test to compare two website designs. Which THREE of the following must be determined before the test begins to ensure valid results? (Select three.)

Select 3 answers
A.The desired effect size
B.The p-value of the test
C.Which hypothesis is true
D.The minimum sample size required
E.The significance level (α)
AnswersA, D, E

Helps determine sample size.

Why this answer

Sample size (based on power and effect size), significance level (α), and desired effect size are all pre-specified to design the test. The p-value is an outcome, not a pre-test parameter. The hypothesis is defined beforehand, but which one is false? Actually null and alternative hypotheses should be pre-specified, but the phrasing 'which one is true' is not determined before; the test determines that.

So correct are: determine minimum sample size, determine significance level, and determine desired effect size.

111
MCQeasy

A marketing analyst wants to segment customers based on their purchase history, including total spent, number of transactions, and average order value. The analyst runs k-means clustering with k=5 on the raw data but notices that the cluster assignments change significantly every time the algorithm is executed. What should the analyst do first to obtain consistent and meaningful clusters?

A.Normalize the features and set a fixed random seed for the initial centroids.
B.Switch to hierarchical clustering, which does not require specifying k.
C.Increase the number of clusters to k=10 to capture more detail.
D.Use principal component analysis (PCA) to reduce the number of features to two.
AnswerA

Normalization ensures all features contribute equally, and a fixed seed ensures reproducible results.

Why this answer

The instability in cluster assignments is caused by the algorithm's sensitivity to the scale of features and the random initialization of centroids. Normalizing the features ensures that each variable contributes equally to the distance calculations, while setting a fixed random seed makes the initial centroid selection deterministic, leading to reproducible results.

Exam trap

The trap here is that candidates may think the instability is due to the choice of k or the algorithm itself, rather than recognizing that k-means is sensitive to feature scaling and random initialization, which are the first things to address for consistency.

How to eliminate wrong answers

Option B is wrong because hierarchical clustering does not require specifying k, but it still suffers from sensitivity to data scaling and does not address the core issue of random initialization causing variability. Option C is wrong because increasing k to 10 would likely increase instability and overfit noise, not resolve the fundamental problem of non-deterministic centroids. Option D is wrong because PCA reduces dimensionality but does not stabilize the k-means algorithm; the cluster assignments would still vary with different random seeds unless combined with normalization and a fixed seed.

112
MCQeasy

Refer to the exhibit. Which clause is used to aggregate the data by department?

A.HAVING
B.WHERE
C.ORDER BY
D.GROUP BY
AnswerD

GROUP BY groups rows by department, allowing COUNT to compute per-department totals.

Why this answer

The GROUP BY clause is used to aggregate data by department because it groups rows that have the same values in the specified column(s), allowing aggregate functions like SUM, AVG, or COUNT to be applied per group. In SQL, without GROUP BY, aggregate functions would operate on the entire result set, not per department.

Exam trap

CompTIA often tests the distinction between WHERE (row-level filter) and HAVING (group-level filter), leading candidates to confuse HAVING with GROUP BY when the question asks for the clause that performs aggregation.

How to eliminate wrong answers

Option A is wrong because HAVING is used to filter groups after aggregation, not to define the grouping itself. Option B is wrong because WHERE filters individual rows before aggregation and cannot group data by department. Option C is wrong because ORDER BY sorts the result set but does not perform any aggregation or grouping.

113
MCQeasy

You are a data analyst at a logistics company. The operations manager wants to reduce delivery delays. You have historical data including order date, delivery date, distance, weather conditions, and driver ID. Initial analysis shows that the average delivery time has increased over the past six months. You suspect that weather is a contributing factor, but you need to confirm. The company also wants to build a model to predict delivery times to better manage customer expectations. The data contains missing values for weather conditions in about 10% of records, and some driver IDs are incorrect. You have limited time and resources. What should you do first?

A.Immediately focus on time series analysis to look for patterns
B.Start by cleaning the data: correct driver IDs and decide how to handle missing weather data, then perform exploratory data analysis
C.Collect more data to fill missing values
D.Build a predictive model using all available data after imputing missing weather data
AnswerB

Cleaning ensures data integrity, and EDA guides modeling choices.

Why this answer

Data cleaning and exploratory data analysis (EDA) are foundational steps before any modeling or time series work. With missing weather data (10%) and incorrect driver IDs, proceeding without cleaning would introduce bias and errors. EDA will reveal patterns, correlations, and data quality issues, enabling informed decisions on imputation and feature engineering for the predictive model.

Exam trap

CompTIA often tests the misconception that you can jump directly to modeling or advanced analysis without first ensuring data quality, ignoring the 'garbage in, garbage out' principle.

How to eliminate wrong answers

Option A is wrong because time series analysis assumes clean, consistent data; applying it directly with missing values and incorrect IDs would yield unreliable patterns and waste resources. Option C is wrong because collecting more data is time-consuming and does not address the existing incorrect driver IDs or the need to understand current data quality; it also assumes missing values are random, which may not hold. Option D is wrong because building a predictive model on uncleaned data with imputed weather values without prior EDA risks overfitting, misinterpretation of feature importance, and propagation of errors from incorrect IDs.

114
MCQmedium

A data analyst is cleaning a dataset and finds that the 'age' column has several missing values. Which method of handling missing values is least likely to introduce bias if the missingness is completely at random?

A.Mean imputation
B.Listwise deletion
C.Mode imputation
D.Forward-fill
AnswerB

If MCAR, listwise deletion gives unbiased estimates, though with less power.

Why this answer

Listwise deletion (removing rows with missing values) is simple and unbiased if data is MCAR, but it reduces sample size. However, it is least likely to introduce bias among the options when MCAR holds.

115
MCQhard

A data analyst is comparing the means of two independent groups using a t-test. The sample sizes are small and the data is not normally distributed. Which condition is violated for a valid t-test?

A.Normality
B.Equal variances
C.Independence of observations
D.Sample size larger than 30
AnswerA

Normality is an assumption of t-test.

Why this answer

The t-test assumes normality of the data, especially with small samples. Violation of normality can affect the validity.

116
MCQeasy

A data analyst needs to summarize customer satisfaction scores. The data contains a few extremely low scores that skew the distribution. Which measure of central tendency is most appropriate?

A.Range
B.Mode
C.Median
D.Mean
AnswerC

The median is robust to outliers and provides a better central value for skewed data.

Why this answer

The median is the most appropriate measure of central tendency when data contains extreme outliers, such as the very low customer satisfaction scores described. Unlike the mean, the median is resistant to skew because it depends only on the middle value(s) of the sorted dataset, not on the magnitude of extreme values. This makes it the standard choice for summarizing ordinal or skewed interval/ratio data in data analysis.

Exam trap

The trap here is that candidates often default to the mean as the 'average' without considering outlier impact, but CompTIA Data+ tests the understanding that the mean is non-robust and the median is the correct choice for skewed data in the Analyzing and Modeling domain.

How to eliminate wrong answers

Option A (Range) is wrong because it is a measure of dispersion (the difference between the maximum and minimum values), not a measure of central tendency, and it is heavily influenced by outliers. Option B (Mode) is wrong because it identifies the most frequently occurring score, which may not represent the center of the distribution and can be misleading when outliers are present but not frequent. Option D (Mean) is wrong because it is sensitive to extreme values; the few extremely low scores will pull the arithmetic mean downward, misrepresenting the typical customer satisfaction experience.

117
Multi-Selectmedium

A data analyst is performing data cleaning on a dataset and identifies several outliers in the 'age' column. Which TWO methods are appropriate for handling these outliers? (Select two.)

Select 2 answers
A.Capping
B.Mean imputation
C.Transformation
D.Removal
E.Binning
AnswersA, D

Capping limits outliers to a specified percentile.

Why this answer

Capping limits extreme values to a threshold, and removal deletes outlier records. Transformation (e.g., log) can reduce impact but is more for skewness. Imputation and binning are for missing data or discretization, not directly for outliers.

118
MCQhard

A data analyst is building a model to predict customer churn. The dataset has 10,000 records with 500 churned customers. The model predicts churn with 95% accuracy, but only identifies 10% of actual churners. Which metric best highlights this issue?

A.Accuracy
B.F1 score
C.Recall
D.Precision
AnswerC

Recall is low (10%), showing the model fails to detect churners.

Why this answer

Recall (also known as sensitivity or true positive rate) measures the proportion of actual positives correctly identified. With only 10% of actual churners detected, the model has a recall of 0.1, which directly highlights the failure to capture churners despite high overall accuracy.

Exam trap

The trap here is that candidates may choose accuracy because it is a familiar and seemingly high value (95%), failing to recognize that in imbalanced datasets, accuracy can be deceptive and does not reflect poor performance on the minority class.

How to eliminate wrong answers

Option A is wrong because accuracy (95%) is misleading in imbalanced datasets; it can be high even if the model fails to detect churners, as the majority class (non-churners) dominates. Option B is wrong because the F1 score is the harmonic mean of precision and recall; while it would be low here, it does not directly isolate the issue of missing churners—recall is the metric that specifically measures detection of the positive class. Option D is wrong because precision measures the proportion of predicted churners that are actual churners; it does not reflect how many actual churners were missed, which is the core problem.

119
MCQeasy

In an A/B test, the null hypothesis states that there is no difference between the control and treatment groups. After running the test, the p-value is 0.04. Assuming α = 0.05, what is the correct conclusion?

A.Fail to reject the null hypothesis
B.Reject the null hypothesis
C.Accept the null hypothesis
D.The test is invalid because the p-value is too low
AnswerB

Correct conclusion.

Why this answer

Since p-value (0.04) < α (0.05), we reject the null hypothesis, indicating a statistically significant difference.

120
MCQeasy

A dataset contains a column 'Income' with values in different scales (some in thousands, some in hundreds). What is the best way to standardize this column for use in a machine learning model?

A.Apply min-max scaling to range [0,1]
B.Apply standard scaling (Z-score normalization)
C.Apply log transformation
D.Remove the column
AnswerB

Standard scaling centers and scales data, suitable for inconsistent scales.

Why this answer

Standard scaling (Z-score normalization) is the best approach because it transforms the data to have a mean of 0 and a standard deviation of 1, making values on different scales (thousands vs hundreds) directly comparable. Min-max scaling also rescales to [0,1], but it is sensitive to outliers and does not handle different scales as effectively when the distribution is not uniform. Log transformation is for reducing skewness, not for standardizing scales.

Removing the column discards useful information.

121
MCQhard

After building a binary classification model, the data analyst obtains the following confusion matrix: True Positives=80, True Negatives=100, False Positives=20, False Negatives=30. What is the F1 score?

A.0.76
B.0.73
C.0.80
D.0.69
AnswerA

Precision=0.8, Recall≈0.727, F1≈0.76.

Why this answer

The F1 score is the harmonic mean of precision and recall. Precision = TP/(TP+FP) = 80/(80+20) = 0.80. Recall = TP/(TP+FN) = 80/(80+30) ≈ 0.7273.

F1 = 2 * (0.80 * 0.7273) / (0.80 + 0.7273) ≈ 0.7619, which rounds to 0.76. Option A is correct.

Exam trap

CompTIA often tests the distinction between precision, recall, and F1, and the trap here is that candidates mistakenly use accuracy or a simple average instead of the harmonic mean, or they confuse recall with F1.

How to eliminate wrong answers

Option B (0.73) is wrong because it approximates recall (0.727) instead of computing the harmonic mean. Option C (0.80) is wrong because it uses precision alone, ignoring recall. Option D (0.69) is wrong because it likely results from a miscalculation, such as averaging precision and recall arithmetically (0.80+0.727)/2 ≈ 0.76, not 0.69, or from an incorrect formula like (TP+TN)/(TP+TN+FP+FN) = 180/230 ≈ 0.78, which is accuracy, not F1.

122
Multi-Selecteasy

A data analyst is preparing to build a predictive model. Which TWO steps are essential to ensure model validity? (Choose two.)

Select 2 answers
A.Increase model complexity
B.Perform cross-validation
C.Avoid feature selection
D.Use the entire dataset for training
E.Split data into training and testing sets
AnswersB, E

Cross-validation provides a more reliable estimate of model performance.

Why this answer

Cross-validation is essential for model validity because it partitions the data into multiple folds, training on k-1 folds and validating on the remaining fold, which provides a robust estimate of model performance and reduces overfitting. This technique ensures that the model generalizes well to unseen data by repeatedly testing different subsets, making it a standard practice in predictive modeling.

Exam trap

The trap here is that candidates may think using the entire dataset for training (Option D) is acceptable because it maximizes data for learning, but they overlook the necessity of a separate testing set to validate model performance and avoid overfitting.

123
Multi-Selectmedium

A data analyst is preparing a dataset for analysis and needs to address data quality issues. Which TWO of the following are common data cleaning tasks?

Select 2 answers
A.Performing hypothesis testing
B.Imputing missing values
C.Building a regression model
D.Calculating correlation coefficients
E.Deduplicating records
AnswersB, E

Correct.

Why this answer

Handling missing values and removing duplicates are standard data cleaning tasks.

124
MCQeasy

A marketing team wants to segment customers into distinct groups based on purchasing behavior. The data includes numeric features such as frequency, monetary value, and recency. Which unsupervised learning algorithm should be used?

A.Decision tree
B.K-means clustering
C.Linear regression
D.Association rules
AnswerB

K-means is an unsupervised clustering algorithm suitable for grouping customers based on numeric attributes.

Why this answer

K-means clustering is the correct choice because it is an unsupervised learning algorithm that partitions data into K distinct clusters based on feature similarity. For segmenting customers by purchasing behavior (frequency, monetary value, recency), K-means groups customers with similar numeric patterns without requiring labeled outcomes, making it ideal for exploratory segmentation.

Exam trap

The trap here is that candidates may confuse unsupervised clustering (K-means) with supervised classification (decision tree) or regression (linear regression), mistakenly thinking any algorithm that 'groups' data must be supervised, or that association rules are for segmentation rather than transaction pattern mining.

How to eliminate wrong answers

Option A is wrong because a decision tree is a supervised learning algorithm used for classification or regression, requiring labeled target variables, not for unsupervised segmentation of unlabeled customer data. Option C is wrong because linear regression is a supervised learning algorithm that models the relationship between independent and dependent variables, predicting a continuous output, not for discovering hidden groups in unlabeled data. Option D is wrong because association rules are used for market basket analysis to find frequent itemsets and co-occurrence patterns (e.g., products bought together), not for clustering customers into distinct groups based on numeric features.

125
Multi-Selecthard

A data scientist is cleaning a dataset and notices missing values in several columns. Which THREE techniques are appropriate for handling missing data? (Select THREE.)

Select 3 answers
A.Replace missing values with the mean or median
B.Ignore missing values and proceed with analysis
C.Predict missing values using regression
D.Remove rows with missing values
E.Always replace missing values with zero
AnswersA, C, D

Imputation with mean/median is a common technique for numeric data.

Why this answer

Replacing missing values with the mean (for normally distributed data) or median (for skewed data) is a standard imputation technique that preserves the central tendency of the dataset without introducing bias. This method is appropriate when the missingness is random and the proportion of missing data is low, as it maintains the sample size for analysis.

Exam trap

CompTIA often tests the misconception that ignoring missing values (Option B) is acceptable, but the DA0-001 exam expects candidates to recognize that most analytical tools require explicit handling of nulls, and simply proceeding without action leads to runtime errors or flawed results.

126
Multi-Selectmedium

A data analyst is cleaning a customer dataset. Which two actions are appropriate for handling duplicate records? (Choose TWO)

Select 2 answers
A.Impute missing values with mean
B.Delete any row with a duplicate email address
C.Remove all rows with identical values in every field
D.Apply Z-score standardization
E.Use a fuzzy matching algorithm to identify near-duplicates
AnswersC, E

Exact duplicates can be removed safely.

Why this answer

Removing exact duplicates and standardizing identifiers help resolve duplicates.

127
MCQmedium

A data analyst is preparing features for a machine learning model that uses distance-based algorithms (e.g., K-means, KNN). The dataset contains numerical features with different scales: age (0-100), income (20,000-200,000), and credit score (300-850). Which data transformation technique is most appropriate to ensure all features contribute equally to the distance calculations?

A.Z-score standardization
B.Min-max normalization
C.One-hot encoding
D.Log transformation
AnswerB

Correct: scales all features to [0,1] so distances are not dominated by large-scale features.

Why this answer

Min-max normalization rescales features to a fixed range (e.g., 0 to 1), making distances computed equally weighted. Standardization is better for algorithms assuming Gaussian distributions.

128
MCQmedium

A data analyst is testing whether the average sales amount differs between two regions. Which statistical test is most appropriate?

A.Chi-square test
B.ANOVA
C.Two-sample t-test
D.Paired t-test
AnswerC

Compares means of two independent groups.

Why this answer

A two-sample t-test compares the means of two independent groups.

129
MCQmedium

A data scientist builds a simple linear regression model to predict house prices based on square footage. The model yields an R-squared value of 0.85. Which statement accurately interprets this result?

A.The slope of the regression line is 0.85
B.85% of the data points lie exactly on the regression line
C.The model explains 85% of the variability in house prices
D.There is a 85% chance that square footage causes higher prices
AnswerC

Correct interpretation of R-squared.

Why this answer

R-squared of 0.85 means 85% of the variance in house prices is explained by square footage.

130
Multi-Selecthard

A data analyst is performing a chi-square test of independence on a contingency table of customer satisfaction (satisfied, neutral, dissatisfied) by region (North, South, East, West). Which THREE of the following are necessary assumptions for the test?

Select 3 answers
A.The two variables are categorical
B.The sample size is greater than 30
C.Expected frequencies in each cell are at least 5 (or most cells)
D.The observations are independent
E.The data must be normally distributed
AnswersA, C, D

Chi-square tests association between categorical variables.

Why this answer

Chi-square test requires categorical variables, expected frequencies >=5 in at least 80% of cells, and independence of observations.

131
MCQeasy

A dataset contains customer records with a column for 'Phone Number' that should be unique. However, the analyst finds several duplicate phone numbers. Which data quality dimension is primarily affected?

A.Completeness
B.Accuracy
C.Uniqueness
D.Consistency
AnswerC

Correct: duplicates violate uniqueness.

Why this answer

Uniqueness refers to the expectation that each record or attribute value should be unique. Duplicate phone numbers violate uniqueness.

132
MCQmedium

A marketing team runs an A/B test on email subject lines. The p-value is 0.03 with α = 0.05. Which of the following is the correct interpretation?

A.The result is not statistically significant at the 95% confidence level.
B.The probability that the null hypothesis is true is 3%.
C.Fail to reject the null hypothesis; no significant difference.
D.Reject the null hypothesis; there is a statistically significant difference.
AnswerD

p < α provides evidence against the null.

Why this answer

Since p-value (0.03) < α (0.05), we reject the null hypothesis, indicating a statistically significant difference.

133
MCQhard

In logistic regression, the output is a probability between 0 and 1. If the predicted probability for a customer churning is 0.7 and the decision threshold is 0.5, what is the predicted class?

A.Not churn (class 0)
B.Churn (class 1)
C.Both classes equally likely
D.Uncertain, need more data
AnswerB

Probability above threshold predicts the positive class.

Why this answer

Since 0.7 > 0.5, the predicted class is churn (usually coded as 1).

134
Drag & Dropmedium

Drag and drop the steps to implement a data classification policy in the correct order.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

Classification involves defining levels, assigning ownership, labeling, access control, and training.

135
Multi-Selectmedium

Which TWO of the following are true about Pearson correlation coefficient (r)?

Select 2 answers
A.An r of 0 means no relationship exists
B.It ranges from 0 to 1
C.It measures the strength and direction of a linear relationship
D.A value of +1 indicates a perfect positive linear relationship
E.It can be used for categorical variables
AnswersC, D

Correct.

Why this answer

Pearson r ranges from -1 to 1, measuring linear relationship; +1 indicates perfect positive linear correlation.

136
MCQmedium

A data analyst is analyzing customer purchase amounts. The dataset contains several extreme high values due to luxury purchases. Which measure of central tendency is most robust to these outliers?

A.Range
B.Mean
C.Mode
D.Median
AnswerD

The median is robust to outliers.

Why this answer

The median is not affected by extreme values, making it robust to outliers.

137
MCQmedium

A financial analyst wants to compare the mean annual returns of three different investment strategies. Which statistical test is most appropriate?

A.Chi-square test
B.Paired t-test
C.One-way ANOVA
D.Two-sample t-test
AnswerC

ANOVA can compare means of three or more independent groups.

Why this answer

ANOVA is used to compare means of three or more groups.

138
MCQmedium

A data analyst is preparing data for a k-nearest neighbors algorithm. The features include age (0-100) and income (0-200,000). Which technique should be applied to ensure the distance metric is not dominated by income?

A.Min-max normalization
B.Log transformation
C.Z-score standardization
D.One-hot encoding
AnswerA

Correct: min-max normalization scales to [0,1], preventing features with larger ranges from dominating.

Why this answer

Min-max normalization scales features to a 0-1 range, ensuring each feature contributes equally to distance calculations.

139
MCQhard

A financial analyst is building a model to predict stock price movements. The data is time series with daily prices. The analyst wants to use a regression model but notices that the residuals are autocorrelated. What adjustment should be made?

A.Use a time series model like ARIMA instead
B.Use cross-validation to validate the model
C.Add more predictors to the regression model
D.Transform the data to remove autocorrelation (e.g., differencing)
AnswerA

ARIMA models capture autocorrelation through autoregressive and moving average components.

Why this answer

When residuals from a regression model on time series data exhibit autocorrelation, the standard ordinary least squares (OLS) assumptions are violated, leading to biased standard errors and unreliable inference. An ARIMA model is specifically designed to handle autocorrelated time series by explicitly modeling the autoregressive (AR) and moving average (MA) components, making it the correct adjustment to capture the temporal dependencies in stock price movements.

Exam trap

The trap here is that candidates often confuse data transformation (like differencing) with model selection, thinking that simply removing autocorrelation from the data is sufficient, when in fact the model itself must be changed to a time series framework like ARIMA to properly account for the temporal structure.

How to eliminate wrong answers

Option B is wrong because cross-validation is a model validation technique that does not address autocorrelation in residuals; it would still produce unreliable performance estimates if the underlying model violates independence assumptions. Option C is wrong because adding more predictors does not fix autocorrelated residuals; it may even introduce multicollinearity or overfitting without correcting the temporal dependency structure. Option D is wrong because while differencing can remove certain types of autocorrelation (e.g., unit roots), it is a data transformation step often used within ARIMA modeling, not a standalone adjustment; simply transforming the data without changing the model framework does not resolve the fundamental issue that the regression model assumes independent errors.

140
MCQmedium

A data analyst is working with a dataset that includes a column 'income' with values ranging from 20,000 to 150,000. To standardize this variable for a linear regression that assumes normally distributed residuals, which method should be used?

A.Log transformation
B.Min-max normalization
C.Square root transformation
D.Z-score standardization
AnswerD

Correct: Z-score centers and scales to unit variance, suitable for normality assumptions.

Why this answer

Z-score standardization transforms data to have mean 0 and standard deviation 1, which is suitable for algorithms that assume normality (like linear regression).

141
MCQeasy

During ETL, a data analyst discovers that a date column contains values like '01/02/2023' and '2023-01-02'. Which of the following is the best practice to ensure consistent date format before analysis?

A.Keep both formats and handle during analysis
B.Use regular expressions to parse and convert each format
C.Remove records with inconsistent date formats
D.Apply a standardized date parsing function to convert all dates
AnswerD

Using a standardized date parsing function (e.g., TO_DATE in SQL or pd.to_datetime in Python) ensures all dates are in a consistent format.

Why this answer

Applying a standardized date parsing function (e.g., `TO_DATE` in SQL or `pd.to_datetime` in Python) ensures all date values are converted to a single, consistent format regardless of the original representation. This is a fundamental ETL best practice to avoid ambiguity and enable accurate date-based filtering, aggregation, and joins during analysis.

Exam trap

The trap here is that candidates may choose Option B (regular expressions) thinking it offers fine-grained control, but they overlook that dedicated date parsing functions are more reliable, simpler, and handle edge cases like leap years or time zones that regex cannot easily manage.

How to eliminate wrong answers

Option A is wrong because keeping both formats forces the analyst to handle multiple date patterns during every query, increasing complexity and risk of errors in comparisons or calculations. Option B is wrong because using regular expressions to parse dates is fragile, error-prone, and unnecessary when dedicated date parsing functions exist that handle locale and format variations robustly. Option C is wrong because removing records with inconsistent date formats discards potentially valid data, leading to incomplete analysis and biased results.

142
MCQeasy

Which data cleaning method involves replacing a missing value with the average of the available values in that column?

A.Mean imputation
B.Interpolation
C.Listwise deletion
D.Forward-fill
AnswerA

Mean imputation uses column average.

Why this answer

Mean imputation replaces missing values with the column mean.

143
Multi-Selecteasy

A data analyst is building a linear regression model to predict sales based on advertising spend across TV, radio, and newspaper channels. Which TWO diagnostics should the analyst perform to validate the model assumptions?

Select 2 answers
A.Durbin-Watson test for autocorrelation
B.Q-Q plot to assess normality of residuals
C.Variance inflation factor (VIF) for multicollinearity
D.Cook's distance to identify influential points
E.Residual plots to check for homoscedasticity
AnswersB, E

Q-Q plot checks normality assumption.

Why this answer

A Q-Q plot is used to assess whether the residuals of a linear regression model are approximately normally distributed, which is a key assumption for valid inference (e.g., p-values and confidence intervals). Option E is correct because residual plots (e.g., fitted vs. residuals) are the standard diagnostic to check for homoscedasticity—constant variance of errors across all levels of the independent variables—another core assumption of ordinary least squares regression.

Exam trap

CompTIA often tests the distinction between assumption validation (normality and homoscedasticity) and other regression diagnostics (autocorrelation, multicollinearity, influence) to see if candidates confuse model-building checks with residual assumption checks.

144
MCQmedium

A company has a dataset with 100 features. The data analyst wants to reduce dimensionality while preserving as much variance as possible. Which technique should be used?

A.PCA (Principal Component Analysis)
B.LDA (Linear Discriminant Analysis)
C.Autoencoders
D.t-SNE
AnswerA

PCA finds the directions of maximum variance and projects data onto them, preserving as much variance as possible.

Why this answer

PCA is the correct choice because it is an unsupervised linear dimensionality reduction technique that projects the data onto orthogonal components ordered by the variance they capture. By selecting the top principal components, the analyst can retain the maximum possible variance in the dataset while reducing the number of features from 100 to a smaller set, directly addressing the goal of preserving variance.

Exam trap

The trap here is that candidates often confuse PCA with LDA because both are linear transformations, but LDA requires labeled data and maximizes class separation, not variance, making it unsuitable for this unsupervised variance-preservation goal.

How to eliminate wrong answers

Option B (LDA) is wrong because LDA is a supervised technique that maximizes class separability, not variance preservation, and requires labeled target classes, which are not mentioned in the scenario. Option C (Autoencoders) is wrong because while autoencoders can reduce dimensionality, they are neural-network-based, require significant tuning and data, and are not the standard first-choice technique for simple variance-preserving reduction; PCA is more straightforward and computationally efficient for this task. Option D (t-SNE) is wrong because t-SNE is a nonlinear visualization technique primarily used for exploring high-dimensional data in 2D or 3D plots; it does not preserve global variance structure and cannot be used to transform new data or reduce dimensionality for modeling.

145
MCQeasy

A data analyst calculates a correlation coefficient of -0.85 between temperature and heating costs. What does this indicate?

A.No correlation
B.Strong positive correlation
C.Strong negative correlation
D.Weak negative correlation
AnswerC

The negative sign shows an inverse relationship, and 0.85 is close to -1, indicating strength.

Why this answer

A correlation coefficient of -0.85 indicates a strong negative linear relationship between temperature and heating costs. As temperature increases, heating costs decrease significantly, and the magnitude of 0.85 (close to -1) confirms the strength of this inverse association.

Exam trap

CompTIA often tests the misinterpretation of the sign of the correlation coefficient, where candidates confuse a strong negative correlation with a weak one or mistakenly think a negative value implies no relationship.

How to eliminate wrong answers

Option A is wrong because a correlation coefficient of -0.85 is far from 0, indicating a clear relationship, not no correlation. Option B is wrong because a positive correlation would have a coefficient greater than 0, but -0.85 is negative, showing an inverse relationship. Option D is wrong because a weak negative correlation would have a coefficient closer to 0 (e.g., -0.2 to -0.4), whereas -0.85 is near -1, indicating a strong negative correlation.

146
MCQmedium

Refer to the exhibit. An analyst runs the following query: SELECT product_id, AVG(quantity) FROM sales GROUP BY product_id HAVING AVG(quantity) > 8; Which product_id(s) will be returned?

A.P001 and P003
B.P001 only
C.P002 only
D.P003 only
AnswerA

P001 average is 9 and P003 average is 12, both >8.

Why this answer

The query groups sales by product_id and filters groups where the average quantity exceeds 8. From the exhibit (not shown but implied), only product_ids P001 and P003 have an AVG(quantity) > 8, so they are returned. The HAVING clause operates on aggregated data after GROUP BY, unlike WHERE which filters rows before aggregation.

Exam trap

CompTIA often tests the distinction between WHERE and HAVING, and the trap here is that candidates mistakenly think HAVING filters individual rows or that AVG(quantity) > 8 applies to each row, leading them to select only one product_id instead of recognizing the grouped result.

How to eliminate wrong answers

Option B is wrong because P001 alone does not satisfy the condition; P003 also has an average quantity above 8, so both are returned. Option C is wrong because P002's average quantity is 8 or less, so it is excluded by the HAVING clause. Option D is wrong because P003 is returned, but P001 also meets the condition, so the result is not limited to P003 only.

147
MCQhard

A data analyst is performing a multiple linear regression with three predictors. The model output shows an R-squared of 0.85 and an adjusted R-squared of 0.80. Which of the following is the best interpretation of the difference between these two values?

A.The model is overfitted, so all predictors should be removed
B.The model has high multicollinearity
C.The residuals are not normally distributed
D.One or more predictors may not be contributing meaningfully
AnswerD

The drop from R-squared to adjusted R-squared indicates that some predictors reduce model efficiency.

Why this answer

Adjusted R-squared penalizes for adding predictors that do not improve the model significantly; a gap suggests some predictors may be irrelevant or the sample size is small.

148
MCQmedium

A marketing team uses K-means clustering to segment customers based on purchase history. To determine the optimal number of clusters, they plot the within-cluster sum of squares (WCSS) against k and look for an elbow. What is the purpose of this method?

A.To find the point where the rate of decrease in WCSS slows down
B.To identify the value of k that minimizes WCSS
C.To determine the initial centroids for the algorithm
D.To ensure all clusters have equal size
AnswerA

Correct description of the elbow method.

Why this answer

The elbow method helps choose k where adding more clusters yields diminishing returns in reducing variance.

149
MCQhard

After training a decision tree, the tree has depth 20 and 100% accuracy on training data but only 60% on test data. Which hyperparameter adjustment is most likely to improve generalization?

A.Increase number of estimators
B.Decrease minimum samples per split
C.Increase minimum samples per leaf
D.Increase maximum depth
AnswerC

Increasing min_samples_leaf prevents the tree from fitting noise by requiring more samples in each leaf, reducing overfitting.

Why this answer

The model is overfitting: 100% training accuracy vs. 60% test accuracy with a depth-20 tree. Increasing minimum samples per leaf forces the tree to be simpler by requiring more samples in each leaf, reducing variance and improving generalization. This directly combats the overfitting caused by the overly deep tree.

Exam trap

The trap here is that candidates often confuse hyperparameters that reduce overfitting with those that increase model complexity, mistakenly choosing options like 'increase maximum depth' or 'decrease minimum samples per split' thinking they will improve accuracy.

How to eliminate wrong answers

Option A is wrong because increasing the number of estimators applies to ensemble methods like Random Forest or Gradient Boosting, not to a single decision tree; it would not affect this tree's overfitting. Option B is wrong because decreasing minimum samples per split allows the tree to split on smaller subsets, making it even more complex and worsening overfitting. Option D is wrong because increasing maximum depth would allow the tree to grow even deeper, exacerbating the overfitting problem rather than reducing it.

150
MCQmedium

An analyst wants to compare the mean sales revenue across three different store regions. The data is normally distributed and variances are equal. Which statistical test is most appropriate?

A.Two-sample t-test
B.ANOVA
C.Paired t-test
D.Chi-square test
AnswerB

ANOVA is appropriate for three groups.

Why this answer

ANOVA (Analysis of Variance) is used to compare means of three or more groups.

← PreviousPage 2 of 4 · 230 questions totalNext →

Ready to test yourself?

Try a timed practice session using only Data Analysis questions.