Unit 3: Various Data Preprocessing Operations - Practice Quiz

ECAP792 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What is the main purpose of data cleaning?

Data cleaning Easy
A. To display data in a chart
B. To permanently archive raw data
C. To correct or remove inaccurate data
D. To create additional data sources

2 Which issue is commonly handled during data cleaning?

Data cleaning Easy
A. File permissions
B. Screen resolution
C. Network speed
D. Missing values

3 What is a duplicate record?

Data cleaning Easy
A. A record containing only numbers
B. A record that appears more than once
C. A record arranged in sorted order
D. A record stored in another format

4 Which action can be used to handle a missing numerical value?

Data cleaning Easy
A. Copy it into another database
B. Replace it with the column mean
C. Convert it into a table name
D. Sort it in descending order

5 What does data integration involve?

Data integration Easy
A. Reducing the number of attributes
B. Deleting every incomplete record
C. Combining data from multiple sources
D. Dividing values into intervals

6 Which is an example of data integration?

Data integration Easy
A. Merging customer tables from two branches
B. Grouping salaries into income ranges
C. Replacing missing ages with the mean
D. Converting temperatures from Celsius to Fahrenheit

7 Which field is commonly used to match records across two tables?

Data integration Easy
A. A display color
B. A random decimal
C. A shared identifier
D. A file extension

8 What problem occurs when two sources use different names for the same attribute?

Data integration Easy
A. Schema inconsistency
B. Interval binning
C. Random sampling
D. Value normalization

9 What is data transformation?

Data transformation Easy
A. Protecting files with a password
B. Converting data into a suitable form
C. Collecting data from new respondents
D. Removing all records from a table

10 What does normalization usually do to numerical data?

Data transformation Easy
A. Changes numbers into missing values
B. Combines several database tables
C. Removes every repeated record
D. Rescales values to a common range

11 Which operation is an example of data transformation?

Data transformation Easy
A. Deleting duplicate customer records
B. Joining sales data with customer data
C. Converting dates to one standard format
D. Selecting a sample from a population

12 What is aggregation in data transformation?

Data transformation Easy
A. Summarizing detailed data into totals
B. Splitting values into category intervals
C. Matching records from separate sources
D. Finding duplicate rows in a table

13 What is the main goal of data reduction?

Data reduction Easy
A. To combine data stored in unrelated source systems
B. To increase data size by copying existing records
C. To decrease data size while preserving useful information
D. To correct spelling mistakes in categorical values

14 Which method reduces data by selecting only some records?

Data reduction Easy
A. Normalization
B. Discretization
C. Integration
D. Sampling

15 What does dimensionality reduction decrease?

Data reduction Easy
A. The number of data sources
B. The number of file types
C. The number of features
D. The number of databases

16 What is feature selection?

Data reduction Easy
A. Replacing missing values with estimates
B. Combining records from different tables
C. Converting continuous values into categories
D. Keeping the most relevant attributes

17 What does data discretization do?

Data discretization Easy
A. Selects a subset of available features
B. Converts continuous values into intervals
C. Corrects inaccurate values in records
D. Combines tables from different databases

18 Which is an example of discretizing age?

Data discretization Easy
A. Grouping ages as child, adult, and senior
B. Combining age data from two surveys
C. Replacing missing ages with the median
D. Removing age from the entire dataset

19 What is a bin in data discretization?

Data discretization Easy
A. A table containing duplicate records
B. A feature removed during sampling
C. An interval containing a range of values
D. A key connecting two data sources

20 Which type of data is most directly handled by discretization?

Data discretization Easy
A. Continuous numerical data
B. Encrypted password data
C. Relational schema data
D. Unstructured image data

21 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?

Data cleaning Medium
A. Remove every row containing a missing value
B. Replace missing values with the mean
C. Replace missing values with zero
D. Replace missing values with the median

22 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?

Data cleaning Medium
A. Merge them after verifying they represent one customer
B. Delete both records from the dataset
C. Treat both records as unrelated customers
D. Replace both names with missing values

23 A hospital dataset contains patient ages of 34, 67, 12, and 240 years. Which rule would most directly identify the invalid value?

Data cleaning Medium
A. A valid-range constraint on age
B. A uniqueness constraint on age
C. A frequency constraint on age
D. A formatting constraint on age

24 A temperature sensor occasionally records 999 when it loses connection. The normal operating range is to degrees Celsius. How should 999 initially be handled?

