Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
You're offline
Unit 3 MCQsVarious Data Preprocessing Operations
ECAP792 ·
60 questions. Pick an option to check it.
Data cleaning improves data quality by correcting or removing inaccurate, incomplete, or inconsistent values.
Question 2 of 60 · Data cleaning · Easy
Which issue is commonly handled during data cleaning?
Not quite. Try another option.
Answer: Missing values
Data cleaning often handles missing values by removing affected records or replacing the missing entries.
Question 3 of 60 · Data cleaning · Easy
What is a duplicate record?
Not quite. Try another option.
Answer: A record that appears more than once
A duplicate record is an identical or repeated entry that occurs more than once in a dataset.
Question 4 of 60 · Data cleaning · Easy
Which action can be used to handle a missing numerical value?
Not quite. Try another option.
Answer: Replace it with the column mean
A missing numerical value can be imputed using a representative value such as the column mean.
Question 5 of 60 · Data integration · Easy
What does data integration involve?
Not quite. Try another option.
Answer: Combining data from multiple sources
Data integration combines information from different sources into a unified dataset.
Question 6 of 60 · Data integration · Easy
Which is an example of data integration?
Not quite. Try another option.
Answer: Merging customer tables from two branches
Merging customer tables combines data from separate sources, so it is a data integration task.
Question 7 of 60 · Data integration · Easy
Which field is commonly used to match records across two tables?
Not quite. Try another option.
Answer: A shared identifier
A shared identifier, such as a customer ID, helps connect corresponding records across tables.
Question 8 of 60 · Data integration · Easy
What problem occurs when two sources use different names for the same attribute?
Not quite. Try another option.
Answer: Schema inconsistency
A schema inconsistency occurs when sources represent the same information using different names or structures.
Question 9 of 60 · Data transformation · Easy
What is data transformation?
Not quite. Try another option.
Answer: Converting data into a suitable form
Data transformation changes the format, scale, or structure of data to make it suitable for analysis.
Question 10 of 60 · Data transformation · Easy
What does normalization usually do to numerical data?
Not quite. Try another option.
Answer: Rescales values to a common range
Normalization rescales numerical values so that features with different original scales become comparable.
Question 11 of 60 · Data transformation · Easy
Which operation is an example of data transformation?
Not quite. Try another option.
Answer: Converting dates to one standard format
Changing dates into a consistent format transforms their representation without changing their meaning.
Question 12 of 60 · Data transformation · Easy
What is aggregation in data transformation?
Not quite. Try another option.
Answer: Summarizing detailed data into totals
Aggregation summarizes detailed observations, such as converting daily sales into monthly totals.
Question 13 of 60 · Data reduction · Easy
What is the main goal of data reduction?
Not quite. Try another option.
Answer: To decrease data size while preserving useful information
Data reduction creates a smaller representation while retaining the information needed for analysis.
Question 14 of 60 · Data reduction · Easy
Which method reduces data by selecting only some records?
Not quite. Try another option.
Answer: Sampling
Sampling selects a representative subset of records instead of using the entire dataset.
Question 15 of 60 · Data reduction · Easy
What does dimensionality reduction decrease?
Not quite. Try another option.
Answer: The number of features
Dimensionality reduction decreases the number of features or variables used to represent the data.
Question 16 of 60 · Data reduction · Easy
What is feature selection?
Not quite. Try another option.
Answer: Keeping the most relevant attributes
Feature selection reduces data dimensions by retaining relevant attributes and removing unnecessary ones.
Question 17 of 60 · Data discretization · Easy
What does data discretization do?
Not quite. Try another option.
Answer: Converts continuous values into intervals
Data discretization groups continuous numerical values into a finite number of intervals or categories.
Question 18 of 60 · Data discretization · Easy
Which is an example of discretizing age?
Not quite. Try another option.
Answer: Grouping ages as child, adult, and senior
Grouping numerical ages into named ranges converts a continuous attribute into discrete categories.
Question 19 of 60 · Data discretization · Easy
What is a bin in data discretization?
Not quite. Try another option.
Answer: An interval containing a range of values
A bin is an interval used to group continuous values during discretization.
Question 20 of 60 · Data discretization · Easy
Which type of data is most directly handled by discretization?
Not quite. Try another option.
Answer: Continuous numerical data
Discretization most commonly converts continuous numerical values into a limited set of intervals.
Question 21 of 60 · Data cleaning · Medium
A customer-income column contains 8% missing values and is strongly right-skewed because of a few very high incomes. Which imputation method is most appropriate?
Not quite. Try another option.
Answer: Replace missing values with the median
The median is less affected by extreme values, so it is generally more suitable for imputing a skewed numerical variable.
Question 22 of 60 · Data cleaning · Medium
A dataset contains two records with the same customer ID, email address, and date of birth, but slightly different spellings of the customer name. What is the best cleaning action?
Not quite. Try another option.
Answer: Merge them after verifying they represent one customer
Matching stable identifiers strongly suggests duplication, but verification should occur before records are merged.
Question 23 of 60 · Data cleaning · Medium
A hospital dataset contains patient ages of 34, 67, 12, and 240 years. Which rule would most directly identify the invalid value?
Not quite. Try another option.
Answer: A valid-range constraint on age
A domain-based valid range can flag ages that are numerically formatted but impossible in the application context.
Question 24 of 60 · Data cleaning · Medium
A temperature sensor occasionally records 999 when it loses connection. The normal operating range is to degrees Celsius. How should 999 initially be handled?
Not quite. Try another option.
Answer: Convert it to a missing value
Because 999 is a known error code outside the valid sensor range, it should be treated as missing before imputation or analysis.
Question 25 of 60 · Data integration · Medium
One sales table uses the field customer_id, while another uses client_number for the same identifier. What should be done before integrating the tables?
Not quite. Try another option.
Answer: Standardize the fields using schema matching
Schema matching identifies attributes with different names but the same meaning so they can be aligned during integration.
Question 26 of 60 · Data integration · Medium
Two regional datasets store sales in dollars and euros. What is required before calculating combined total sales?
Not quite. Try another option.
Answer: Convert both columns to a common currency
Values must use a consistent unit before aggregation; otherwise, the combined total has no valid interpretation.
Question 27 of 60 · Data integration · Medium
A customer address differs between a CRM record updated yesterday and a billing record updated six months ago. If update timestamps are reliable, which conflict-resolution rule is most suitable?
Not quite. Try another option.
Answer: Prefer the most recently updated record
When timestamps and sources are trustworthy, the latest update is usually the best available representation of the current address.
Question 28 of 60 · Data integration · Medium
Joining an orders table to a promotions table unexpectedly multiplies each order into several rows because multiple promotion records share the same code. What should be checked first?
Not quite. Try another option.
Answer: Whether the join key is unique as expected
Unexpected row multiplication commonly indicates a one-to-many or many-to-many join caused by nonunique keys.
Question 29 of 60 · Data transformation · Medium
A model uses height in centimeters and annual income in dollars. Which transformation gives both variables mean and standard deviation ?
Not quite. Try another option.
Answer: Z-score standardization
Z-score standardization applies , producing variables centered at zero with unit standard deviation.
Question 30 of 60 · Data transformation · Medium
A transaction-amount variable is positive and strongly right-skewed. Which transformation is most likely to reduce the skew while preserving value order?
Not quite. Try another option.
Answer: A logarithmic transformation
A logarithmic transformation compresses large positive values more than small ones, often reducing right skew.
Question 31 of 60 · Data transformation · Medium
A feature named transport_type has the unordered values bus, train, car, and bicycle. Which encoding avoids implying an artificial ranking?
Not quite. Try another option.
Answer: One-hot encoding
One-hot encoding creates a separate indicator for each nominal category without assigning an order among categories.
Question 32 of 60 · Data transformation · Medium
Using min-max normalization to , what is the transformed value of when the observed minimum is and maximum is ?
Not quite. Try another option.
Answer:
Min-max normalization gives .
Question 33 of 60 · Data reduction · Medium
A dataset has 100 highly correlated numerical features. You want fewer features while retaining at least 95% of the total variance. Which method is most appropriate?
Not quite. Try another option.
Answer: Principal component analysis
Principal component analysis forms a smaller set of uncorrelated components and can retain enough components to explain 95% of the variance.
Question 34 of 60 · Data reduction · Medium
A fraud dataset contains only 1% fraudulent transactions. You need a smaller representative sample for exploration. Which sampling method best preserves the class distribution?
Not quite. Try another option.
Answer: Stratified random sampling
Stratified sampling separately samples each class, helping preserve the rare fraud proportion in the reduced dataset.
Question 35 of 60 · Data reduction · Medium
A retailer stores one row per transaction but needs only monthly revenue trends by store. Which reduction operation is most suitable?
Not quite. Try another option.
Answer: Aggregate transactions by store and month
Aggregation reduces row-level detail while preserving the monthly store-level totals required for trend analysis.
Question 36 of 60 · Data reduction · Medium
A classification dataset includes a unique row ID, several useful measurements, and two redundant copies of existing features. Which action best reduces dimensionality without losing useful information?
Not quite. Try another option.
Answer: Remove the ID and redundant features
Unique identifiers usually provide no predictive pattern, while redundant copies add dimensions without adding new information.
Question 37 of 60 · Data discretization · Medium
Values range from through . Using five equal-width intervals, which interval contains the value ?
Not quite. Try another option.
Answer:
Five equal-width intervals over this range have width , so belongs to .
Question 38 of 60 · Data discretization · Medium
A highly skewed income variable must be divided into four bins containing approximately the same number of records. Which method should be used?
Not quite. Try another option.
Answer: Equal-frequency discretization
Equal-frequency discretization chooses quantile-based boundaries so each bin contains approximately the same number of observations.
Question 39 of 60 · Data discretization · Medium
You are discretizing age for a churn classifier and want bin boundaries that best separate churned from non-churned customers. Which approach is most suitable?
Not quite. Try another option.
Answer: Supervised entropy-based discretization
Entropy-based discretization uses the target labels to select boundaries that produce purer class groups.
Question 40 of 60 · Data discretization · Medium
A discretization scheme uses the intervals , , and . Into which bin should the value be placed?
Not quite. Try another option.
Answer: The interval
The second interval excludes its upper endpoint, while the third interval includes 20 as its lower endpoint.
Question 41 of 60 · Data cleaning · Hard
A dataset has values missing at random, where the probability that feature is missing depends on observed feature . During 5-fold cross-validation, which procedure best prevents information leakage while preserving this relationship?
Not quite. Try another option.
Answer: Fit a multivariate imputer on each training fold and apply it to that fold's validation data
The imputer must learn parameters only from each training fold. A multivariate imputer can use observed to model the missingness pattern without exposing validation information.
Question 42 of 60 · Data cleaning · Hard
A transaction table contains two rows with the same customer, timestamp, and amount but different transaction IDs. Some legitimate customers can make identical purchases within the same second. What is the safest cleaning action?
Not quite. Try another option.
Answer: Retain both rows until transaction-ID provenance or source-system rules establish duplication
Matching business attributes do not prove duplication when identical legitimate events are possible. Deduplication requires a validated key or source-specific evidence.
Question 43 of 60 · Data cleaning · Hard
A pressure sensor occasionally reports to encode failure, while valid measurements are approximately Gaussian with mean and standard deviation . Which rule most appropriately handles the value ?
Not quite. Try another option.
Answer: Convert it to missing using the sensor's documented sentinel-value rule
The value is a documented failure code rather than a measurement. Semantic validation takes precedence over purely statistical outlier treatment.
Question 44 of 60 · Data cleaning · Hard
After Unicode normalization and case folding, the customer labels MASS and Maß both map to the same normalized token. The distinction may be meaningful in the source system. What should the cleaning pipeline do?
Not quite. Try another option.
Answer: Flag the collision and preserve original values while resolving it with domain rules
Normalization can create false equivalences. Retaining raw values and recording collisions makes the operation reversible and allows domain-aware resolution.
Question 45 of 60 · Data integration · Hard
Table has three rows for customer C7, and table has four rows for C7. An inner join is performed using only customer_id. How many joined rows for C7 result, and what does this indicate?
Not quite. Try another option.
Answer: rows, indicating a many-to-many join at the selected grain
Every matching row in pairs with every matching row in , producing rows. Additional keys or pre-aggregation may be needed.
Question 46 of 60 · Data integration · Hard
Two hospitals store temperature under a column named temp: one records Celsius and the other Fahrenheit. Both columns are numeric and have no missing values. Which integration step is essential before concatenation?
Not quite. Try another option.
Answer: Resolve the semantic unit mismatch and convert both columns to a common unit
Matching names and data types do not imply matching semantics. Unit conversion is required to make values comparable before integration.
Question 47 of 60 · Data integration · Hard
For each loan application at time , a credit-score history table contains multiple timestamped scores. Which join avoids future-data leakage while using the freshest available score?
Not quite. Try another option.
Answer: Join the score with the greatest timestamp satisfying
A backward as-of join selects the latest score known at application time. Nearest or later joins can introduce information unavailable at prediction time.
Question 48 of 60 · Data integration · Hard
In entity resolution, pairwise rules classify A–B and B–C as matches but A–C as a non-match. Why can taking connected components over matched pairs be unsafe?
Not quite. Try another option.
Answer: Match decisions need not be transitive, so the component may merge distinct entities
Connected components impose transitive closure. A bridge record can therefore combine entities even when some pairs have evidence of being distinct.
Question 49 of 60 · Data transformation · Hard
A Box–Cox transformation is selected for a positive predictor during model development. Which deployment procedure is statistically valid?
Not quite. Try another option.
Answer: Estimate on training data and reuse that value for validation and future data
The transformation is a learned preprocessing step. Estimating outside the training data leaks distributional information and creates inconsistent feature mappings.
Question 50 of 60 · Data transformation · Hard
A categorical variable with levels is one-hot encoded into all indicator columns and used in an unregularized linear regression that includes an intercept. What is the resulting issue?
Not quite. Try another option.
Answer: The design matrix is rank-deficient because the indicators sum to the intercept
For every row, the indicators sum to , which duplicates the intercept column. Dropping one indicator or the intercept removes the exact dependency.
Question 51 of 60 · Data transformation · Hard
A min–max scaler is fit to training values ranging from to . A valid deployment observation has value . Using , how should it be transformed if clipping was not part of the specification?
Not quite. Try another option.
Answer: Transform it to using the stored training minimum and maximum
Min–max scaling guarantees only for values within the fitted range. New values may map outside that interval unless explicit clipping is required.
Question 52 of 60 · Data transformation · Hard
A model is trained by ordinary least squares on , with residuals approximately . To estimate the conditional arithmetic mean of under this model, which back-transformation is appropriate?
Not quite. Try another option.
Answer:
For log-normal residuals, . Plain exponentiation estimates the conditional median instead.
Question 53 of 60 · Data reduction · Hard
A low-variance feature almost perfectly separates a rare positive class, while several high-variance noise features dominate the dataset. Why can retaining only the leading principal components harm classification?
Not quite. Try another option.
Answer: PCA maximizes predictor variance without considering whether directions predict the target
PCA is unsupervised. A low-variance direction can contain strong target information yet be discarded because it contributes little overall predictor variance.
Question 54 of 60 · Data reduction · Hard
A very large term-document matrix is sparse. The goal is a latent semantic representation without materializing a dense centered matrix. Which method is most suitable?
Not quite. Try another option.
Answer: Apply truncated SVD directly to the uncentered sparse matrix
Truncated SVD works efficiently with sparse matrices and avoids centering, which would usually destroy sparsity. This approach underlies latent semantic analysis.
Question 55 of 60 · Data reduction · Hard
Two disjoint groups summarize a numeric variable using and , where . Which additional information is required to compute the exact combined sample variance?
Not quite. Try another option.
Answer: No additional information is required because the two summaries are sufficient
The counts and means determine the between-group correction, while the two values provide within-group variation. The combined variance is therefore exactly recoverable.
Question 56 of 60 · Data reduction · Hard
A population contains positive cases. A reduced training sample includes all positives but only of negatives. To estimate population-level risk with an unweighted loss replaced by a weighted loss, which relative weighting is appropriate?
Not quite. Try another option.
Answer: Give each sampled negative ten times the weight of each sampled positive
Inverse-probability weighting uses for positives and for negatives. This restores their expected contribution to population-level loss.
Question 57 of 60 · Data discretization · Hard
A feature has values . An algorithm requests four equal-frequency bins while prohibiting identical values from being split across bins. What is the key consequence?
Not quite. Try another option.
Answer: Exactly equal bin counts may be impossible because the four tied values must remain together
Quantile boundaries cannot both preserve ties and guarantee equal counts when a large tied block crosses desired cut points.
Question 58 of 60 · Data discretization · Hard
A supervised discretizer chooses cut points by maximizing information gain with respect to the target. Where must cut-point learning occur during cross-validation?
Not quite. Try another option.
Answer: Within each training fold, followed by applying those cut points to its validation fold
Because labels determine the cut points, fitting on all data leaks validation-target information. The discretizer must be included inside the cross-validation pipeline.
Question 59 of 60 · Data discretization · Hard
A candidate split partitions a node containing 50 positives and 50 negatives into children and . Using base-2 entropy, what is the information gain?
Not quite. Try another option.
Answer: Approximately bits
The parent entropy is . Each equally sized child has entropy , so the gain is bits.
Question 60 of 60 · Data discretization · Hard
Training values are discretized using boundaries , , and . Which assignment correctly handles a deployment value of without refitting?
Not quite. Try another option.
Answer: Assign to using the stored boundaries
Open-ended outer bins handle future values outside the observed training range. Refitting boundaries at deployment would make feature semantics inconsistent.
That's unit 3
Answer a few questions and your score shows up here.
Nearly through. Did unit 3 of ECAP792 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 3 of ECAP792 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.