120 industry-level multiple-choice questions on data cleaning, handling missing values, outliers, encoding, scaling, and preprocessing pipelines—modeled after real data scientist and analyst interviews at FAANG, fintech, and consulting firms.
120 Data Cleaning and Preprocessing in Data Analysis - MCQs
1 min read
Correct Answer: d) Database size
Explanation:
Data quality focuses on accuracy, completeness, and consistency, not the size of the database.
Correct Answer: a) Ignoring the tuple
Explanation:
Ignoring tuples with missing class labels is a simple strategy when the impact is minimal.
Correct Answer: b) Decision tree induction
Explanation:
Decision trees can predict probable values for missing data based on other attributes.
Correct Answer: b) To prepare data for effective analysis
Explanation:
Preprocessing transforms raw data into a format suitable for analysis and modeling.
Correct Answer: b) Normalization
Explanation:
Normalization scales features to a common range, like 0-1, to prevent bias.
Correct Answer: b) Biased model training
Explanation:
Unaddressed missing values can skew results and lead to inaccurate predictions.
Correct Answer: b) K-NN imputation
Explanation:
K-Nearest Neighbors finds similar data points to estimate missing values.
Correct Answer: a) Smoothing noisy data
Explanation:
Binning groups data into bins and replaces values with bin averages to reduce noise.
Correct Answer: d) All of the above
Explanation:
Duplicates can bias models, inflate variance estimates, and slow processing.
Correct Answer: b) One-hot encoding
Explanation:
One-hot encoding creates dummy variables for each category without ordinal assumptions.
Correct Answer: b) Transforming messy data into clean format
Explanation:
Data wrangling involves cleaning and restructuring data for analysis.
Correct Answer: a) Z-score method
Explanation:
Z-score identifies points more than 3 standard deviations from the mean as outliers.
Correct Answer: b) To make features comparable
Explanation:
Scaling ensures no feature dominates due to differing units or ranges.
Correct Answer: b) For ordinal data
Explanation:
Label encoding assigns numbers based on order, suitable for ordinal categories.
Correct Answer: a) Combining multiple data sources
Explanation:
Data integration merges datasets from different sources into a unified view.
Correct Answer: b) Mode imputation
Explanation:
Mode imputation uses the most frequent value for categorical missing data.
Correct Answer: a) Reduces variance
Explanation:
Mean imputation can underestimate variability in the dataset.
Correct Answer: b) Binning
Explanation:
Binning sorts data into intervals and smooths by boundary or mean values.
Correct Answer: b) Reducing data volume while preserving information
Explanation:
Data reduction techniques like PCA minimize data size without losing key insights.
Correct Answer: b) For skewed distributions
Explanation:
Median is robust to outliers and skewness, unlike the mean.
Correct Answer: a) Principal Component Analysis
Explanation:
PCA transforms data into principal components to reduce dimensions.
Correct Answer: b) Data integration
Explanation:
Integration resolves inconsistencies when merging multiple data sources.
Correct Answer: b) Cap or floor values
Explanation:
Capping limits extreme values to thresholds like quartiles.
Correct Answer: a) isnull()
Explanation:
Pandas' isnull() returns a boolean mask for missing values.
Correct Answer: a) Filling with previous value
Explanation:
Forward fill propagates the last valid observation forward.
Correct Answer: b) Z-score normalization
Explanation:
Z-score uses mean and standard deviation for standardization.
Correct Answer: b) Parsing errors
Explanation:
Inconsistent formats like dates can cause loading or computation failures.
Correct Answer: b) Joining
Explanation:
Joining combines tables based on matching keys like IDs.
Correct Answer: a) Continuous to categorical conversion
Explanation:
Discretization bins continuous values into discrete intervals.
Correct Answer: a) Interquartile Range
Explanation:
IQR method flags values outside 1.5 times the interquartile range.
Correct Answer: a) Data loss
Explanation:
Deletion reduces sample size, potentially biasing the dataset.
Correct Answer: b) Frequency encoding
Explanation:
Frequency encoding replaces categories with their occurrence counts.
Correct Answer: a) Normalization and aggregation
Explanation:
Transformation alters data structure, like normalizing or aggregating.
Correct Answer: a) Remove correlated features
Explanation:
Removing highly correlated features reduces redundancy and instability.
Correct Answer: a) Random errors or variances
Explanation:
Noise refers to irrelevant or incorrect data points distorting patterns.
Correct Answer: b) Pandas
Explanation:
Pandas provides DataFrames for efficient data cleaning and transformation.
Correct Answer: a) Filling with next value
Explanation:
Backward fill uses the next valid observation to fill gaps.
Correct Answer: b) Robust scaling
Explanation:
Robust scaling uses median and IQR, ignoring extreme values.
Correct Answer: a) Different naming conventions
Explanation:
Synonyms or varying abbreviations across sources lead to inconsistencies.
Correct Answer: a) Only matching records
Explanation:
Inner join returns rows with matching keys in both datasets.
Correct Answer: a) Supervised binning using class info
Explanation:
It uses information gain to create bins that maximize class separation.
Correct Answer: d) All of the above
Explanation:
Visual tools like box plots and scatters help identify outliers.
Correct Answer: b) When data loss is acceptable
Explanation:
Listwise deletes entire rows with any missing values if sample size allows.
Correct Answer: b) Converts to binary bits
Explanation:
Binary encoding halves dimensions compared to one-hot by using bits.
Correct Answer: a) Summarizing data
Explanation:
Aggregation computes summaries like means or counts from groups.
Correct Answer: c) Both a and b
Explanation:
High correlations or VIF > 5 indicate multicollinearity.
Correct Answer: b) Regression smoothing
Explanation:
Regression fits a model to local data for noise reduction.
Correct Answer: a) drop_duplicates()
Explanation:
drop_duplicates() eliminates repeated rows based on specified columns.
Correct Answer: a) Linear estimation between points
Explanation:
Interpolation estimates values using surrounding data points.
Correct Answer: a) Sum to 1
Explanation:
L1 normalizes by dividing by the sum of absolute values.
Correct Answer: a) Merging similar records
Explanation:
It identifies and merges duplicates across datasets.
Correct Answer: b) Left join
Explanation:
Left join keeps all from left table, matching from right.
Correct Answer: a) Supervised using chi-square
Explanation:
ChiMerge uses chi-square tests to determine bin boundaries.
Correct Answer: b) 3
Explanation:
Values beyond 3 standard deviations are typically outliers.
Correct Answer: a) For correlations
Explanation:
Pairwise uses available pairs, maximizing data for specific analyses.
Correct Answer: a) Replace with mean target
Explanation:
Target encoding uses the mean of the target for each category.
Correct Answer: a) Local averaging
Explanation:
Windowing averages values in a sliding window to smooth noise.
Correct Answer: b) Removes rows with missing
Explanation:
dropna() deletes rows or columns containing NaN values.
Correct Answer: a) Piecewise polynomial fitting
Explanation:
Splines use smooth polynomials between points for interpolation.
Correct Answer: a) Euclidean norm to 1
Explanation:
L2 divides by the square root of sum of squares.
Correct Answer: a) Approximate string matching
Explanation:
Fuzzy matching handles typos or variations in entity names.
Correct Answer: a) All records from both
Explanation:
Full outer join includes all rows, filling non-matches with nulls.
Correct Answer: a) Equal bin sizes
Explanation:
Equal-width divides range into uniform intervals.
Correct Answer: a) Accounts for covariance
Explanation:
It measures distance considering variable correlations.
Correct Answer: a) Random similar donor value
Explanation:
Hot-deck selects from observed values in similar cases.
Correct Answer: a) External donor values
Explanation:
Cold-deck uses values from another dataset or time.
Correct Answer: a) Creating new features
Explanation:
It derives informative variables from raw data.
Correct Answer: a) Handling skewness
Explanation:
Log reduces right-skewness in positive data.
Correct Answer: a) Stabilizes variance
Explanation:
It finds optimal power to make data more normal.
Correct Answer: a) Summarizing data characteristics
Explanation:
Profiling assesses quality, structure, and content.
Correct Answer: a) Aligning attributes across sources
Explanation:
It resolves differences in data schemas during integration.
Correct Answer: a) Equal counts per bin
Explanation:
Quantile binning ensures similar sample sizes in bins.
Correct Answer: a) Anomaly isolation via trees
Explanation:
It isolates outliers faster than normal points.
Correct Answer: a) Creates several filled datasets
Explanation:
It accounts for uncertainty by averaging multiple imputations.
Correct Answer: a) Higher-order interactions
Explanation:
It creates features like x^2 or x*y for non-linearity.
Correct Answer: a) For negative values too
Explanation:
Extension of Box-Cox handling negative and zero values.
Correct Answer: a) Ensuring accuracy and consistency
Explanation:
Validation checks rules like range or format compliance.
Correct Answer: a) Matching across datasets
Explanation:
It links records referring to the same entity.
Correct Answer: a) No class labels used
Explanation:
Methods like equal-width don't rely on target variables.
Correct Answer: a) Density-based outlier score
Explanation:
LOF compares local density to neighbors.
Correct Answer: a) Multiple Imputation by Chained Equations
Explanation:
Iterative regression for each variable with missings.
Correct Answer: a) Product of two features
Explanation:
Captures combined effects, like age * income.
Correct Answer: a) Maps to uniform distribution
Explanation:
It ranks data and maps to a uniform or normal dist.
Correct Answer: a) Systematic quality review
Explanation:
Auditing identifies patterns of errors or anomalies.
Correct Answer: a) Merging duplicate entities
Explanation:
Part of integration resolving duplicates across sources.
Correct Answer: a) Groups similar values
Explanation:
Uses clustering to form natural bins.
Correct Answer: a) Density-based clustering flags noise
Explanation:
Points not in clusters are outliers in DBSCAN.
Correct Answer: a) For time series states
Explanation:
Predicts missing values using state-space models.
Correct Answer: a) Previous time step value
Explanation:
Used in time series for autoregressive features.
Correct Answer: a) General family for normality
Explanation:
Includes Box-Cox and Yeo-Johnson for stabilizing variance.
Correct Answer: a) Valid foreign keys
Explanation:
Ensures links between tables are valid.
Correct Answer: a) Removing exact duplicates
Explanation:
Identifies and eliminates identical records.
Correct Answer: a) Minimizes intra-bin impurity
Explanation:
Uses information entropy for supervised discretization.
Correct Answer: a) Learns normal boundary
Explanation:
Flags points outside the learned normal region.
Correct Answer: a) Expectation-Maximization
Explanation:
Iteratively estimates parameters and missings.
Correct Answer: a) Moving statistics
Explanation:
Computes aggregates over time windows.
Correct Answer: a) For heavy-tailed data
Explanation:
Hyperbolic inverse sine handles extremes like log.
Correct Answer: a) Business rule checks
Explanation:
Ensures data fits domain-specific logic.
Correct Answer: a) Ignoring failed entities
Explanation:
Clean by including all historical data.
Correct Answer: a) Optimal bins via dynamic programming
Explanation:
Minimizes error with k bins.
Correct Answer: a) Gaussian mixture based
Explanation:
Fits minimum covariance determinant.
Correct Answer: a) Tree-based predictions
Explanation:
Uses forests to predict missings from features.
Correct Answer: a) Frequency domain for time series
Explanation:
Extracts periodic components.
Correct Answer: a) For count data skewness
Explanation:
Reduces variance in Poisson-like data.
Correct Answer: a) No missing required fields
Explanation:
Verifies all mandatory data is present.
Correct Answer: a) Non-random sampling
Explanation:
Address by understanding sampling method.
Correct Answer: a) Class-Attribute Interdependence Maximization
Explanation:
Supervised method maximizing dependency.
Correct Answer: a) Copula-based
Explanation:
Unsupervised using copulas for dependence.
Correct Answer: a) Probabilistic filling
Explanation:
Incorporates prior distributions for estimates.
Correct Answer: a) Multi-resolution analysis
Explanation:
Decomposes signals into time-frequency components.
Correct Answer: a) 1/x for left-skew
Explanation:
Inverts values to handle negative skew.
Correct Answer: a) No unintended duplicates
Explanation:
Ensures primary keys are unique.
Correct Answer: a) Time-period specific data
Explanation:
Balance data across periods.
Correct Answer: a) Minimum Description Length Principle
Explanation:
Supervised stopping criterion for binning.
Correct Answer: a) Distance to neighbors
Explanation:
High distance indicates isolation.
Correct Answer: a) Low-rank approximation
Explanation:
Fills sparse matrices like in recommender systems.
Correct Answer: a) Dense vector representations
Explanation:
Word2Vec or BERT captures semantic meaning.
Correct Answer: a) Milder than log for skewness
Explanation:
x^(1/3) for moderate right-skew.
Correct Answer: a) Data currency
Explanation:
Verifies data is up-to-date.
Correct Answer: a) Retaining supporting data
Explanation:
Avoid by objective criteria.
Correct Answer: a) Fuzzy unsupervised
Explanation:
Handles overlapping bins with fuzziness.
Correct Answer: a) ABOD using angles
Explanation:
Efficient for high dimensions via angles.
Correct Answer: a) Autoencoder-based
Explanation:
Learns latent representations for filling.
Correct Answer: a) Eigenfaces
Explanation:
Reduces dimensionality in face recognition.
Correct Answer: a) For left-skew to right
Explanation:
e^x stretches lower values.
Correct Answer: a) Matches reality
Explanation:
Verifies data correctness against sources.
Correct Answer: a) Geographic imbalance
Explanation:
Clean by sampling across regions.
Related Posts

