Top 30 Data Science & Analytics Concepts Quiz
30 multiple-choice questions on the Data Science & Analytics fundamentals, drawn from 30 bites in the Data Science & Analytics library. Answer them here or read straight down. Every question carries the correct option, why it is correct, and a link to the bite it came from.
Analysis, notebooks, visualization, pandas, statistics
30 questions. Pick an answer, or open “Show the answer” to read it.
Answers are graded in your browser. Quiz progress is not saved, and no XP or streak is earned here. The app keeps score.
Question 1 of 30
Which scenario best highlights the primary benefit of using a pandas DataFrame?
Show the answer
Answer: a · Efficiently analyzing a large CSV file containing sales figures.
The card states that DataFrames are the 'workhorse for loading, cleaning, and analyzing tabular data in Python, like sales figures from a CSV,' highlighting their efficiency for such tasks. DataFrames are not suitable for data too large for memory, deeply nested JSON, or simple single-column lists.
Question 2 of 30
Which statement accurately describes a common behavior when slicing a NumPy ndarray?
Show the answer
Answer: b · Modifying elements in the sliced portion will also alter the original array if the slice is a view.
The card explicitly states that 'slicing often creates a view, not a copy, so edits can alter the original.' This behavior is a feature for performance but a common source of bugs. Option A is a common misconception, as slicing does not always create a copy; it often creates a view.
Read the full bite: NumPy ndarray: Fast, Typed, Multidimensional Grids
Question 3 of 30
What is the primary reason JSON is widely adopted for data exchange in web APIs?
Show the answer
Answer: b · It provides a human-readable, text-based format for structured data that is easily parsed by various programming languages.
JSON's main advantage is its simple, text-based, and human-readable structure, which allows different systems and programming languages to easily exchange and parse structured data. It is not a binary format, nor does it execute code, and it explicitly lacks support for comments.
Question 4 of 30
According to the mental model for handling duplicates, what is the primary goal?
Show the answer
Answer: c · To consolidate fragmented information into a single, complete, and accurate record.
The card states the mental model's goal is to "merge them into a single, complete, and accurate record," emphasizing intelligent reconciliation over simple deletion. Option B is a common misconception and explicitly warned against as a "footgun" because it can lead to loss of valuable information or valid transactional data.
Question 5 of 30
What is the primary purpose of using a histogram in data analysis?
Show the answer
Answer: c · To understand the shape, central tendency, and spread of a single continuous variable.
A histogram is used to visualize the distribution of a single continuous variable, helping to understand its shape, central tendency, and spread. It is not suitable for comparing multiple categories, showing data over time, or displaying categorical data, which are common misconceptions.
Question 6 of 30
Which scenario is the most appropriate application for a bar chart?
Show the answer
Answer: d · Comparing the sales volume achieved by different product categories in a quarter.
Bar charts are best for comparing values across distinct categories, such as sales performance of different products. They are less suitable for showing a continuously changing trend over time, as in options A and C; option B describes a part-to-whole comparison that may be shown with a pie or stacked bar chart. Option D directly compares discrete product categories, so it is the best choice.
Read the full bite: Bar Chart: Compare Categories at a Glance
Question 7 of 30
Which scenario best describes a situation where a scatter plot would be an unsuitable visualization choice?
Show the answer
Answer: b · Displaying the distribution of customer satisfaction scores across different product categories.
Scatter plots are designed for visualizing the relationship between two continuous numerical variables. They are less effective when one or both variables are categorical, as points would stack, making trends unreadable. Options A, C, and D all involve two continuous variables, which are ideal for scatter plots.
Read the full bite: Scatter Plot: Visualizing Relationships Between Two Variables
Question 8 of 30
What is the primary advantage of a box plot when comparing distributions of several datasets?
Show the answer
Answer: c · It offers a compact visual summary, facilitating quick comparison of central tendency, spread, and outliers across groups.
The card emphasizes that box plots provide a "compact way to see a dataset's central tendency, spread, and skewness, especially when comparing multiple datasets at once." Option A is incorrect because the line in a box plot represents the median, not the mean, and the median is often more robust to outliers than the mean.
Read the full bite: Box Plot: See a Distribution's Shape at a Glance
Question 9 of 30
Which statement accurately describes a key characteristic of a probability distribution?
Show the answer
Answer: b · It maps every possible outcome of a random process to its specific probability.
A probability distribution is defined as a map of all possible outcomes and their chances, assigning a probability to each. It does not always follow a bell curve, and its purpose is to quantify uncertainty, not to predict exact outcomes or analyze deterministic processes.
Read the full bite: Probability Distributions: Mapping Odds to Outcomes
Question 10 of 30
What is the main reason for applying feature scaling in machine learning preprocessing?
Show the answer
Answer: a · To ensure that features with widely different numerical ranges contribute equally to distance-based or gradient calculations.
Feature scaling's primary goal is to prevent features with larger numerical ranges from dominating calculations in algorithms sensitive to magnitude, ensuring all features have comparable influence. While scaling can sometimes indirectly aid generalization, its main purpose is not to prevent overfitting, which is typically addressed by regularization.
Read the full bite: Feature Scaling: Putting Your Data on the Same Yardstick
Question 11 of 30
What is the primary reason for using one-hot encoding for categorical features in machine learning?
Show the answer
Answer: a · To enable machine learning models to process non-numeric categorical data without assuming an arbitrary order.
One-hot encoding converts categorical data into a numerical format that machine learning models can understand, crucially doing so without implying any false ordinal relationship or ranking between the categories. Option D is incorrect because one-hot encoding specifically aims to avoid assigning numerical ranks, as this would create a misleading sense of order for nominal data.
Read the full bite: One-Hot Encoding: Turning Categories into Numbers
Question 12 of 30
What is the primary role of the logistic (sigmoid) function within a logistic regression model?
Show the answer
Answer: a · To transform the linear combination of input features into a probability score between 0 and 1.
The logistic function takes the weighted sum of inputs and maps it to a value between 0 and 1, which represents the probability of the event occurring. It does not directly output a binary classification; that requires an additional thresholding step.
Read the full bite: Logistic Regression: Predicting a Yes or No Outcome
Question 13 of 30
What is a primary reason to choose a decision tree model for a predictive task?
Show the answer
Answer: c · Their straightforward interpretability and explainability to non-technical stakeholders.
The card emphasizes that decision trees are chosen when model interpretability is critical, making them easy to understand and explain. The card also states that single decision trees are highly prone to overfitting and that ensemble methods generally offer higher accuracy.
Read the full bite: Decision Tree Learning: A Flowchart for Your Data
Question 14 of 30
What is the core iterative process that drives k-Means clustering?
Show the answer
Answer: c · Data points are assigned to the nearest centroid, and then each centroid is relocated to the average position of its assigned points.
The card explicitly states the k-Means process involves iteratively assigning data points to their nearest centroid and then moving each centroid to the mean (average location) of its assigned points. Option B describes hierarchical clustering, not k-Means.
Read the full bite: k-Means Clustering: Grouping Data Around Centroids
Question 15 of 30
When consuming a REST API, what is the primary function of the HTTP status code in the server's response?
Show the answer
Answer: a · To inform the client about the outcome of its request, such as success or failure.
The card explains that the HTTP status code is "the waiter telling you if your order succeeded," directly indicating its role in communicating the success or failure of the request. Other options describe functions handled by HTTP headers or the URL.
Read the full bite: Consuming REST APIs: Speaking to Web Services
Question 16 of 30
What is the primary objective of structuring a data presentation using a narrative arc?
Show the answer
Answer: a · To persuade stakeholders by guiding them from an initial problem to a recommended solution.
The card explicitly states that data storytelling is used "to persuade an audience" and "to lead an audience through your analytical process to a specific recommendation." While simplifying complex data (C) and aiding memory (D) can be benefits, the core purpose is persuasion and driving action from a problem to a solution. Presenting all raw data (B) is contrary to the concept of a focused narrative.
Read the full bite: Data Storytelling: Using Narrative to Drive Insight
Question 17 of 30
When is conducting a stakeholder analysis most crucial for a project's success?
Show the answer
Answer: b · When the project involves diverse groups with potential conflicting interests or varying power.
The card emphasizes that stakeholder analysis is crucial for navigating the 'human landscape' and balancing 'competing demands' from parties with varying interest and influence. While identifying risks (option A) is an important project management activity, stakeholder analysis specifically focuses on understanding and managing the human element and their impact on the project.
Read the full bite: Stakeholder Analysis: Mapping Influence and Interest
Question 18 of 30
Which pitfall is explicitly warned against when applying the 5 Whys technique?
Show the answer
Answer: c · Attributing the problem's origin to individual human error rather than systemic flaws
The card explicitly states, 'The footgun is blaming people instead of asking why the process allowed the error,' emphasizing that the technique should focus on systemic process failures, not individual fault. While stopping at exactly five 'Whys' can be a misuse, the primary 'footgun' highlighted is the misdirection of blame.
Read the full bite: 5 Whys: Find the Root Cause, Not the Symptom
Question 19 of 30
When would applying the MECE principle be least appropriate for an analysis?
Show the answer
Answer: b · Analyzing a blog's content by assigning multiple relevant tags to each post.
The MECE principle is inappropriate when categories naturally overlap and that overlap is meaningful, such as when tagging blog posts with multiple relevant topics. Forcing MECE in such a case would lose valuable context. The other options describe scenarios where MECE is a highly effective tool for clear, unambiguous analysis.
Read the full bite: The MECE Principle: No Overlaps, No Gaps
Question 20 of 30
For which situation is a hypothesis-driven analysis LEAST appropriate?
Show the answer
Answer: c · Uncovering novel insights and potential trends within a newly acquired dataset.
Hypothesis-driven analysis is designed for testing specific, falsifiable statements. Uncovering novel insights from a new dataset is an open-ended discovery task, which is better suited for exploratory data analysis rather than hypothesis testing.
Read the full bite: Hypothesis-Driven Analysis: Ask First, Analyze Second
Question 21 of 30
What is the primary strategic advantage of implementing a North Star Metric for a product organization?
Show the answer
Answer: b · It ensures all teams are aligned on delivering core customer value, guiding major product investments and decisions.
The card states that an NSM aligns cross-functional teams on a common goal and shared definition of success, guiding major decisions and product investments. Options A and B describe misuses or explicit non-functions of an NSM, while option C overstates the immediate and guaranteed outcomes.
Read the full bite: North Star Metric: Aligning Your Team With One Metric
Question 22 of 30
Why is it essential to track both leading and lagging indicators in an organizational strategy?
Show the answer
Answer: c · To manage day-to-day activities with leading indicators and evaluate overall success with lagging indicators.
The card explains that leading indicators are for "operational management and proactive course-correction" (managing activities), while lagging indicators are for "strategic evaluation and reporting" and to "validate if those activities produced the desired result" (evaluating overall success). Option A is incorrect because the card explicitly warns against relying solely on leading indicators without validating them against lagging ones.
Read the full bite: Leading vs. Lagging Indicators: Predict the Future or Report the Past?
Question 23 of 30
Which situation best demonstrates the appropriate application of an issue tree?
Show the answer
Answer: a · Investigating the root causes behind a sudden, unexplained drop in customer retention.
Issue trees are designed for complex, unstructured diagnostic problems where the cause is unknown, such as an unexplained drop in a business metric. They are used for hypothesis generation, not for simple problems with clear causes or for managing the execution of known plans, nor for merely prioritizing symptoms without deconstructing the underlying problem.
Read the full bite: Issue Trees: Deconstruct Problems, Not Symptoms
Question 24 of 30
Which core concept allows causal inference to distinguish cause-and-effect from mere association?
Show the answer
Answer: c · The estimation of a counterfactual outcome
The card explicitly states that causal inference's mental model is to create a 'counterfactual'—what would have happened if the cause had not been introduced—to determine the causal effect. While identifying confounders and using RCTs are crucial methods in causal inference, the counterfactual is the underlying conceptual tool for distinguishing causation from association. Analyzing correlations is what causal inference aims to move beyond.
Read the full bite: Causal Inference: Proving Cause, Not Just Correlation
Question 25 of 30
What is the primary advantage of using uplift modeling over a traditional conversion prediction model?
Show the answer
Answer: b · It enables targeting of individuals whose conversion probability is significantly increased by a specific intervention.
Uplift modeling's core purpose is to identify 'Persuadables'—those whose behavior will change due to an intervention, maximizing the incremental impact of costly resources. Option C is incorrect because uplift's advantage is not just general prediction accuracy, but specifically predicting causal impact.
Read the full bite: Uplift Modeling: Who to Target, Not Just Who Will Convert
Question 26 of 30
According to the card, what is a crucial requirement for a collection of vectors to be considered a "vector space"?
Show the answer
Answer: d · Performing addition or scalar multiplication on any vectors from the collection must always yield a result that is also part of that same collection.
The card emphasizes that for a set to be a vector space, any operation (addition or scalar multiplication) must result in a vector that "is still inside the sandbox" or "is also still a 2D vector on that plane." This property, known as closure, is fundamental. Option B is incorrect because while the canonical example uses vectors from the origin, it's not a universal requirement for all vector spaces.
Question 27 of 30
When a medical test is 99% accurate, why does Bayes' Theorem suggest a positive result might not mean a 99% chance of having the disease?
Show the answer
Answer: a · The base rate, or initial prevalence of the disease in the population, significantly impacts the true probability.
The card emphasizes that Bayes' Theorem corrects intuition by incorporating the base rate (prior probability) of the disease. A low base rate means even a highly accurate test can yield many false positives, making the posterior probability of having the disease much lower than the test's accuracy suggests. Option D is tempting but incomplete, as it doesn't explain *why* the 1% error is so impactful in this context, which is due to the base rate.
Read the full bite: Bayes' Theorem: Updating Beliefs with Evidence
Question 28 of 30
Which scenario represents an inappropriate application for linear regression?
Show the answer
Answer: d · Predicting whether a customer will churn (yes/no) based on their service usage.
Linear regression is designed to predict continuous numerical values, not categorical outcomes like 'yes/no' for customer churn. The other options involve predicting continuous numerical values, which is the primary purpose of linear regression.
Read the full bite: Linear Regression: Finding the Line of Best Fit
Question 29 of 30
In a hypothesis test with an alpha of 0.05, what is the correct interpretation if your p-value is 0.03?
Show the answer
Answer: c · You have sufficient evidence to reject the null hypothesis.
The card states that if the p-value is less than alpha (p < alpha), you 'reject the null hypothesis.' Since 0.03 is less than 0.05, the null hypothesis is rejected. The p-value is not the probability of the null hypothesis being true, which is a common misconception.
Read the full bite: Hypothesis Testing: A Courtroom for Your Data
Question 30 of 30
What is the primary conceptual role of a matrix, beyond just being a grid of numbers?
Show the answer
Answer: c · To represent and apply linear transformations to vectors and space.
The card emphasizes that a matrix is fundamentally a "machine that transforms vectors" and describes "how space is stretched, rotated, or sheared." While matrices are used for solving linear equations (option A), this is a specific application of their ability to represent transformations. Options B and D misrepresent the scope or core functionality.
Read the full bite: Matrices: The Language of Linear Transformations
Could you explain these out loud?
That is what an interview actually tests. Tezvyn gives you questions like these with what the interviewer is really checking, the answer that lands, and the mistake that ends the conversation, in the four minutes before your next meeting.
The iPhone app is on the way
We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.
Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.