Unit 1: Data preprocessing and visualization - Practice Quiz

BTY587 — Data Analysis And Simulations 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 Which of the following is an example of categorical (qualitative) data?

types of data Easy
A. Number of cars sold
B. Blood type of a patient
C. Temperature in Celsius
D. Height of a person in cm

2 Data that can only take specific separate values, such as the number of students in a class, is called:

types of data Easy
A. Nominal data
B. Discrete data
C. Ordinal data
D. Continuous data

3 A ranking of customer satisfaction as poor, average, good, excellent is an example of which data type?

types of data Easy
A. Ratio data
B. Interval data
C. Ordinal data
D. Nominal data

4 Which scale of measurement has a true zero point?

types of data Easy
A. Nominal scale
B. Interval scale
C. Ratio scale
D. Ordinal scale

5 Replacing a missing numeric value with the average of the available values is known as:

dealing with missing data Easy
A. Mean imputation
B. Deletion
C. Normalization
D. Encoding

6 Removing all rows that contain any missing values is referred to as:

dealing with missing data Easy
A. Listwise deletion
B. Interpolation
C. Mean imputation
D. Standardization

7 In many datasets, missing values are commonly represented by which of the following?

dealing with missing data Easy
A. NaN
B. Mode
C. Mean
D. Median

8 Which technique estimates a missing value using neighboring known data points, often in a sequence?

dealing with missing data Easy
A. One-hot encoding
B. Binning
C. Deletion
D. Interpolation

9 A scatter plot is primarily used to show the relationship between:

scatter plot Easy
A. A single category
B. Frequencies of a category
C. Two numeric variables
D. One variable over time only

10 In a scatter plot, if points rise together from lower-left to upper-right, the relationship is:

scatter plot Easy
A. Negative correlation
B. Perfectly random
C. No correlation
D. Positive correlation

11 Each individual point in a scatter plot represents:

scatter plot Easy
A. A category label
B. A single frequency count
C. One observation with two values
D. The mean of the dataset

12 A histogram is mainly used to display the:

histogram Easy
A. Change of trend over regions
B. Ranking of categories
C. Relationship between two variables
D. Distribution of a numeric variable

13 The intervals into which data is grouped in a histogram are called:

histogram Easy
A. Points
B. Nodes
C. Cells
D. Bins

14 How does a histogram differ from a bar chart?

histogram Easy
A. Histogram bars always have gaps
B. Histogram bars are for continuous data and touch
C. Histograms cannot show frequencies
D. Histograms only show categories

15 Group plots are most useful for:

group plots Easy
A. Showing a single value only
B. Reducing dimensions
C. Comparing data across multiple groups
D. Encoding missing data

16 A grouped bar chart is typically used to compare:

group plots Easy
A. Values across categories and subgroups
B. A single continuous distribution
C. Missing value counts only
D. Correlation between two variables

17 The line inside the box of a box plot represents the:

box plots Easy
A. Median
B. Maximum
C. Range
D. Mean

18 In a box plot, points that fall far outside the whiskers are typically identified as:

box plots Easy
A. Modes
B. Outliers
C. Medians
D. Quartiles

19 The height of the box in a box plot represents the:

box plots Easy
A. Total range
B. Mean value
C. Interquartile range (IQR)
D. Standard deviation

20 What is the main goal of dimensionality reduction?

dimensionality reduction Easy
A. Increase the number of features
B. Delete all missing values
C. Reduce the number of features while keeping key information
D. Sort data alphabetically

21 A dataset records customer satisfaction as Poor, Average, Good, and Excellent. Which data type best describes this variable?

types of data Medium
A. Nominal categorical
B. Ordinal categorical
C. Continuous numerical
D. Discrete numerical

22 Temperature measured in degrees Celsius is an example of which measurement scale?

types of data Medium
A. Nominal scale
B. Ordinal scale
C. Interval scale
D. Ratio scale

23 You encode the number of children per household as . How should this variable be classified?

types of data Medium
A. Continuous numerical
B. Ordinal categorical
C. Discrete numerical
D. Nominal categorical

24 A numerical column has a strongly right-skewed distribution with several outliers, and about 5% of values are missing. Which imputation choice is most appropriate?

dealing with missing data Medium
A. Replace missing values with zero
B. Impute with the median
C. Impute with the mean
D. Delete all rows with any missing value

25 Values are missing more often for low-income respondents who chose not to report income. This missingness mechanism is best described as:

dealing with missing data Medium
A. Missing Not At Random (MNAR)
B. Structurally missing
C. Missing At Random (MAR)
D. Missing Completely At Random (MCAR)

26 A feature is missing in 78% of records and is weakly related to the target. What is usually the most sensible action?

dealing with missing data Medium
A. Fill all missing entries with the mode
B. Impute with the column mean
C. Drop the entire column
D. Impute using KNN on the few present values

27 A scatter plot of two variables shows points tightly clustered along a line that falls from top-left to bottom-right. What does this indicate?

scatter plot Medium
A. No correlation
B. Strong negative correlation
C. A perfect nonlinear relationship
D. Strong positive correlation