100 Descriptive, Inferential, and Time Series Statistics in Data Analysis - MCQs
100 challenging multiple-choice questions on descriptive statistics, inferential methods, and time series analysis. Inspired by real data science and analytics…
November 8, 2025By MCQs Generator

160 Important Hadoop MCQs
1. Which of the following is not a key aspect of data quality in preprocessing? a) Accuracy b) Completeness c)…
October 31, 2025By MCQs Generator

130 Big Data Storage and Data Processing MCQs
130 multiple-choice questions designed to test and deepen understanding of Big Data storage mechanisms, including distributed file systems, NoSQL databases,…
November 1, 2025By MCQs Generator
Related Categories

Arts & Humanities MCQ
4 topics
By MCQs Generator

Civil Engineering MCQ
4 topics
By MCQs Generator

Commerce & Business MCQ
4 topics
By MCQs Generator

Competitive Exams MCQ
5 topics
By MCQs Generator

Computer Science MCQ
8 topics
By MCQs Generator

Electrical & Electronics Engineering MCQ
3 topics
By MCQs Generator

General Knowledge MCQ
2 topics
By MCQs Generator

General Science MCQ
4 topics
By MCQs Generator

Law & Judiciary MCQ
3 topics
By MCQs Generator

Mechanical Engineering MCQ
4 topics
By MCQs Generator

Medical & Health Sciences MCQ
4 topics
By MCQs Generator

Modern Tech Fields MCQ
3 topics
By MCQs Generator