Top 30 Easy AI & ML Concepts Quiz for Beginners
30 easy multiple-choice AI & ML concept questions, the vocabulary and first principles, the parts you need before anything else makes sense. They come from 30 bites in the AI & ML library, the gentlest slice of the 606 AI & ML concept questions in the 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.
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
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
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
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.
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"
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
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
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
Question 24 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
Question 25 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
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
Which scenario best highlights the primary benefit of using a data lake compared to a data warehouse?
Show the answer
Answer: b · Storing vast amounts of diverse, unprocessed data for future machine learning model training.
The card states that data lakes are ideal for storing "massive volumes of diverse, unstructured data cheaply, without having to define its structure or purpose upfront" and for "data scientists and machine learning engineers who need access to raw data for exploratory analysis and model training." Option B directly reflects this core advantage. Option C describes a use case better suited for a data warehouse, which is optimized for consistent, high-performance reporting.
Read the full bite: Data Lake vs. Data Warehouse: Raw vs. Refined Data
Question 28 of 30
Which of the following describes a proper ETL implementation?
Show the answer
Answer: b · A scheduled process automatically extracts data from several sources, transforms it, and loads it into a central database.
ETL is intended as an automated, three-phase pipeline run on recurring schedules, which option B illustrates. Option A represents the manual-run footgun the card warns against, while B omits the required transformation phase and D describes a one-time task lacking recurring automation.
Question 29 of 30
For many computer vision tasks, what is the main benefit of converting a color image to grayscale?
Show the answer
Answer: d · It reduces the computational complexity by representing each pixel with a single brightness value, aiding tasks focused on shape or texture.
Grayscale conversion simplifies image data by reducing each pixel from three color values (RGB) to a single brightness value, making algorithms faster and easier to develop for tasks that rely on shape, texture, or contrast. Option C is incorrect because grayscale's primary purpose in computer vision is data simplification for machine processing, not enhancing visual clarity for human interpretation.
Read the full bite: Grayscale Conversion: Seeing in Shades of Gray
Question 30 of 30
Before the softmax function is applied, what does the Transformer's final linear layer directly output?
Show the answer
Answer: c · Raw, un-normalized scores (logits) for each word in the vocabulary.
The linear layer's specific function is to convert the decoder's abstract vector into raw, un-normalized scores (logits) for every word. The softmax function then takes these logits and transforms them into a probability distribution, not the linear layer itself.
Read the full bite: Transformer: The Final Linear and Softmax Layers
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.