28 You want to visualize the relationship between two numeric variables while also encoding a third numeric variable. Which scatter plot enhancement is most appropriate?

scatter plot Medium
A. Sort the points along the x-axis
B. Vary the marker size (bubble chart)
C. Increase the marker transparency uniformly
D. Add horizontal grid lines

29 In a large scatter plot, many points overlap and hide the true density of data. Which technique best addresses this overplotting?

scatter plot Medium
A. Change the marker color to red
B. Use transparency (alpha blending)
C. Remove the axis labels
D. Reduce the axis range

30 A histogram built with too many narrow bins appears jagged and noisy. What is the primary effect of increasing the bin width?

histogram Medium
A. It smooths the distribution but may hide fine detail
B. It changes the total count of observations
C. It converts the histogram into a box plot
D. It always reveals more detail in the data

31 A histogram shows most values bunched on the left with a long tail extending to the right. How is this distribution described?

histogram Medium
A. Left-skewed (negatively skewed)
B. Uniform
C. Symmetric
D. Right-skewed (positively skewed)

32 Which statement correctly distinguishes a histogram from a bar chart?

histogram Medium
A. A histogram requires sorted data, while a bar chart does not
B. A histogram always has gaps between bars, unlike a bar chart
C. A histogram displays continuous data in bins, while a bar chart displays categorical counts
D. A histogram can only show two variables, while a bar chart shows one

33 You want to compare the distribution of test scores across five different schools on a single figure. Which grouped visualization is most suitable?

group plots Medium
A. A pie chart of average scores
B. A single scatter plot of all scores
C. A single histogram of all scores combined
D. Side-by-side box plots grouped by school

34 A faceted (small-multiples) plot arranges several subplots that share the same axes. What is its main advantage?

group plots Medium
A. It combines all groups into one aggregated curve
B. It reduces the total number of data points shown
C. It automatically removes outliers from each panel
D. It allows direct visual comparison across subgroups on identical scales

35 When using a grouped bar chart to compare two categories across several months, what does color (hue) typically encode?

group plots Medium
A. The order of the months on the x-axis
B. The confidence interval of each bar
C. The category being compared within each month
D. The total sum across all months

36 In a standard box plot, the length of the box itself represents which quantity?

box plots Medium
A. The standard deviation
B. The full range (max min)
C. The mean absolute deviation
D. The interquartile range ()

37 Using the common rule, a point is flagged as an outlier if it lies:

box plots Medium
A. Outside the range to
B. More than two bin widths from the mode
C. Below the median by more than one standard deviation
D. Below or above

38 A box plot has , median , and . What does the position of the median inside the box suggest?

box plots Medium
A. The data is left-skewed
B. The data is right-skewed
C. The data has no variability
D. The data is perfectly symmetric

39 In Principal Component Analysis (PCA), the first principal component is chosen so that it:

dimensionality reduction Medium
A. Maximizes the correlation between original features
B. Minimizes the number of features in the dataset
C. Aligns exactly with the original first feature axis
D. Captures the direction of maximum variance in the data

40 Why is it generally recommended to standardize features before applying PCA?

dimensionality reduction Medium
A. To prevent features with larger scales from dominating the components
B. To increase the number of principal components
C. To guarantee the data becomes perfectly normal
D. To remove all correlations before analysis

41 A researcher encodes customer satisfaction as where the gaps between adjacent levels are not guaranteed to be equal. A colleague computes the arithmetic mean and standard deviation of this variable. What is the most defensible critique?

types of data Hard
A. The variable is ratio, so a geometric mean should have been used instead
B. The variable is nominal, so even the median is undefined for it
C. The variable is interval, so only the mode is a valid summary statistic
D. The variable is ordinal, so the mean and SD assume interval spacing that may not hold

42 Temperature in Celsius and temperature in Kelvin describe the same physical quantity. Which statement correctly distinguishes their measurement scales?

types of data Hard
A. Both are ratio scales, so ratios are meaningful in either scale
B. Celsius is interval and Kelvin is ratio, so ratios are meaningful only in Kelvin
C. Both are interval scales, so ratios are meaningless in either scale
D. Celsius is ratio and Kelvin is interval, so ratios are meaningful only in Celsius

43 In a dataset, income is missing more often for high earners because wealthy respondents decline to answer. The missingness depends on the unobserved income value itself. This mechanism is best classified as:

dealing with missing data Hard
A. Ignorable missingness under listwise deletion
B. MNAR (Missing Not At Random)
C. MAR (Missing At Random)
D. MCAR (Missing Completely At Random)

44 A data scientist replaces all missing values in a feature with the column mean before computing the sample variance. What is the primary distortion introduced?

dealing with missing data Hard
A. The mean shifts toward the imputed values, biasing central tendency
B. The variance is systematically overestimated because imputed values inflate the range
C. The correlation with other variables increases artificially
D. The variance is systematically underestimated because imputed values add no spread

45 Compared to single imputation, why does multiple imputation with imputed datasets produce more valid standard errors?

