First 50 of 200 questions. Each one lists the choices, the correct answer, and an explanation. The checker at the top of this page saves progress in this browser when it is available.
Continue in the practice tool above to load more questions, 50 at a time.
Question 1AI Fundamentals and Terminology
Which term describes a machine learning system that learns patterns from labeled training data?
- Supervised learning Correct answer.
- Unsupervised learning
- Generative modeling
- Reinforcement learning
Explanation
Supervised learning uses input-output pairs where the target label is known during training, so the model learns a mapping from features to labels. The other paradigms do not rely on labeled examples in the same way.
Question 2AI Fundamentals and Terminology
In machine learning, what is a 'feature'?
- The final predicted output of a model
- The hardware used to train the model
- The loss value computed after training
- A measurable input variable used to make predictions Correct answer.
Explanation
Features are the individual measurable properties or attributes of the data that a model uses as inputs. The target is what is predicted, and loss measures error.
Question 3AI Fundamentals and Terminology
What does the term 'inference' refer to in an AI system?
- Collecting and cleaning raw data
- Splitting data into training and test sets
- Using a trained model to produce outputs on new inputs Correct answer.
- Adjusting weights during backpropagation
Explanation
Inference is the deployment-time phase where a trained model computes predictions or generations for new inputs. Training, by contrast, updates model parameters.
Question 4AI Fundamentals and Terminology
Which statement best defines artificial general intelligence (AGI)?
- A system tuned to excel at one narrowly defined task
- A system that matches or exceeds humans across a broad range of cognitive tasks Correct answer.
- A system that only generates human-like text
- A system that stores a large curated knowledge base
Explanation
AGI denotes broad, general-purpose competence spanning many cognitive domains rather than specialization. Narrow AI, by contrast, is designed for a specific task.
Question 5AI Fundamentals and Terminology
What is the primary purpose of a validation set during model development?
- To generate additional labeled training examples
- To provide the final unbiased estimate of performance
- To store the model weights after training
- To tune hyperparameters and compare model variants Correct answer.
Explanation
The validation set is used for model selection and hyperparameter tuning, guiding decisions during development. The test set is reserved for the final unbiased estimate.
Question 6AI Fundamentals and Terminology
Which of these is a classic example of an unsupervised learning task?
- Estimating a person's age from a photo with labeled ages
- Clustering customers by purchasing behavior Correct answer.
- Classifying emails as spam or not spam
- Predicting house prices from labeled sales
Explanation
Clustering groups unlabeled data points by similarity, which is the hallmark of unsupervised learning. The other tasks rely on known target labels.
Question 7AI Fundamentals and Terminology
What is a 'token' in the context of large language models?
- A single neural network layer
- A unit of currency used to pay for hardware
- A unit of text, such as a word piece or character sequence, processed by the model Correct answer.
- A type of activation function
Explanation
Language models operate on tokens, which are subword or word-level chunks produced by a tokenizer. The model maps sequences of tokens to probabilities over the next token.
Question 8AI Fundamentals and Terminology
Which term describes an AI model trained on a specific, narrowly scoped task such as recognizing handwritten digits?
- Narrow AI Correct answer.
- Strong AI
- General AI
- Artificial consciousness
Explanation
Narrow AI is designed and trained for a limited task domain. General or strong AI would imply broad, human-like competence across many tasks.
Question 9AI Fundamentals and Terminology
A team wants to detect fraudulent transactions but has labels only for a small fraction of past transactions. Which learning setting best matches this situation?
- Supervised learning with no labels
- Reinforcement learning
- Semi-supervised learning Correct answer.
- Unsupervised clustering only
Explanation
Semi-supervised learning combines a small labeled set with a larger unlabeled set, which matches a scenario with sparse labels. Pure supervised learning would require labels for all examples.
Question 10AI Fundamentals and Terminology
What does 'overfitting' mean for a machine learning model?
- The model has too few parameters to learn the task
- The model performs poorly on both training and test data
- The model fits training data well but generalizes poorly to new data Correct answer.
- The model requires too much memory to deploy
Explanation
Overfitting occurs when a model captures noise or idiosyncrasies of the training set, producing low training error but high error on unseen data. Underfitting is the opposite pattern.
Question 11AI Fundamentals and Terminology
Which description best captures a 'foundation model'?
- A model that has been fully fine-tuned and cannot be reused
- A large model pretrained on broad data that can be adapted to many downstream tasks Correct answer.
- A small model trained only on a single company's spreadsheet data
- A rule-based system with hand-written decision logic
Explanation
Foundation models are pretrained at scale on broad data and then adapted via prompting or fine-tuning to many tasks. Their defining property is broad pretraining plus adaptability.
Question 12AI Fundamentals and Terminology
In reinforcement learning, what is the role of the 'reward signal'?
- It labels each training example with a class
- It initializes the neural network weights
- It stores the environment's transition probabilities
- It defines the objective the agent learns to maximize Correct answer.
Explanation
The reward signal provides scalar feedback that specifies what the agent should try to maximize over time. The agent adjusts its policy to increase cumulative reward.
Question 13AI Fundamentals and Terminology
A model achieves 99% accuracy on its training set but only 62% on a held-out test set. What is the most likely diagnosis?
- Overfitting to the training data Correct answer.
- A data leakage-free but biased test set
- Underfitting to the training data
- Insufficient model capacity
Explanation
A large gap between high training accuracy and low test accuracy is the classic signature of overfitting. The model has memorized training-specific patterns that do not transfer.
Question 14AI Fundamentals and Terminology
What is 'prompt engineering'?
- Designing input text to steer a model toward desired outputs Correct answer.
- Compiling model weights into a binary format
- Building the physical hardware for model training
- Auditing datasets for labeling errors
Explanation
Prompt engineering is the practice of crafting and iterating on input instructions and examples to elicit better model behavior. It operates at the input level rather than changing the model architecture.
Question 15AI Fundamentals and Terminology
Which statement distinguishes parametric knowledge from retrieval-based knowledge in an AI system?
- Parametric knowledge is fetched from a database, while retrieval is stored in weights
- Both terms describe the same mechanism with different names
- Parametric knowledge refers only to image data, while retrieval refers only to text
- Parametric knowledge is stored in model weights, while retrieval fetches external documents at query time Correct answer.
Explanation
Parametric knowledge is baked into the model's parameters during training, whereas retrieval augments generation by looking up external sources at inference time. This distinction underpins retrieval-augmented generation.
Question 16AI Fundamentals and Terminology
What does 'hallucination' mean for a generative AI model?
- Running inference more slowly than expected
- Generating output in the wrong language
- Failing to produce any output at all
- Producing fluent output that is factually incorrect or unsupported Correct answer.
Explanation
Hallucination refers to confident, fluent generation of content that is not grounded in fact or source material. It is a correctness problem rather than a formatting or latency problem.
Question 17AI Fundamentals and Terminology
A model is described as 'multimodal'. What does this mean?
- It can process or generate more than one data type, such as text and images Correct answer.
- It was trained by multiple organizations
- It has multiple hidden layers in its network
- It can run on multiple hardware vendors
Explanation
Modality refers to the type of data, such as text, image, or audio. A multimodal model handles more than one such type.
Question 18AI Fundamentals and Terminology
Which statement best describes 'fine-tuning'?
- Removing all biases from a dataset
- Training a model from scratch on random initialization
- Compressing a model for faster inference
- Further training a pretrained model on task-specific data to adapt its behavior Correct answer.
Explanation
Fine-tuning starts from pretrained weights and continues training on a smaller, targeted dataset so the model adapts to a specific task or style. It is distinct from training from scratch.
Question 19AI Fundamentals and Terminology
In the standard machine learning workflow, what is the main purpose of the training set?
- To report final production performance
- To validate that the pipeline runs without errors
- To update model parameters so the model learns patterns Correct answer.
- To choose between competing model families
Explanation
The training set drives parameter updates through an optimization procedure. Model selection uses validation data and final reporting uses test data.
Question 20AI Fundamentals and Terminology
What is 'data leakage' in machine learning?
- Loss of data during storage migration
- Information from the test set influencing training, inflating measured performance Correct answer.
- Unauthorized access to a model's weights
- Using too many features in a model
Explanation
Data leakage occurs when information that should be unavailable at prediction time contaminates training, producing overly optimistic evaluation results. Careful splitting and feature construction prevent it.
Question 21AI Fundamentals and Terminology
A team builds a system that summarizes support tickets. Which capability category does this primarily represent?
- Natural language processing Correct answer.
- Robotic control
- Speech synthesis
- Computer vision
Explanation
Summarizing text is a natural language processing task because it involves understanding and generating human language. Vision, speech synthesis, and robotics concern other modalities.
Question 22AI Fundamentals and Terminology
Which statement best captures the difference between a 'model' and an 'algorithm' in machine learning?
- An algorithm is a learning procedure, while a model is the fitted artifact produced by that procedure Correct answer.
- The two terms are interchangeable in all contexts
- A model is a learning procedure, while an algorithm is the fitted artifact
- An algorithm is always a neural network, while a model is always a decision tree
Explanation
An algorithm specifies how learning proceeds, such as gradient descent on a defined objective. The model is the resulting artifact with learned parameters that can be used for inference.
Question 23AI Fundamentals and Terminology
Why is accuracy often a misleading metric for a highly imbalanced binary classification problem?
- Accuracy cannot be computed for binary problems
- A model predicting the majority class always can score high accuracy while missing the minority class Correct answer.
- Accuracy requires labels that are never available in practice
- Accuracy always underestimates the majority class
Explanation
With severe class imbalance, predicting the majority class for every example yields high accuracy yet zero recall on the minority class. Metrics such as precision, recall, or F1 better reflect performance on the minority.
Question 24AI Fundamentals and Terminology
An AI assistant must answer questions about a company's internal policy documents that change weekly. Which architecture best addresses freshness and grounding?
- A rule-based keyword matcher with fixed responses
- A model fine-tuned once on last year's policies
- A larger context window with no external sources
- Retrieval-augmented generation over an updated document index Correct answer.
Explanation
RAG retrieves current documents at query time, so answers stay grounded in the latest content without retraining. Fine-tuning on stale data would not reflect weekly changes.
Question 25AI Fundamentals and Terminology
Which scenario best illustrates the 'alignment' problem in AI?
- A model is deployed on hardware it was not benchmarked on
- A model is trained on a dataset that is too small to converge
- A model optimizes a measurable proxy objective in ways that diverge from the designers' true intent Correct answer.
- A model's inference latency exceeds the service-level target
Explanation
Alignment concerns ensuring that a system's optimized objective matches human intent; optimizing a proxy can produce unintended behavior. Convergence, latency, and hardware issues are engineering concerns rather than alignment.
Question 26AI Fundamentals and Terminology
Which term describes the process of dividing a dataset into subsets for training, validation, and testing?
- Feature engineering
- Data augmentation
- Data splitting Correct answer.
- Model selection
Explanation
Data splitting is the practice of partitioning available data into separate subsets so that model training and evaluation use different data points. This helps estimate how well a model generalizes to unseen data.
Question 27AI Fundamentals and Terminology
A data scientist trains a model on a dataset where 95% of examples belong to class A. The model predicts class A for every input and achieves 95% accuracy. Which action would best address this issue?
- Increase the size of the test set
- Collect more features for each example
- Use precision, recall, or F1 score instead of accuracy Correct answer.
- Switch to a more complex model architecture
Explanation
With severe class imbalance, accuracy can be misleading because a trivial majority-class predictor scores high. Metrics like precision, recall, or F1 focus on the minority class and reveal whether the model actually detects it.
Question 28AI Fundamentals and Terminology
A team wants to reduce the dimensionality of a large dataset while preserving as much variance as possible. Which technique is most appropriate?
- One-hot encoding
- Random forest
- Principal Component Analysis (PCA) Correct answer.
- Gradient descent
Explanation
PCA is a dimensionality-reduction method that projects data onto a lower-dimensional space defined by principal components, which capture the directions of maximum variance. It is specifically designed to preserve variance while reducing the number of features.
Question 29AI Fundamentals and Terminology
In a neural network, what is the role of an activation function?
- To update the weights during backpropagation
- To compute the loss between predictions and labels
- To introduce non-linearity into the network's computations Correct answer.
- To normalize the input features before training
Explanation
Activation functions are applied to the output of each neuron to introduce non-linear transformations, enabling the network to learn complex patterns. Without non-linear activation, a multi-layer network would collapse to an equivalent linear model.
Question 30AI Fundamentals and Terminology
In supervised learning, what does the term 'label' refer to?
- The learning rate used during optimization
- The number of layers in a neural network
- The raw input features fed into the model
- The target output associated with a training example Correct answer.
Explanation
A label is the ground-truth target that a supervised model is trained to predict for a given input example. Inputs are the features, while labels supply the supervision signal that defines the learning objective.
Question 31Machine Learning Concepts and Model Lifecycle
A model scores 0.98 on the training set but only 0.62 on a held-out test set. Which term best describes this pattern?
- Overfitting Correct answer.
- Data leakage
- Class imbalance
- Underfitting
Explanation
A large gap between strong training performance and weak held-out performance indicates the model has memorized training-specific noise rather than generalizable structure. Underfitting would show poor performance on both sets.
Question 32Machine Learning Concepts and Model Lifecycle
Which split is used to tune hyperparameters while keeping a final unbiased estimate of performance?
- Training set
- Test set
- Validation set Correct answer.
- Production sample
Explanation
Hyperparameters are selected using a validation set, which is separate from training data. The test set is held out until the end to provide an unbiased final estimate.
Question 33Machine Learning Concepts and Model Lifecycle
In k-fold cross-validation, what does the value k represent?
- The number of hyperparameters tuned
- The number of features retained
- The number of partitions the data is divided into Correct answer.
- The number of boosting rounds
Explanation
Cross-validation partitions the dataset into k folds; each fold serves once as validation while the others train the model. Performance is averaged across the k runs.
Question 34Machine Learning Concepts and Model Lifecycle
A team wants to reduce variance in their performance estimate without collecting more data. Which technique directly addresses this?
- Removing the validation set
- Training longer on the full dataset
- Cross-validation with averaged scores Correct answer.
- Increasing the learning rate
Explanation
Averaging results over multiple folds reduces the variance of the estimated performance compared with a single train-validation split. It reuses the same data more efficiently.
Question 35Machine Learning Concepts and Model Lifecycle
Which metric is most appropriate for a highly imbalanced binary classification problem where missing a positive case is costly?
- Accuracy
- Recall Correct answer.
- R-squared
- Mean squared error
Explanation
Recall measures the fraction of actual positives that are correctly identified, so it directly reflects the cost of missed positives. Accuracy can look high while ignoring minority-class failures.
Question 36Machine Learning Concepts and Model Lifecycle
What is the primary purpose of a baseline model in the ML lifecycle?
- To replace the need for a test set
- To eliminate feature engineering
- To serve as the final deployed model
- To provide a reference performance level for comparing new models Correct answer.
Explanation
A baseline, such as a majority-class or simple heuristic predictor, establishes a minimum performance bar. Newer models are judged against it to confirm they add value.
Question 37Machine Learning Concepts and Model Lifecycle
Which activity belongs to feature engineering rather than model training?
- Encoding categorical variables as numeric vectors Correct answer.
- Updating weights via backpropagation
- Selecting the number of epochs
- Minimizing a loss function with gradient descent
Explanation
Feature engineering transforms raw inputs into representations the model can use, such as encoding categories. Loss minimization, weight updates, and epoch selection are training procedures.
Question 38Machine Learning Concepts and Model Lifecycle
A model's performance degrades sharply months after deployment as user behavior shifts. What is this phenomenon called?
- Data drift Correct answer.
- Underfitting
- Regularization
- Overfitting
Explanation
Data drift occurs when the distribution of input data changes over time relative to what the model learned from. This degrades performance even if the model itself is unchanged.
Question 39Machine Learning Concepts and Model Lifecycle
Which practice most directly prevents information from the test set leaking into model development?
- Reporting test accuracy after every experiment
- Fitting preprocessing statistics only on training data Correct answer.
- Tuning hyperparameters on the test set
- Reusing the test set for feature selection
Explanation
Preprocessing such as scaling or imputation must be fit on training data only, then applied to validation and test data. Otherwise test information contaminates the training pipeline.
Question 40Machine Learning Concepts and Model Lifecycle
What does L2 regularization add to the training objective?
- A penalty proportional to the absolute value of the weights
- Random noise injected into the inputs
- A hard constraint that weights equal zero
- A penalty proportional to the squared magnitude of the weights Correct answer.
Explanation
L2 regularization adds the sum of squared weights, scaled by a coefficient, to the loss. This shrinks weights toward zero and reduces overfitting.
Question 41Machine Learning Concepts and Model Lifecycle
A dataset has 1,000 rows and a model uses 300 features. Which concern is most relevant?
- Inability to compute a loss function
- Loss of the ability to split the data
- Guaranteed underfitting from too few features
- Risk of overfitting due to high dimensionality relative to sample size Correct answer.
Explanation
When the number of features is large relative to the number of samples, models can fit noise easily. Regularization, feature selection, or more data help mitigate this.
Question 42Machine Learning Concepts and Model Lifecycle
Which step should occur first when building a supervised learning pipeline?
- Pruning the neural network
- Tuning the learning rate
- Deploying the model
- Defining the prediction target and success metric Correct answer.
Explanation
Clarifying the target variable and the metric that defines success guides all later choices, including data collection, model selection, and evaluation. Tuning and deployment come later.
Question 43Machine Learning Concepts and Model Lifecycle
A confusion matrix shows 40 true positives, 10 false negatives, 5 false positives, and 45 true negatives. What is the recall?
- 0.89
- 0.90
- 0.40
- 0.80 Correct answer.
Explanation
Recall equals true positives divided by the sum of true positives and false negatives: 40 / (40 + 10) = 0.80. It measures coverage of actual positives.
Question 44Machine Learning Concepts and Model Lifecycle
Why is stratified sampling often used when creating train-test splits for classification?
- To remove outliers automatically
- To increase the learning rate
- To reduce the number of features
- To preserve the class proportions in each split Correct answer.
Explanation
Stratification keeps the class distribution consistent across splits, which matters most for rare classes. This yields more reliable and comparable evaluation results.
Question 45Machine Learning Concepts and Model Lifecycle
Which statement best describes the bias-variance tradeoff?
- Increasing model complexity typically lowers bias but raises variance Correct answer.
- Variance is caused only by insufficient training data
- Bias and variance are unrelated to model capacity
- Increasing model complexity lowers both bias and variance indefinitely
Explanation
More flexible models can fit training data more closely, reducing bias, but they become more sensitive to sampling noise, raising variance. The goal is to balance the two.
Question 46Machine Learning Concepts and Model Lifecycle
What is the role of a learning curve that plots training and validation error against training set size?
- To diagnose whether more data would likely improve performance Correct answer.
- To compute the final test accuracy directly
- To select the optimizer automatically
- To guarantee the model will not overfit
Explanation
If validation error is still decreasing as training size grows and remains well above training error, additional data may help. A plateau suggests other remedies are needed.
Question 47Machine Learning Concepts and Model Lifecycle
A model is retrained monthly, but a feature's upstream source changes units without notice. What is the most likely consequence?
- Automatic regularization of the model
- Improved generalization from new units
- Reduced need for monitoring
- Training-serving skew causing degraded predictions Correct answer.
Explanation
When the data seen at serving time differs in form from training data, the model receives inputs outside its learned distribution. This is training-serving skew and typically harms predictions.
Question 48Machine Learning Concepts and Model Lifecycle
Which is the best reason to version both datasets and model artifacts in the ML lifecycle?
- To reduce storage costs
- To reproduce and audit any past model result Correct answer.
- To eliminate the need for testing
- To increase training speed
Explanation
Versioning data and models lets teams recreate the exact conditions behind a past result, supporting debugging, audits, and rollback. Reproducibility is the core benefit.
Question 49Machine Learning Concepts and Model Lifecycle
A team evaluates a model on data collected after the training period. What does this assess?
- Hyperparameter sensitivity
- Feature importance
- Training loss convergence
- Out-of-time generalization Correct answer.
Explanation
Evaluating on data from a later time period tests whether the model generalizes forward in time, which is often the realistic deployment condition. It captures temporal robustness.
Question 50Machine Learning Concepts and Model Lifecycle
Which scenario most clearly indicates underfitting?
- Validation error decreases steadily with more data
- Training error equals zero
- Training error is low while validation error is high
- Both training and validation error are high and similar Correct answer.
Explanation
Underfitting occurs when the model is too simple to capture the underlying pattern, so it performs poorly on both training and validation data. The two errors being high and close together is the hallmark.