Data cleaning Medium
A. Keep it as a genuine outlier
B. Replace it with the maximum value
C. Scale it using min-max normalization
D. Convert it to a missing value

25 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?

Data integration Medium
A. Discretize both fields into equal-width bins
B. Remove both fields before joining
C. Standardize the fields using schema matching
D. Normalize both fields to the interval

26 Two regional datasets store sales in dollars and euros. What is required before calculating combined total sales?

Data integration Medium
A. Replace both columns with category labels
B. Join both datasets without changing values
C. Sort both columns in ascending order
D. Convert both columns to a common currency

27 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?

Data integration Medium
A. Prefer the alphabetically first address
B. Keep only the shortest address
C. Select either address at random
D. Prefer the most recently updated record

28 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?

Data integration Medium
A. Whether numerical columns have been normalized
B. Whether missing values use the median
C. Whether categories have been one-hot encoded
D. Whether the join key is unique as expected

29 A model uses height in centimeters and annual income in dollars. Which transformation gives both variables mean and standard deviation ?

Data transformation Medium
A. Min-max normalization
B. Z-score standardization
C. Equal-width discretization
D. Decimal scaling

30 A transaction-amount variable is positive and strongly right-skewed. Which transformation is most likely to reduce the skew while preserving value order?

Data transformation Medium
A. A logarithmic transformation
B. A random permutation
C. A one-hot transformation
D. A label-encoding transformation

31 A feature named transport_type has the unordered values bus, train, car, and bicycle. Which encoding avoids implying an artificial ranking?

Data transformation Medium
A. Ordinal encoding
B. Rank transformation
C. Cumulative encoding
D. One-hot encoding

32 Using min-max normalization to , what is the transformed value of when the observed minimum is and maximum is ?

Data transformation Medium
A.
B.
C.
D.

33 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?

Data reduction Medium
A. Principal component analysis
B. Equal-width binning
C. Mean imputation
D. One-hot encoding

34 A fraud dataset contains only 1% fraudulent transactions. You need a smaller representative sample for exploration. Which sampling method best preserves the class distribution?

Data reduction Medium
A. Simple sequential sampling
B. Convenience sampling
C. Stratified random sampling
D. Systematic majority-only sampling

35 A retailer stores one row per transaction but needs only monthly revenue trends by store. Which reduction operation is most suitable?

Data reduction Medium
A. Duplicate transactions with missing store values
B. Normalize each transaction to unit length
C. Aggregate transactions by store and month
D. Encode each transaction using one-hot vectors

36 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?

Data reduction Medium
A. Remove the ID and redundant features
B. Duplicate the categorical features
C. Remove all continuous measurements
D. Keep only the unique row ID

37 Values range from through . Using five equal-width intervals, which interval contains the value ?

Data discretization Medium
A.
B.
C.
D.

38 A highly skewed income variable must be divided into four bins containing approximately the same number of records. Which method should be used?

Data discretization Medium
A. Equal-width discretization
B. Random-boundary discretization
C. Fixed-threshold discretization
D. Equal-frequency discretization

39 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?

Data discretization Medium
A. Supervised entropy-based discretization
B. Alphabetical category ordering
C. Random interval discretization
D. Unsupervised equal-width discretization

40 A discretization scheme uses the intervals , , and . Into which bin should the value be placed?

Data discretization Medium
A. Both adjacent intervals
B. The interval
C. The interval
D. The interval

41 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?

Data cleaning Hard
A. Remove incomplete rows separately from both the training and validation portions of each fold
B. Fit a multivariate imputer on each training fold and apply it to that fold's validation data
C. Fit a multivariate imputer once on all predictors after removing the target variable
D. Fit a median imputer on the complete dataset before creating the cross-validation folds

42 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?

Data cleaning Hard
A. Delete one row because the three business attributes form a reliable composite key
B. Average the amounts and replace both records with one consolidated transaction
C. Keep the record with the larger transaction ID and discard the other record
D. Retain both rows until transaction-ID provenance or source-system rules establish duplication

43 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 ?

Data cleaning Hard
A. Retain it because automatic modification would alter the empirical distribution
B. Convert it to missing using the sensor's documented sentinel-value rule
C. Winsorize it to the lower boundary defined by three standard deviations
D. Replace it with the sample median because it is an extreme statistical outlier

44 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?

Data cleaning Hard
A. Select the most frequent spelling and replace every colliding source value
B. Discard both records because their canonical representations are not unique
C. Merge the records because normalized equality guarantees semantic equivalence
D. Flag the collision and preserve original values while resolving it with domain rules

