You have been given a dataset with missing values. What is the first step you should take with the data?
Analyze the patterns and distribution of missing values.
Remove the rows with missing values.
Fill in the missing values with a default value.
Remove the columns with missing values.
Before deciding *how* to handle missing data, best practice requires understanding *why* it's missing — analyzing whether missingness is Missing Completely at Random (MCAR, no systematic pattern), Missing at Random (MAR, related to other observed variables but not the missing value itself), or Missing Not at Random (MNAR, related to the missing value itself, e.g., patients with severe symptoms being less likely to complete a survey field). This diagnostic step determines which downstream handling strategy is statistically appropriate: naive row deletion under MNAR conditions can introduce systematic bias into the remaining dataset, while mean/median imputation applied blindly can distort variance and correlational structure if missingness isn't actually random.
Options B, C, and D each jump directly to a specific remedial action without first establishing whether that action is appropriate for the missingness pattern present. Removing rows (B) sacrifices sample size and can bias results if missingness correlates with the outcome of interest. Filling with a default value (C) without understanding the pattern risks introducing artificial structure that doesn't reflect the true underlying data. Removing entire columns (D) may discard genuinely informative features if missingness in that column is low or non-systematic.
Only after this initial pattern analysis should you select an appropriate strategy: listwise deletion, mean/median/mode imputation, model-based imputation (e.g., MICE, k-NN imputation), or explicit missingness indicators as additional features.
In experimentation, how does data augmentation contribute to improving model accuracy?
It helps in increasing the size of the dataset, leading to better generalization of the model.
It reduces the complexity of the model, making it easier to train and evaluate.
It has no impact on model accuracy and is primarily used for data visualization purposes.
It improves the interpretability of the model by providing additional insights into the data.
Data augmentation applies label-preserving transformations to existing training examples — rotation, flipping, cropping, color jitter, and noise injection for images; back-translation, synonym substitution, and random masking for text; time-stretching, pitch-shifting, and noise addition for audio — to synthetically expand the effective size and diversity of a training dataset without collecting new labeled data. This exposes the model to a wider range of input variations it may encounter at inference time, reducing overfitting to the specific characteristics of the original, smaller dataset and improving generalization to unseen data. This is particularly valuable in domains where labeled data is expensive or scarce to collect, including many multimodal settings.
Options B, C, and D each misattribute augmentation's mechanism or effect: augmentation does not reduce model complexity (B) — it operates entirely on the data, leaving model architecture and parameter count unchanged, and can in some cases make optimization more demanding due to increased input variability. It is not merely a visualization tool with no accuracy impact (C) — this directly contradicts augmentation's well-established, empirically demonstrated role as a regularization technique. And while augmented data can occasionally surface edge cases during error analysis, augmentation's primary purpose is not interpretability (D) — techniques like SHAP, LIME, or attention visualization address interpretability directly, a separate concern from dataset expansion.
In large-language models, what is the purpose of the attention mechanism?
To measure the importance of the words in the output sequence.
To assign weights to each word in the input sequence.
To determine the order in which words are generated.
To capture the order of the words in the input sequence.
The attention mechanism computes a set of weights over the tokens in the input (or context) sequence for each step of processing, reflecting how relevant each input token is to the computation currently being performed — for instance, how relevant each word in a source sentence is to correctly translating a given target word, or how relevant each prior token is to predicting the next one in an autoregressive model. Mechanically, this is computed via query, key, and value projections: a query (representing the current focus) is compared against keys (representing each input token) to produce attention scores, which are normalized (typically via softmax) into weights and used to compute a weighted sum over the corresponding values — allowing the model to dynamically focus more on relevant tokens and less on irrelevant ones, rather than treating all input tokens with equal importance.
Option D describes positional encoding's role (covered directly in an earlier question in this set) — capturing token order — which is a distinct mechanism from attention; attention operates on token *content and relevance*, while positional encoding separately supplies *order* information as an input feature, since self-attention itself is permutation-invariant without it. Option A misdirects the weighting toward the output sequence specifically, when attention weights are computed primarily over the input/context tokens being attended to. Option C describes the decoding/generation procedure (autoregressive sampling), not attention's mechanism.
What is the correct order of steps in an ML project?
Data preprocessing, Data collection, Model training, Model evaluation
Data collection, Data preprocessing, Model training, Model evaluation
Model evaluation, Data preprocessing, Model training, Data collection
Model evaluation, Data collection, Data preprocessing, Model training
The standard ML project lifecycle proceeds: data collection first, since you need raw data before anything else can happen; data preprocessing next, to clean, transform, and prepare that raw data (handling missing values, normalization, encoding, splitting into train/validation/test sets) into a form a model can consume; model training next, where the algorithm learns patterns from the preprocessed training data; and model evaluation last, where the trained model's performance is measured on held-out data it did not see during training. Each stage depends on the output of the one before it — you cannot preprocess data you haven't collected, train on data that hasn't been cleaned and split, or evaluate a model that hasn't been trained — which is what makes B the only internally consistent ordering among the four options.
Options A, C, and D each place a downstream step before its prerequisite: A attempts preprocessing before collection (nothing to preprocess yet); C and D both place evaluation before training and, in D's case, before data even exists — evaluation requires a trained model to assess, so it cannot logically precede training or the data-collection/preprocessing steps that training itself depends on.
In practice this pipeline is iterative rather than strictly linear — evaluation results often send you back to preprocessing (feature engineering) or even data collection (targeted collection to address weak subgroups) — but the canonical forward sequence for a first pass remains collection → preprocessing → training → evaluation.
How does the batch size influence VRAM consumption during inference with ML models on GPUs?
The batch size has no impact on VRAM consumption during inference.
Increasing or decreasing the batch size has the same impact on VRAM consumption.
Increasing the batch size reduces VRAM consumption because more data can be processed in parallel.
Decreasing the batch size reduces VRAM consumption.
Batch size has a direct, proportional relationship with VRAM consumption during both training and inference: each sample in a batch requires its own memory allocation for input tensors, intermediate activations at every layer, and output tensors, all of which must reside in GPU memory simultaneously while the batch is being processed. Decreasing the batch size means fewer samples occupy memory concurrently, directly reducing peak VRAM consumption — this is precisely why reducing batch size is one of the first, most common remedies when a model run fails with an out-of-memory (OOM) error on a GPU with limited VRAM.
Option C states the inverse of the correct relationship and is a genuinely important misconception to correct: increasing batch size increases VRAM consumption, not decreases it — parallelism across the batch means more simultaneous memory occupancy, not less. It's true that larger batches improve GPU compute *utilization* and *throughput* (better amortizing fixed kernel-launch overhead and better exploiting parallel hardware) up to the point VRAM allows, but that throughput benefit is a separate effect from, and does not reduce, memory consumption. Options A and B both incorrectly claim batch size is memory-neutral, when it is in fact one of the most direct, easily controlled levers for managing VRAM usage — alongside model precision (quantization, mixed precision) and activation checkpointing, covered in the Performance Optimization domain elsewhere in this set.
Which metric is commonly used to evaluate machine-translation models?
F1 score
Accuracy
Mean Absolute Error (MAE)
BLEU score
BLEU (Bilingual Evaluation Understudy) is the standard automatic metric for evaluating machine translation quality. It measures n-gram precision — the overlap of contiguous word sequences (unigrams through typically 4-grams) between the model's translated output and one or more human reference translations — combined with a brevity penalty to discourage overly short translations that could otherwise achieve artificially high precision. BLEU scores range from 0 to 1 (or 0-100 as a percentage), with higher scores indicating closer alignment to reference translations.
The distractors represent metrics standard to other task families: F1 score (A) evaluates classification tasks by balancing precision and recall over discrete positive/negative predictions, ill-suited to open-ended text generation where there is no fixed set of "correct" tokens. Accuracy (B) similarly assumes a discrete correct/incorrect judgment, inappropriate for translation where multiple valid phrasings can convey the same meaning. Mean Absolute Error (C) is a regression metric measuring average magnitude of numeric prediction error, irrelevant to text output evaluation entirely.
It's worth noting BLEU has known limitations — it correlates imperfectly with human judgments of fluency and can penalize valid paraphrases — which has motivated complementary metrics like METEOR, ROUGE (more common for summarization), and learned metrics like BERTScore, though BLEU remains the benchmark most commonly referenced for translation specifically.
How is the optimization of a multimodal model different from a unimodal model in terms of gradient vanishing?
Unimodal models have a higher risk of gradient vanishing compared to multimodal models, as the focus on a single modality allows for better gradient flow and stability.
Multimodal models have a higher risk of gradient vanishing compared to unimodal models, as the combination of multiple modalities increases the complexity of the model architecture.
Both multimodal and unimodal models have an equal risk of gradient vanishing, as the optimization process is independent of the number of modalities.
Gradient vanishing is not a concern in either multimodal or unimodal models, as modern optimization techniques have overcome this issue.
Multimodal architectures are generally deeper and structurally more complex than their unimodal counterparts: they typically combine multiple modality-specific encoder branches (each potentially deep in its own right, e.g., a vision transformer plus a language transformer) with additional fusion layers stacked on top. This increased effective depth and the heterogeneous gradient paths flowing back through fusion points create more opportunities for gradients to shrink as they propagate backward through many successive layers and combination operations — the classic vanishing gradient problem, where early layers receive vanishingly small weight updates and effectively stop learning. Imbalanced convergence rates across modality branches (one modality dominating gradient signal while another stagnates) is a related, multimodal-specific optimization challenge that compounds this risk.
This doesn't mean unimodal models are immune to vanishing gradients — they clearly are not, which is precisely why techniques like residual connections, normalization layers, and careful initialization were developed for deep unimodal networks in the first place. But the *comparative* claim in this question — that multimodal architectures face elevated risk due to added structural complexity — reflects a genuine, actively researched challenge in multimodal optimization, addressed through techniques like modality-specific learning rates, gradient blending, and careful fusion-layer design.
What is the role of CLIP (Contrastive Language-Image Pretraining) in text-to-image generation?
CLIP is used to generate image captions from textual input.
CLIP is used to convert textual input into image embeddings.
CLIP provides a common embedding space for both the textual and image modalities.
CLIP is used to enhance datasets through data augmentation for text-to-image generation.
CLIP's core contribution to text-to-image pipelines is a shared, aligned embedding space in which semantically related text and images map to nearby vectors. In generative pipelines such as Stable Diffusion, CLIP's text encoder converts a prompt into an embedding that conditions the diffusion model's denoising process (often via cross-attention layers), steering the iterative noise-removal toward images whose CLIP embedding would be close to the prompt's embedding. In DALL-E 2's unCLIP approach, a "prior" model additionally maps text embeddings to plausible image embeddings within this same CLIP space before a decoder renders the final image.
Option B is subtly wrong: CLIP's text encoder produces a text embedding, not an "image embedding" — the point is that both modalities land in the *same* space, not that text is literally converted into an image representation. Option A confuses CLIP with an image-captioning model (a different task using an image encoder plus a text decoder, e.g., BLIP), and option D misattributes a data-augmentation role CLIP does not perform; CLIP is a representation/alignment model, not an augmentation tool.
Because CLIP was trained contrastively on hundreds of millions of image-text pairs, its embedding space also carries useful semantic structure (compositionality, style, attributes) that generative models exploit for prompt fidelity.
You are tasked with developing an image processing model using machine learning. You need to classify thousands of labeled images of cats and dogs. Which algorithm is commonly used for image classification?
Decision Trees
K-Means Clustering
Convolutional Neural Networks (CNN)
Linear Regression
CNNs remain the standard architecture for image classification tasks of this kind, for the same structural reasons covered elsewhere in this set: convolutional layers exploit spatial locality and translation invariance in image data, learning hierarchical features — edges and textures in early layers, parts and objects in deeper layers — directly from labeled pixel data, without requiring hand-engineered features. With thousands of labeled cat/dog images, a CNN (trained from scratch or, more efficiently given the modest dataset size, fine-tuned from a pretrained backbone via transfer learning) is the practical, industry-standard choice.
Decision Trees (A) can technically be applied to hand-engineered image features, but they scale poorly to raw high-dimensional pixel input and cannot learn spatial hierarchies the way convolutional architectures do — they're a reasonable choice for structured/tabular data, not raw image classification. K-Means Clustering (B) is unsupervised and would group images by similarity without using the provided labels at all, making it unsuitable for a labeled classification task where you already have ground-truth cat/dog annotations to learn from directly. Linear Regression (D) predicts continuous numeric outputs and is not designed for categorical classification; even logistic regression, its classification-oriented cousin, would struggle on raw pixels without the feature-learning capacity a CNN provides.
This mirrors a nearly identical question earlier in this set (10,000 cats/dogs/birds) — expect the exam to test this CNN-for-images association repeatedly, sometimes with different distractor combinations.
You have a dataset containing information about sales performance for different regions in the last ten years. Which type of data visualization would be most appropriate to compare the sales performance across regions on a year-by-year basis?
Scatter plot
Line chart
Bar chart
Pie chart
Reviewer note: Marked answer (D, pie chart) is inconsistent with standard data-visualization practice for year-by-year, multi-region comparison; a line chart (B) is the technically defensible choice.
I need to flag this one directly: the marked answer (D, pie chart) does not hold up technically, and I won't present it as correct just because it's what the answer key says. A pie chart shows the proportional breakdown of a whole at a single point in time — it has no mechanism for representing a trend across ten years, and using ten overlapping pie charts (one per year) to compare regional performance would be one of the least readable choices available, not the most appropriate.
The technically correct choice is a line chart (B): with ten years of data per region, a line chart plots each region as a separate series across a shared time axis, making year-over-year trends, growth rates, inflection points, and cross-region divergence immediately visible — exactly the "year-by-year" comparison the question specifies. A grouped/clustered bar chart (C) is a reasonable secondary choice if the emphasis is discrete year-to-year comparison rather than continuous trend, but it becomes visually cluttered with ten years × multiple regions. A scatter plot (A) is better suited to examining the relationship between two continuous variables (e.g., sales vs. marketing spend) than to a time-series comparison across categories.
If this exact answer appears on a live exam or official material, treat D with skepticism — this explanation reflects standard data visualization practice, not the source document's marked key.
What does 'modality alignment' refer to?
The integration of pretrained models to perform custom tasks involving different types of data.
The process of integrating diverse data types such as text, images, audio, time series, and geospatial information.
Addressing challenges related to missing or incomplete information across different modalities.
Aligning different modalities within multimodal data to ensure meaningful connections and associations.
Modality alignment is the process of establishing correspondence between semantically related elements across different data types — for example, matching a spoken word to its corresponding lip movement in video, or a caption phrase to the image region it describes. It is distinct from fusion (combining modalities into a joint representation) and from data integration (option B, which describes ingestion rather than alignment). Alignment can be explicit, as in dynamic time warping for audio-text synchronization, or implicit, learned end-to-end through attention mechanisms such as cross-attention in transformer architectures. CLIP's contrastive objective is itself a form of learned alignment: it pulls matching image-text pairs together in embedding space while pushing non-matching pairs apart, producing an aligned shared representation without explicit temporal correspondence. Alignment quality directly affects downstream fusion: poorly aligned modalities introduce noise that fusion layers cannot fully compensate for, which is why alignment is typically treated as a prerequisite step, not an afterthought.
Option A describes model reuse for custom tasks (closer to transfer learning), while C describes handling missing modality data, a separate robustness concern. Neither captures the correspondence-building nature of alignment. On the NCA-GENM exam, expect alignment questions to be paired with fusion and co-embedding concepts.
In a multimodal machine learning context, how are different modalities usually linked to each other?
Different modalities are linked through a shared representation that captures the relationships between the modalities.
Different modalities are linked through random connections.
Different modalities are linked through separate models that are ensembled by tree-based models.
Different modalities are not linked to each other in a multimodal machine learning context.
The defining goal of multimodal machine learning is to learn a shared (joint) representation space that captures cross-modal relationships and correspondences — allowing information from one modality to inform, constrain, or complete information from another. This shared representation is what enables tasks like cross-modal retrieval (finding images from a text query), cross-modal generation (text-to-image, image-to-text), and joint reasoning (visual question answering), all of which require the model to relate concepts across modality boundaries rather than process each in isolation.
How that shared representation is learned varies — contrastive objectives (CLIP), joint embedding via co-attention (VisualBERT, LXMERT), or fusion layers that combine modality-specific features — but the underlying principle is consistent across architectures: linkage happens through learned representations, not fixed rules or arbitrary connections.
Option C describes a specific, narrow ensembling strategy (tree-based combination of separate unimodal models) that is neither standard nor representative of how modern multimodal systems establish cross-modal relationships; it also conflates "linking modalities" with "combining model outputs," which is closer to late fusion than to representation learning. Option D is simply the negation of the field's core premise. Option B introduces randomness where structure is explicitly what is being learned.
You want to evaluate the performance of an AI model. Which of the following is a method for AI model evaluation?
Interviewing the developers of the AI model to assess its performance.
Calculating the model's accuracy from randomly selected data points from the dataset not used during the model's training.
Randomly selecting data points from the training set and calculating the accuracy of the model on these data points.
Calculating the loss function of the model on the training set.
Valid model evaluation requires measuring performance on held-out data the model has not seen during training — this is the foundational principle behind train/validation/test splits and cross-validation, and it exists specifically to estimate how the model will generalize to genuinely new data, rather than how well it memorized patterns specific to its training set. Option B correctly describes this: sampling from a portion of the dataset explicitly excluded from training and calculating accuracy on it.
Options C and D both violate this principle by evaluating on the training set itself, which produces optimistically biased performance estimates: a model — particularly an overparameterized deep learning model — can achieve very high training accuracy or very low training loss simply by memorizing training examples (overfitting) without that performance transferring to new data at all. Reporting training-set accuracy (C) or training-set loss (D) as an evaluation of "performance" conflates fit-to-training-data with generalization, the central failure mode that held-out evaluation is designed to catch. Option A describes a qualitative, subjective process — interviewing developers — that provides no quantitative, reproducible performance measurement and is not a recognized model evaluation methodology.
This principle extends further in rigorous experimentation: a validation set used repeatedly for hyperparameter tuning can itself become "leaked" through repeated selection, which is why a separate, untouched test set is typically reserved for final, one-time performance reporting.
TESTED 02 Sep 2026