Skip to content
tezvyn:
Menu

Top 30 AI & ML Concepts Quiz

30 multiple-choice questions on the AI & ML fundamentals, drawn from 30 bites in the AI & ML 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.

Artificial intelligence, machine learning, and data science

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.

  1. 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.

    Read the full bite: pandas DataFrame: A Spreadsheet in Code

  2. 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

  3. 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.

    Read the full bite: JSON: The Lingua Franca of Web APIs

  4. 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.

    Read the full bite: Handling Duplicate Data

  5. 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.

    Read the full bite: Histogram: See the Shape in Your Data

  6. 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

  7. 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

  8. 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

  9. 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

  10. 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

  11. 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

  12. 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

  13. 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

  14. 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

  15. 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

  16. 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

  17. Question 17 of 30

    Which situation best illustrates why a loss function should not be the only measure of a model's real-world effectiveness?

    Show the answer

    Answer: a · The model achieves a low loss score, but its predictions are biased or provide no practical value to users.

    The card explicitly states that a low loss score doesn't guarantee real-world usefulness, as outputs can still be nonsensical, biased, or unhelpful. This highlights that loss functions are for optimization, not the final arbiter of a model's real-world usefulness. Option C describes a scenario where a loss function isn't typically used, rather than a limitation of relying on it as a sole metric when it is applied.

    Read the full bite: Loss Function: Quantifying 'How Wrong' a Model Is

  18. Question 18 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

  19. Question 19 of 30

    What is the main drawback of representing a digital image as a fixed grid of pixels?

    Show the answer

    Answer: b · It causes the image to appear blurry or pixelated when scaled up significantly.

    The card states that the 'primary weakness is scaling' for raster images, as making them larger requires inventing new pixels, leading to blurriness or pixelation. Option D describes vector graphics, which is a common misconception about how raster images work.

    Read the full bite: Digital Images as Grids of Pixels

  20. Question 20 of 30

    What is the primary distinction that makes MLOps necessary beyond traditional DevOps for machine learning systems?

    Show the answer

    Answer: a · Continuously monitoring model performance and orchestrating retraining on new data.

    MLOps uniquely addresses the lifecycle of machine learning models and their underlying data, including continuous monitoring for performance decay and automated retraining. Traditional DevOps focuses primarily on the code lifecycle, which is insufficient for the dynamic nature of ML models.

    Read the full bite: MLOps vs. DevOps: More Than Just "DevOps for ML"

  21. Question 21 of 30

    What fundamental capability do activation functions primarily provide to neural networks?

    Show the answer

    Answer: c · They introduce non-linear transformations, allowing the network to model complex, non-linear relationships.

    The card emphasizes that activation functions introduce non-linearity, which is crucial for neural networks to learn complex patterns beyond simple linear relationships. Without non-linearity, a multi-layered network would collapse into a single linear model. Other options describe secondary effects or unrelated concepts.

    Read the full bite: Activation Functions: Making Neural Networks Nonlinear

  22. Question 22 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

  23. Question 23 of 30

    What is the primary reason the pinhole camera model should not be directly applied to raw images from real cameras?

    Show the answer

    Answer: d · It does not model the non-linear distortions introduced by real camera lenses.

    The card explicitly states that real cameras introduce non-linear distortions (e.g., barrel or fisheye effects) that violate the straight-line assumption of the pinhole model. While other issues might exist, lens distortion is the primary limitation mentioned for direct application.

    Read the full bite: Pinhole Camera Model: Projecting 3D to 2D

  24. Question 24 of 30

    Which statement best describes the fundamental way regularization helps a model avoid overfitting?

    Show the answer

    Answer: b · It encourages the model to learn smaller, less extreme parameter values.

    Regularization adds a penalty to the loss function for large parameter values, which encourages the model to learn simpler, less extreme weights, thus preventing it from memorizing noise. Option A describes a beneficial outcome of regularization, but not its direct mechanism; it doesn't explicitly "ignore" data points but rather reduces their influence by constraining parameter magnitudes.

    Read the full bite: Regularization: Penalizing Complexity to Prevent Overfitting

  25. Question 25 of 30

    In the RGB color model, what color is produced when red, green, and blue light are combined at their maximum intensity?

    Show the answer

    Answer: a · White

    The RGB model is additive, meaning it starts with black and adds light. The card explicitly states that when all three primary lights (red, green, blue) overlap at full intensity, the result is white. Black is the result of mixing all primary pigments in a subtractive model, which is a common misconception the card addresses.

    Read the full bite: RGB Color Model: Mixing Light, Not Paint

  26. Question 26 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

  27. Question 27 of 30

    Which of the following best describes a fundamental limitation of an image histogram?

    Show the answer

    Answer: d · It fails to provide any information about the spatial arrangement of pixels in an image.

    An image histogram has zero spatial awareness; it summarizes pixel counts by brightness but does not indicate where those pixels are located in the image. Therefore, it cannot judge composition. The other options describe capabilities that histograms possess or misrepresent their core function.

    Read the full bite: Image Histograms: Visualizing an Image's Tonal DNA

  28. Question 28 of 30

    Which of the following best describes the core function of an ML experiment tracking system?

    Show the answer

    Answer: c · To systematically log experiment parameters, metrics, and artifacts for reproducibility and comparison.

    The card describes experiment tracking as a "digital lab notebook" that logs "parameters, metrics, artifacts, and environment" to enable "reproducibility" and "comparison" of experiments. While related to other ML lifecycle stages, its core function is not deployment, production monitoring, or data versioning, but rather systematic logging for experimental insights.

    Read the full bite: ML Experiment Tracking: Your Model's Lab Notebook

  29. Question 29 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

  30. Question 30 of 30

    What is the fundamental principle behind how Word2Vec represents word meaning?

    Show the answer

    Answer: c · Words with similar meanings are mapped to points that are spatially close in a multi-dimensional vector space.

    The core idea of Word2Vec is that words with similar meanings are represented by vectors that are close to each other in a multi-dimensional space, capturing semantic similarity through spatial proximity. Option A describes a method Word2Vec aims to improve upon, as it fails to capture semantic relationships.

    Read the full bite: Word2Vec: Word Meaning as a Point in Space

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.

Get it on Google PlayiPhone app coming soon