45 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?

Data integration Hard
A. rows, indicating that table determines the output grain
B. rows, indicating an append operation at the customer grain
C. rows, indicating a many-to-many join at the selected grain
D. rows, indicating that table determines the output grain

46 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?

Data integration Hard
A. Standardize each column independently to zero mean and unit variance
B. Rename both columns to a shared canonical name without changing values
C. Resolve the semantic unit mismatch and convert both columns to a common unit
D. Cast both columns to the same floating-point representation before appending

47 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?

Data integration Hard
A. Join the score with the greatest timestamp satisfying
B. Join the maximum score recorded for that applicant across all timestamps
C. Join the score with the greatest timestamp satisfying
D. Join the score with the smallest absolute timestamp difference from

48 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?

Data integration Hard
A. Match decisions need not be transitive, so the component may merge distinct entities
B. Pairwise similarities cannot be represented by an undirected graph structure
C. Connected components require every record pair to have identical attribute values
D. A component algorithm necessarily removes records having incomplete identifiers

49 A Box–Cox transformation is selected for a positive predictor during model development. Which deployment procedure is statistically valid?

Data transformation Hard
A. Set for validation data whenever its mean differs from the training mean
B. Estimate on training data and reuse that value for validation and future data
C. Estimate independently for every validation batch to match its distribution
D. Estimate on the combined training and validation data before evaluation

50 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?

Data transformation Hard
A. The residual variance becomes zero because every row activates one indicator
B. The design matrix is rank-deficient because the indicators sum to the intercept
C. The feature matrix loses sparsity because the intercept duplicates every category
D. The model becomes nonlinear because each category receives a separate coefficient

51 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?

Data transformation Hard
A. Refit the maximum to and transform the observation to
B. Transform it to using the stored training minimum and maximum
C. Transform it to because every min–max output must lie in
D. Mark it missing because values outside the training range are undefined

52 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?

Data transformation Hard
A.
B.
C.
D.

53 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?

Data reduction Hard
A. PCA necessarily deletes every feature whose marginal variance is below one
B. PCA optimizes class separation but becomes unstable when classes are imbalanced
C. PCA preserves only nonlinear relationships and removes linear class information
D. PCA maximizes predictor variance without considering whether directions predict the target

54 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?

Data reduction Hard
A. Apply truncated SVD directly to the uncentered sparse matrix
B. Center every term column and apply a full covariance eigendecomposition
C. Convert the matrix to dense form and apply classical multidimensional scaling
D. Compute pairwise document covariance and retain all nonzero eigenvectors

55 Two disjoint groups summarize a numeric variable using and , where . Which additional information is required to compute the exact combined sample variance?

Data reduction Hard
A. Every original observation is required because variance summaries cannot be merged
B. Only the median and interquartile range from each group are additionally required
C. No additional information is required because the two summaries are sufficient
D. Only the minimum and maximum from each group are additionally required

56 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?

Data reduction Hard
A. Give each negative one hundred times the weight of each sampled positive
B. Give both classes equal weight because all positive cases were retained
C. Give each sampled negative ten times the weight of each sampled positive
D. Give each sampled positive ten times the weight of each sampled negative

57 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?

Data discretization Hard
A. The tied values must be distributed uniformly among bins to preserve quantile boundaries
B. Equal-width binning becomes identical to equal-frequency binning for this sample
C. Four equal-frequency bins always exist because the sample size is divisible by four
D. Exactly equal bin counts may be impossible because the four tied values must remain together

58 A supervised discretizer chooses cut points by maximizing information gain with respect to the target. Where must cut-point learning occur during cross-validation?

Data discretization Hard
A. Within each training fold, followed by applying those cut points to its validation fold
B. Within each validation fold, followed by applying the cut points to its training fold
C. Once on the full dataset, followed by reusing the cut points in every fold
D. Once on target-stratified predictors after labels have been removed from the dataset

59 A candidate split partitions a node containing 50 positives and 50 negatives into children and . Using base-2 entropy, what is the information gain?

Data discretization Hard
A. Approximately bits
B. Exactly bit
C. Exactly bits
D. Approximately bits

60 Training values are discretized using boundaries , , and . Which assignment correctly handles a deployment value of without refitting?

Data discretization Hard
A. Treat as missing because it exceeds the observed training maximum
B. Rescale all boundaries so that becomes the upper endpoint
C. Create a new bin based on the deployment value
D. Assign to using the stored boundaries