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 1Essential AI Knowledge
In supervised learning, what must the training data provide for each example?
- A reward signal from an environment
- Input features paired with target labels Correct answer.
- A simulator that generates episodes
- Input features without any labels
Explanation
Supervised learning fits a mapping from inputs to known targets, so every training example needs both features and a label. Unlabeled data is used in unsupervised or self-supervised settings, not standard supervised training.
Question 2Essential AI Knowledge
Why are GPUs well suited to deep learning workloads?
- They execute thousands of arithmetic operations in parallel. Correct answer.
- They run a single instruction stream faster than any CPU core.
- They store the entire dataset in on-chip memory.
- They replace the need for floating-point arithmetic.
Explanation
Neural network math is dominated by large matrix and tensor operations that expose massive parallelism. GPUs contain many simple cores designed to execute those independent operations concurrently.
Question 3Essential AI Knowledge
What distinguishes inference from training?
- Inference requires labeled data to compute gradients.
- Inference runs forward passes with frozen weights. Correct answer.
- Inference updates weights using backpropagation.
- Inference always runs on CPUs rather than GPUs.
Explanation
Training adjusts parameters by computing gradients and applying an optimizer. Inference uses the learned weights unchanged and only performs forward computation to produce predictions.
Question 4Essential AI Knowledge
In model training, one epoch is defined as which of the following?
- One evaluation run on the validation set
- One forward and backward pass on a single sample
- One update of the model weights
- One full pass over the training dataset Correct answer.
Explanation
An epoch counts a complete traversal of the training set, regardless of how many parameter updates occur within it. The number of updates per epoch depends on batch size.
Question 5Essential AI Knowledge
Overfitting is best described as which condition?
- Low training error but poor performance on new data Correct answer.
- Training error that falls slower than validation error
- A model too small to fit the training set
- High training error and equally high validation error
Explanation
Overfitting occurs when a model captures noise specific to the training set, so training loss stays low while generalization suffers. The gap between training and held-out performance is the key signal.
Question 6Essential AI Knowledge
Activation functions give a neural network which essential property?
- Nonlinearity Correct answer.
- Zero gradients
- Deterministic outputs
- Weight symmetry
Explanation
Stacked linear layers collapse mathematically into a single linear transform. Nonlinear activations between layers let the network represent curved decision boundaries and complex functions.
Question 7Essential AI Knowledge
NVIDIA Tensor Cores are specialized hardware for which operation?
- Host-to-device memory copy operations
- Scalar integer division with rounding
- Disk I/O request scheduling
- Mixed-precision matrix multiply Correct answer.
Explanation
Tensor Cores perform matrix multiply-accumulate operations, often mixing lower-precision inputs with higher-precision accumulation. This makes them central to accelerating deep learning training and inference.
Question 8Essential AI Knowledge
A validation set is used during model development to do what?
- Store the labels that will be used at inference time
- Provide additional gradient updates during training
- Tune hyperparameters and select models Correct answer.
- Measure final performance after all tuning is complete
Explanation
The validation set provides unbiased feedback for choices such as learning rate, architecture, and early stopping. The test set is reserved for the final estimate after those choices are frozen.
Question 9Essential AI Knowledge
A team raises the minibatch size from 32 to 256 while keeping other settings fixed. What typically happens to the gradient estimate?
- Gradients become more noisy across steps
- Gradients become less noisy across steps Correct answer.
- Backpropagation is no longer required
- The loss surface becomes convex
Explanation
A minibatch gradient averages the per-sample gradients, so larger batches reduce variance in the estimate. This often permits a larger learning rate and better hardware utilization.
Question 10Essential AI Knowledge
During training, the loss oscillates and then diverges within a few steps. Which cause is most likely?
- Learning rate set too high Correct answer.
- Batch size set to one
- Too many epochs planned
- Learning rate set too low
Explanation
An excessively large learning rate makes each update overshoot the minimum, producing oscillation or divergence. Reducing the learning rate or adding warmup usually stabilizes training.
Question 11Essential AI Knowledge
What does dropout do during the training phase?
- Quantizes all activations to 8-bit integers
- Randomly zeroes activations each step Correct answer.
- Skips whole layers on alternating steps
- Permanently prunes the smallest weight values
Explanation
Dropout randomly deactivates a fraction of units on each training step, which prevents units from relying on specific neighbors. At inference, dropout is disabled and outputs are scaled appropriately.
Question 12Essential AI Knowledge
Why do convolutional layers use far fewer parameters than fully connected layers on image inputs?
- They process one image at a time.
- Filters share weights across spatial positions. Correct answer.
- They discard most of the input pixels.
- They use lower-precision arithmetic.
Explanation
A convolution reuses the same small filter at every spatial location, so it learns local patterns with a small parameter set. A fully connected layer instead needs a separate weight for every input-output pair.
Question 13Essential AI Knowledge
In a transformer, self-attention builds each token representation from what?
- A weighted mix of all tokens in the sequence Correct answer.
- Only the immediately preceding token
- The final hidden state of the encoder
- A fixed window of eight neighboring tokens
Explanation
Self-attention computes attention weights between every pair of tokens, so each position aggregates information from the whole sequence. This is what allows long-range dependencies to be modeled directly.
Question 14Essential AI Knowledge
Converting an FP32 model to INT8 for inference mainly delivers which benefit?
- Guaranteed accuracy improvement on all inputs
- Lower memory use and higher throughput Correct answer.
- Faster training convergence from scratch
- Higher numerical precision for each weight
Explanation
INT8 representations are one quarter the size of FP32, reducing memory footprint and enabling faster integer math on supported hardware. Accuracy is usually preserved closely but must be validated.
Question 15Essential AI Knowledge
Fine-tuning a pretrained model is most appropriate when which condition holds?
- No pretrained checkpoints exist
- The target dataset is huge and unrelated
- Random initialization is required
- The target dataset is small but related Correct answer.
Explanation
Pretrained features transfer well when the new task resembles the pretraining domain, and small datasets benefit most from that head start. Training from scratch is preferred when data is abundant and domains differ greatly.
Question 16Essential AI Knowledge
Random crops and flips during image training help primarily by doing what?
- Removing label noise from the annotations
- Speeding up every forward and backward pass
- Adding data diversity to reduce overfitting Correct answer.
- Making the effective dataset much smaller
Explanation
Augmentation creates plausible variations of each example, so the model sees a richer distribution without collecting new data. This regularizes the model and improves generalization.
Question 17Essential AI Knowledge
Mixed-precision training typically uses which numerical strategy?
- Rounds all gradients to integers
- Uses FP16 math with FP32 master weights Correct answer.
- Uses FP32 math and FP16 optimizer states
- Removes the loss scaling requirement
Explanation
Most matrix operations run in FP16 for speed while an FP32 copy of the weights preserves small updates. Loss scaling is used to keep gradients representable in the lower-precision range.
Question 18Essential AI Knowledge
A fraud detector reports 99.5% accuracy on data where only 0.5% of cases are fraud. Which metric best exposes performance on the fraud class?
- Overall accuracy
- Training loss
- Recall for the fraud class Correct answer.
- Throughput in samples per second
Explanation
With heavy class imbalance, predicting the majority class alone yields high accuracy. Recall, precision, or F1 for the positive class measures how well the minority fraud cases are actually detected.
Question 19Essential AI Knowledge
CUDA is best described as which of the following?
- A curated repository of pretrained model weights
- A parallel computing platform for NVIDIA GPUs Correct answer.
- An inference serving framework for model containers
- A dataset labeling and annotation tool
Explanation
CUDA provides a programming model and runtime for executing parallel code on NVIDIA GPUs. Higher-level libraries and frameworks are commonly built on top of it.
Question 20Essential AI Knowledge
NVIDIA TensorRT is used to accomplish which goal?
- Optimize trained models for fast inference Correct answer.
- Schedule multi-node training jobs
- Author neural network architectures from scratch
- Label raw training data automatically
Explanation
TensorRT applies optimizations such as layer fusion, precision calibration, and kernel selection to a trained model. The result is lower latency and higher throughput at deployment time.
Question 21Essential AI Knowledge
Gradient accumulation allows a model to do what?
- Increase the available GPU memory bandwidth
- Skip the backward pass entirely
- Avoid the need for a learning rate
- Simulate larger batches on limited memory Correct answer.
Explanation
Accumulation sums gradients over several small microbatches before applying one optimizer step. This approximates the effect of a larger batch when memory cannot hold it.
Question 22Essential AI Knowledge
A three-class classifier outputs softmax probabilities [0.7, 0.2, 0.1] and the true class is index 0. Using natural log, what is the cross-entropy loss?
- 1.10
- 2.30
- 0.36 Correct answer.
- 0.10
Explanation
Categorical cross-entropy is the negative log of the probability assigned to the true class. Here -ln(0.7) is approximately 0.357, which rounds to 0.36.
Question 23Essential AI Knowledge
Profiling shows a GPU kernel achieving far below peak FLOPs with very high memory traffic per arithmetic operation. How should this kernel be classified?
- Compute-bound
- Thermally throttled
- Latency-bound by launch overhead
- Memory-bandwidth-bound Correct answer.
Explanation
When arithmetic intensity is low, performance is limited by how fast data can be moved rather than by math throughput. Such kernels benefit from fusion, caching, or reduced data movement.
Question 24Essential AI Knowledge
In data-parallel training, what does an all-reduce operation accomplish?
- Sums gradients across devices Correct answer.
- Compresses activations before the forward pass
- Splits the model layers across devices
- Broadcasts the input batch to every device
Explanation
Each worker computes gradients on its own data shard, and all-reduce combines those gradients so every worker applies the same update. This keeps model replicas synchronized.
Question 25Essential AI Knowledge
Why do plain recurrent networks struggle to learn long-range dependencies?
- Gradients shrink or explode through many time steps Correct answer.
- They process entire sequences in parallel
- Recurrent weights cannot be updated by backpropagation
- They lack an embedding layer
Explanation
Backpropagation through time multiplies many Jacobians, so gradient magnitudes can decay toward zero or grow without bound. Gating mechanisms such as LSTM and GRU cells were designed to mitigate this.
Question 26Essential AI Knowledge
What is the primary role of an optimizer during neural network training?
- Store the training examples in GPU memory
- Convert the trained model into an inference engine
- Adjust model parameters to reduce the loss Correct answer.
- Measure final accuracy on a held-out test set
Explanation
An optimizer applies an update rule that uses gradients to change model parameters so the loss tends to decrease. It does not handle inference conversion, data storage, or final test measurement.
Question 27Essential AI Knowledge
In supervised learning, what is a label?
- The target output paired with an input example Correct answer.
- A numeric feature scaled to a fixed range
- A randomly initialized embedding vector
- The weight assigned to a single neuron
Explanation
A label is the supervision signal paired with an input; it defines the target the model is trained to predict. Features and weights are inputs and parameters, not targets.
Question 28Essential AI Knowledge
What does one epoch refer to in model training?
- One full pass over the training dataset Correct answer.
- One parameter update on a single example
- One forward pass through the network
- One evaluation pass over the test set
Explanation
An epoch counts one complete traversal of the training dataset, regardless of how many parameter updates occur within it. A single update is a step, and an evaluation pass is not an epoch.
Question 29Essential AI Knowledge
Which loss function is standard for multi-class classification with mutually exclusive classes?
- Hinge loss applied per class independently
- Binary cross-entropy applied once
- Categorical cross-entropy after softmax Correct answer.
- Mean squared error on raw logits
Explanation
Categorical cross-entropy compares a softmax probability distribution with a one-hot target and is the standard objective for mutually exclusive classes. Binary cross-entropy suits independent binary labels, and hinge losses are used for margin-based classifiers.
Question 30Essential AI Knowledge
What is inference in a machine learning workflow?
- Using a trained model to produce predictions Correct answer.
- Updating weights from a batch of gradients
- Splitting a dataset into training and test parts
- Searching hyperparameters with a validation set
Explanation
Inference is the forward-only use of a trained model to score new inputs. It does not modify weights or split data.
Question 31Essential AI Knowledge
What does the learning rate control during gradient-based training?
- The size of each parameter update step Correct answer.
- The fraction of data used for validation
- The number of examples in each class
- The number of layers in the model
Explanation
The learning rate scales the gradient step, so it controls how far parameters move per update. It does not set architecture, validation fraction, or class counts.
Question 32Essential AI Knowledge
What is an embedding vector in a machine learning model?
- A copy of all model weights saved at one checkpoint
- A histogram of pixel values in an image
- A dense learned representation of a discrete item Correct answer.
- A list of raw text tokens before any cleaning step
Explanation
An embedding maps discrete items such as words or IDs to dense vectors whose values are learned. It is not raw text, a pixel histogram, or a checkpoint.
Question 33Essential AI Knowledge
What does the bias term in a neuron allow it to do?
- Reduce the number of input features
- Prevent gradients from flowing backward
- Shift activation independent of inputs Correct answer.
- Normalize each input to zero mean
Explanation
The bias adds a constant offset before the nonlinearity, letting the neuron shift its activation even when inputs are zero. It does not change feature count, normalize inputs, or block gradients.
Question 34Essential AI Knowledge
Backpropagation computes which quantities for training?
- The memory required by each GPU kernel
- The optimal number of training epochs
- Final predictions on the validation dataset
- Gradients of the loss with respect to parameters Correct answer.
Explanation
Backpropagation applies the chain rule through the computational graph to obtain gradients of the loss with respect to each parameter. Those gradients are then used by an optimizer.
Question 35Essential AI Knowledge
What is the main effect of L2 weight regularization?
- It increases the learning rate over time
- It removes a random fraction of neurons
- It penalizes large weights and shrinks them Correct answer.
- It duplicates examples from the minority class
Explanation
L2 regularization adds a penalty proportional to the squared magnitude of weights, which discourages very large values. It does not drop neurons, change learning rate, or resample data.
Question 36Essential AI Knowledge
During inference, batch normalization typically uses which statistics?
- Statistics computed from the current batch only
- Statistics recomputed from the test labels
- Running estimates accumulated during training Correct answer.
- Random values drawn from a normal distribution
Explanation
At inference batch normalization uses running mean and variance estimated during training so outputs do not depend on the current batch. Using batch statistics at inference makes predictions vary with batch composition.
Question 37Essential AI Knowledge
Adam is an optimizer that combines which two ideas?
- Dropout regularization combined with early stopping
- Weight pruning followed by post-training quantization
- Momentum and adaptive per-parameter scaling Correct answer.
- Grid search over hyperparameters and random restarts
Explanation
Adam maintains momentum-like first moments and adaptive second moments that scale updates per parameter. It does not perform hyperparameter search, compression, or regularization.
Question 38Essential AI Knowledge
Early stopping ends training when which condition is met?
- Validation loss stops improving for several epochs Correct answer.
- Training accuracy reaches exactly one hundred percent
- The learning rate scheduler reaches its final step
- GPU memory usage rises above a configured threshold
Explanation
Early stopping tracks a validation metric and halts when it has not improved for a patience window. Training accuracy reaching 100% is not the criterion, and memory or scheduler thresholds are unrelated.
Question 39Essential AI Knowledge
In a binary classifier, lowering the decision threshold typically has what effect?
- Recall increases and precision decreases Correct answer.
- Both precision and recall increase
- Both precision and recall stay unchanged
- Recall decreases and precision increases
Explanation
Lowering the threshold classifies more examples as positive, which usually raises recall but also raises false positives and lowers precision. The two metrics generally move in opposite directions at a fixed model score distribution.
Question 40Essential AI Knowledge
For a categorical feature with thousands of unique values, what does an embedding layer provide?
- A sorted list of the most frequent categories
- A one-hot vector with thousands of dimensions
- A hash table mapping values to raw strings
- A dense low-dimensional learnable representation Correct answer.
Explanation
An embedding layer learns a dense vector per category, giving a compact representation with shared statistical strength. One-hot encoding would be very high-dimensional, and frequency lists or string tables are not learned representations.
Question 41Essential AI Knowledge
Which output activation is appropriate for multi-label classification where labels are independent?
- ReLU applied to the final logits
- Sigmoid applied independently per output Correct answer.
- Linear activation with no squashing
- Softmax applied across all output units
Explanation
Multi-label targets are independent, so each output needs its own binary probability from a sigmoid. Softmax would force the outputs to compete and sum to one.
Question 42Essential AI Knowledge
In a binary confusion matrix, what is a false positive?
- An example predicted positive that is actually negative Correct answer.
- An example predicted negative that is actually positive
- An example correctly predicted as negative
- An example correctly predicted as positive
Explanation
A false positive is a negative example incorrectly flagged as positive. The reverse error is a false negative, and correct predictions are true positives or true negatives.
Question 43Essential AI Knowledge
Which practice introduces data leakage into a model evaluation?
- Fitting a scaler on all data before splitting Correct answer.
- Evaluating once on a held-out test set
- Splitting data before any preprocessing is fit
- Using a separate validation set for tuning
Explanation
Leakage occurs when information from the evaluation data influences preprocessing or training. Fitting a scaler on all data before splitting lets test statistics leak into training.
Question 44Essential AI Knowledge
In transfer learning by feature extraction, what is typically done?
- Increase the input resolution and retrain from scratch
- Retrain all pretrained layers from random weights
- Freeze pretrained weights and train a new output head Correct answer.
- Delete the pretrained backbone and train a new one
Explanation
Feature extraction keeps the pretrained backbone frozen and trains a new classifier on its features. Retraining all layers or replacing the backbone is closer to full fine-tuning or training from scratch.
Question 45Essential AI Knowledge
A model shows high training accuracy but much lower test accuracy. What does this indicate?
- The test set is larger than the training set
- The model is overfitting the training data Correct answer.
- The learning rate was set too low
- The model is underfitting the training data
Explanation
A large gap between training and test performance is the classic sign of overfitting, where the model memorizes training-specific patterns. Underfitting would show poor training performance as well.
Question 46Essential AI Knowledge
Residual connections primarily help deep networks by doing what?
- Removing the need for any activation functions
- Reducing the number of parameters in each layer
- Providing a shortcut path for gradient flow Correct answer.
- Guaranteeing that the loss is convex
Explanation
Residual connections add identity shortcuts so gradients can flow directly across layers, easing optimization of very deep networks. They do not reduce parameter count or remove activations.
Question 47Essential AI Knowledge
When training on imbalanced data, what does assigning higher class weights to the rare class do?
- Guarantees balanced precision and recall
- Raises the loss weight on rare examples Correct answer.
- Makes the model ignore the majority class
- Removes rare examples from the loss
Explanation
Class weights multiply the loss for each class, so rare examples contribute more and the model pays more attention to them. They do not delete examples or guarantee a particular precision-recall balance.
Question 48Essential AI Knowledge
What does increasing the temperature of a softmax distribution do?
- It makes the distribution more peaked
- It forces every probability to be exactly identical
- It flattens the distribution toward uniform Correct answer.
- It changes the number of output classes
Explanation
Higher softmax temperature divides logits by a larger number, producing a flatter distribution closer to uniform. Lower temperature sharpens the distribution; temperature does not change class count.
Question 49Essential AI Knowledge
Why is layer normalization often preferred over batch normalization in transformers?
- It removes the need for residual connections
- It always increases model accuracy on test data
- It normalizes per example, not per batch Correct answer.
- It requires larger batches to estimate statistics
Explanation
Layer normalization computes statistics across features within each example, so it works with small or variable batch sizes common in transformer training. Batch normalization relies on batch statistics and can be unstable when batches are small.
Question 50Essential AI Knowledge
What problem does gradient clipping address during training?
- Vanishing gradients that shrink to exactly zero
- Slow data loading from disk to GPU
- Exploding gradients with very large updates Correct answer.
- Overfitting caused by too many parameters
Explanation
Gradient clipping rescales gradients whose norm exceeds a threshold, limiting the damage from exploding gradients. It does not restore vanished gradients, reduce parameter count, or speed data loading.