dealing with missing data Hard
A. It replaces missing values with the most frequent observed value times
B. It always reduces total variance by averaging out random noise across datasets
C. It guarantees unbiased estimates even under MNAR mechanisms
D. It incorporates between-imputation variance, reflecting uncertainty about the missing values

46 Two variables have Pearson correlation , yet a scatter plot shows a clear parabolic pattern. What is the correct interpretation?

scatter plot Hard
A. A log transform of both axes would restore a high linear
B. The scatter plot must contain a data entry error
C. The variables are statistically independent since
D. A strong nonlinear relationship exists that Pearson's fails to capture

47 When plotting 500,000 points where many overlap, a scatter plot becomes a solid ink blob (overplotting). Which technique best preserves density information?

scatter plot Hard
A. Plot only the first 100 rows to reduce clutter
B. Connect the points with lines sorted by x-value
C. Use a 2D density/hexbin plot mapping counts to color intensity
D. Increase the marker size so points are easier to see individually

48 A histogram of the same data looks unimodal with 10 bins but bimodal with 40 bins. What does this most likely indicate?

histogram Hard
A. The data are definitively bimodal since more bins reveal more truth
B. Histograms are unreliable and a pie chart should be used instead
C. Bin width strongly affects the visual, and the extra modes may be noise or genuine structure needing further checks
D. The 10-bin version is always correct because fewer bins reduce error

49 Using the Freedman–Diaconis rule, bin width is . For a sample with and , what is the approximate bin width?

histogram Hard
A.
B.
C.
D.

50 A right-skewed variable is plotted as a histogram, then re-plotted after a transform. What effect is most expected in the transformed histogram?

histogram Hard
A. The distribution becomes exactly uniform across all bins
B. The right tail is compressed, making the distribution appear more symmetric
C. The left tail is stretched, increasing the skew further
D. The number of modes always increases after the transform

51 You facet (small-multiple) a scatter plot by a categorical grouping variable across 6 panels. What is the key advantage of a shared common axis range across all panels?

group plots Hard
A. It removes the need to label the axes on individual panels
B. It guarantees each panel uses the maximum possible resolution
C. It allows direct visual comparison of magnitudes and positions across groups
D. It forces every group to display the same number of points

52 A grouped (clustered) bar chart shows category means for three groups but omits any uncertainty indicators. What is the most serious analytical limitation?

group plots Hard
A. The chart implies a time ordering that does not exist
B. Differences between group means cannot be judged for significance without variability information
C. Clustered bars always exaggerate the largest group's value
D. Bar charts cannot represent means, only counts, so the plot is invalid

53 Using the standard rule with and , at what upper value does a point begin to be flagged as an outlier?

box plots Hard
A. Above
B. Above
C. Above
D. Above

54 Two box plots have identical medians, quartiles, and whisker lengths, yet their underlying distributions differ dramatically (one bimodal, one unimodal). What limitation does this reveal?

box plots Hard
A. Box plots summarize quantiles and cannot reveal multimodality or internal shape
B. Box plots overstate variability when data are bimodal
C. Box plots always misrepresent the median for bimodal data
D. The two box plots must actually be identical if all summaries match

55 A notched box plot is used to compare two groups. If the notches of the two boxes do not overlap, the most appropriate conclusion is:

box plots Hard
A. The variances of the two groups are proven to be equal
B. The two distributions must both be perfectly symmetric
C. The two groups have identical medians with certainty
D. There is roughly 95% confidence evidence that the true medians differ

56 Before applying PCA to features measured in wildly different units (e.g., meters and kilograms), why is standardization typically required?

dimensionality reduction Hard
A. Without it, PCA cannot handle more than two features at once
B. Standardization makes the covariance matrix singular, simplifying the math
C. PCA maximizes variance, so unstandardized high-variance features dominate the components
D. PCA requires all features to be strictly positive to compute eigenvalues

57 The eigenvalues of a covariance matrix are . What proportion of total variance is explained by the first two principal components?

dimensionality reduction Hard
A.
B.
C.
D.

58 A key difference between PCA and t-SNE for visualization is that:

dimensionality reduction Hard
A. t-SNE preserves local neighborhood structure but distorts global distances and cluster sizes
B. PCA preserves local structure while t-SNE preserves global linear structure
C. t-SNE is a linear method and PCA is nonlinear
D. Both preserve exact pairwise distances identically

59 When choosing the number of components via a scree plot, the 'elbow' heuristic suggests keeping components:

dimensionality reduction Hard
A. Only those with eigenvalues exactly equal to zero
B. The single component with the smallest eigenvalue
C. All components until cumulative variance reaches 100%
D. Up to the point where the eigenvalue drop levels off sharply

60 In a scatter plot of study hours vs. exam score, adding a third variable (course difficulty) reverses the apparent positive trend within each course subgroup. This is an example of:

scatter plot Hard
A. Overplotting due to too many data points
B. Heteroscedasticity in the residual variance
C. Simpson's paradox, where aggregated and subgroup trends conflict
D. A ceiling effect on the exam score variable