D.To create new content such as text, images, or audio
Correct Answer: To create new content such as text, images, or audio
Explanation:
Generative AI is designed to generate new content like text, images, music, and code, rather than just analyzing or sorting existing data.
Incorrect! Try again.
2Which of the following best describes generative AI?
Define generative AI
Easy
A.A system that only follows fixed if-else rules
B.A tool that only stores data in the cloud
C.A type of AI that produces original outputs from learned patterns
D.A program that manages computer memory allocation
Correct Answer: A type of AI that produces original outputs from learned patterns
Explanation:
Generative AI learns patterns from training data and uses them to produce new, original outputs.
Incorrect! Try again.
3Generative AI is a subset of which broader field?
Define generative AI
Easy
A.Network security
B.Web development
C.Database administration
D.Machine learning
Correct Answer: Machine learning
Explanation:
Generative AI is a branch of machine learning, which itself is part of artificial intelligence.
Incorrect! Try again.
4Which of the following is an example of a generative AI output?
Define generative AI
Easy
A.A calculation of the sum of two numbers
B.A record deleted from a spreadsheet
C.An AI-written poem about the ocean
D.A sorted list of email addresses
Correct Answer: An AI-written poem about the ocean
Explanation:
Creating a poem is generating new content, which is a hallmark of generative AI.
Incorrect! Try again.
5What do generative AI models learn from during training?
Explain how generative AI works
Easy
A.A single fixed rulebook
B.Only user passwords
C.The computer's clock speed
D.Large amounts of data
Correct Answer: Large amounts of data
Explanation:
Generative AI models are trained on large datasets so they can learn patterns and generate similar new content.
Incorrect! Try again.
6In language models, a prompt refers to what?
Explain how generative AI works
Easy
A.The input text given to the model
B.The final saved model file
C.The electricity powering the server
D.The hardware running the model
Correct Answer: The input text given to the model
Explanation:
A prompt is the instruction or input a user provides to guide the model's generated response.
Incorrect! Try again.
7What is a token in the context of language models?
Explain how generative AI works
Easy
A.A small unit of text such as a word or part of a word
B.A physical coin used to pay for AI
C.A backup copy of the model
D.A type of computer virus
Correct Answer: A small unit of text such as a word or part of a word
Explanation:
Language models break text into tokens (words or subwords) and process them to generate output.
Incorrect! Try again.
8How does a text-generating model typically produce its output?
Explain how generative AI works
Easy
A.By searching only the local file system
B.By predicting the next token based on previous ones
C.By copying answers directly from a fixed list
D.By randomly selecting characters with no learning
Correct Answer: By predicting the next token based on previous ones
Explanation:
Generative language models predict the most likely next token given the preceding context, one step at a time.
Incorrect! Try again.
9What is the process of adjusting a pre-trained model on a smaller, specific dataset called?
Explain how generative AI works
Easy
A.Fine-tuning
B.Compiling
C.Encrypting
D.Formatting
Correct Answer: Fine-tuning
Explanation:
Fine-tuning adapts a pre-trained model to a specific task or domain using additional targeted data.
Incorrect! Try again.
10Which component in modern generative models helps focus on relevant parts of the input?
Explain how generative AI works
Easy
A.The cooling fan
B.The power supply
C.The keyboard driver
D.The attention mechanism
Correct Answer: The attention mechanism
Explanation:
The attention mechanism lets models weigh the importance of different input parts when generating output.
Incorrect! Try again.
11What does the acronym GAN stand for?
Describe generative AI model types
Easy
A.Grouped Attention Node
B.Global Access Number
C.Generative Adversarial Network
D.General Analog Network
Correct Answer: Generative Adversarial Network
Explanation:
GAN stands for Generative Adversarial Network, which uses two competing networks to generate realistic data.
Incorrect! Try again.
12A GAN consists of which two main components?
Describe generative AI model types
Easy
A.A compiler and a linker
B.A router and a switch
C.A generator and a discriminator
D.A server and a database
Correct Answer: A generator and a discriminator
Explanation:
A GAN pairs a generator that creates data with a discriminator that judges whether it is real or fake.
Incorrect! Try again.
13Which architecture is the foundation of most modern large language models?
Describe generative AI model types
Easy
A.Spreadsheet
B.Transformer
C.Firewall
D.Router
Correct Answer: Transformer
Explanation:
The Transformer architecture, introduced in 2017, underpins most modern large language models.
Incorrect! Try again.
14What does LLM stand for?
Describe generative AI model types
Easy
A.Linear Learning Method
B.Local Log Manager
C.Long Latency Machine
D.Large Language Model
Correct Answer: Large Language Model
Explanation:
LLM stands for Large Language Model, a model trained on vast text data to understand and generate language.
Incorrect! Try again.
15Which model type is commonly used to generate high-quality images from text prompts?
Describe generative AI model types
Easy
A.Diffusion models
B.Sorting algorithms
C.Spreadsheet macros
D.Firewall rules
Correct Answer: Diffusion models
Explanation:
Diffusion models generate images by gradually removing noise, and are widely used in text-to-image tools.
Incorrect! Try again.
16What does VAE stand for in generative modeling?
Describe generative AI model types
Easy
A.Variational Autoencoder
B.Virtual Access Engine
C.Verified Audio Encoder
D.Variable Array Editor
Correct Answer: Variational Autoencoder
Explanation:
VAE stands for Variational Autoencoder, a model that learns compressed representations to generate new data.
Incorrect! Try again.
17Which of the following is a common application of generative AI?
Describe generative AI applications
Easy
A.Cleaning a computer keyboard
B.Measuring network cable length
C.Cooling the CPU during heavy load
D.Chatbots that answer questions
Correct Answer: Chatbots that answer questions
Explanation:
Conversational chatbots are a widely used application of generative AI, producing human-like responses.
Incorrect! Try again.
18Generative AI tools that create pictures from a text description perform what task?
Describe generative AI applications
Easy
A.Text-to-image generation
B.File encryption
C.Image compression only
D.Text-to-speech deletion
Correct Answer: Text-to-image generation
Explanation:
Text-to-image generation converts written descriptions into images, a popular generative AI application.
Incorrect! Try again.
19Which task is an example of generative AI assisting software developers?
Describe generative AI applications
Easy
A.Printing physical documents
B.Managing office electricity
C.Replacing the computer monitor
D.Suggesting and completing code
Correct Answer: Suggesting and completing code
Explanation:
Code-assistant tools use generative AI to suggest, complete, and explain code for developers.
Incorrect! Try again.
20How can generative AI help with long documents?
Describe generative AI applications
Easy
A.By formatting the hard drive
B.By physically shredding them
C.By summarizing them into shorter text
D.By adjusting screen brightness
Correct Answer: By summarizing them into shorter text
Explanation:
Text summarization is a common generative AI application that condenses long content into concise summaries.
Incorrect! Try again.
21A team builds a system that produces brand-new product descriptions rather than labeling existing ones as spam or not-spam. Which characteristic best classifies this system as generative AI?
Define generative AI
Medium
A.It only retrieves and copies stored text from a database
B.It creates novel content by modeling the distribution of training data
C.It reduces the dimensionality of input features for visualization
D.It assigns each input to one of a fixed set of predefined categories
Correct Answer: It creates novel content by modeling the distribution of training data
Explanation:
Generative AI learns the underlying data distribution and samples from it to produce new content, unlike discriminative models that only classify inputs.
Incorrect! Try again.
22Which of the following tasks is the clearest example of generative rather than discriminative modeling?
Define generative AI
Medium
A.Predicting whether an email is spam or not
B.Synthesizing a realistic human face that does not exist
C.Detecting the language of a given sentence
D.Ranking search results by relevance score
Correct Answer: Synthesizing a realistic human face that does not exist
Explanation:
Generating a new, non-existent face is content creation. The other options assign labels or scores to existing inputs, which is discriminative.
Incorrect! Try again.
23A discriminative model learns while a generative model typically learns or . What practical capability does learning give a generative model?
Define generative AI
Medium
A.It removes the need for any training data at all
B.It can only draw boundaries between existing classes
C.It guarantees perfect accuracy on classification tasks
D.It can sample and produce new data instances resembling the training set
Correct Answer: It can sample and produce new data instances resembling the training set
Explanation:
Modeling lets the system sample new instances from the learned distribution, which is the core of content generation.
Incorrect! Try again.
24In a transformer-based language model, the self-attention mechanism primarily allows the model to do what?
Explain how generative AI works
Medium
A.Convert images into fixed-length numerical labels
B.Weigh the relevance of different tokens in a sequence to each other
C.Store the entire training corpus inside its parameters verbatim
D.Guarantee that outputs never repeat any training text
Correct Answer: Weigh the relevance of different tokens in a sequence to each other
Explanation:
Self-attention computes relevance weights between tokens, letting the model capture context and long-range dependencies when generating each token.
Incorrect! Try again.
25During text generation, increasing the temperature parameter of a language model generally has what effect on the output?
Explain how generative AI works
Medium
A.It permanently retrains the model on new data
B.It forces the model to always pick the single most likely token
C.It increases randomness and diversity in the generated tokens
D.It reduces the size of the model's vocabulary
Correct Answer: It increases randomness and diversity in the generated tokens
Explanation:
Higher temperature flattens the probability distribution over tokens, making less-likely tokens more probable and increasing output diversity.
Incorrect! Try again.
26A large language model predicts text by estimating the probability of the next token given previous tokens. This objective is best described as:
Autoregressive models generate sequences one token at a time, each conditioned on the tokens produced so far, modeling .
Incorrect! Try again.
27Why are embeddings important in how generative models process text?
Explain how generative AI works
Medium
A.They label each sentence with a spam or not-spam tag
B.They compress the model file so it uses less disk space
C.They convert vectors back into raw pixels for display
D.They map words into dense vectors that capture semantic relationships
Correct Answer: They map words into dense vectors that capture semantic relationships
Explanation:
Embeddings represent tokens as continuous vectors where semantically similar items are close together, enabling the model to reason over meaning.
Incorrect! Try again.
28In the training of a generative model, what does a loss function typically measure?
Explain how generative AI works
Medium
A.The physical temperature of the GPU during training
B.The number of parameters stored in the network
C.The difference between the model's predictions and the target data
D.The total number of tokens in the vocabulary
Correct Answer: The difference between the model's predictions and the target data
Explanation:
The loss quantifies prediction error; minimizing it via gradient descent adjusts the model's weights to better match the training data.
Incorrect! Try again.
29A Generative Adversarial Network (GAN) trains two competing networks. What are their roles?
Describe generative AI model types
Medium
A.Two identical encoders compress the same image in parallel
B.A generator creates samples while a discriminator judges their authenticity
C.A translator converts text while a classifier labels it
D.A generator stores data while a decoder deletes duplicates
Correct Answer: A generator creates samples while a discriminator judges their authenticity
Explanation:
In a GAN, the generator produces fake samples and the discriminator tries to distinguish real from fake; their adversarial competition improves both.
Incorrect! Try again.
30Modern image generators like Stable Diffusion are based on diffusion models. How do they generate images?
Describe generative AI model types
Medium
A.By iteratively denoising random noise into a coherent image
B.By retrieving the closest matching image from a fixed gallery
C.By compressing an image into a single scalar value
D.By classifying an image into one of several object categories
Correct Answer: By iteratively denoising random noise into a coherent image
Explanation:
Diffusion models learn to reverse a noising process, gradually transforming random noise into a structured image over many denoising steps.
Incorrect! Try again.
31A Variational Autoencoder (VAE) differs from a plain autoencoder mainly because it:
Describe generative AI model types
Medium
A.Only reconstructs inputs and can never generate new samples
B.Uses two adversarial networks competing against each other
C.Learns a probabilistic latent space that can be sampled to generate new data
D.Requires labeled data for every training example
Correct Answer: Learns a probabilistic latent space that can be sampled to generate new data
Explanation:
A VAE encodes inputs into a distribution over latent variables; sampling from this latent space and decoding produces new, plausible data.
Incorrect! Try again.
32The transformer architecture became dominant for large language models primarily because it:
Describe generative AI model types
Medium
A.Eliminates the need for GPUs during training
B.Requires far less training data than any other model type
C.Processes sequence tokens in parallel using attention instead of recurrence
D.Can only handle fixed images of a single resolution
Correct Answer: Processes sequence tokens in parallel using attention instead of recurrence
Explanation:
Transformers use self-attention to handle sequences in parallel, avoiding the sequential bottleneck of RNNs and scaling well to large datasets.
Incorrect! Try again.
33Which model type is most naturally suited for generating a coherent paragraph of text one word at a time?
Describe generative AI model types
Medium
A.An autoregressive transformer language model
B.A k-means clustering algorithm
C.A convolutional neural network for image classification
D.A simple linear regression model
Correct Answer: An autoregressive transformer language model
Explanation:
Autoregressive transformer LLMs generate text sequentially, conditioning each new token on prior context, which suits paragraph generation.
Incorrect! Try again.
34A researcher wants a model that maps an input distribution to a latent space and back using an encoder-decoder pair with a regularized latent code. Which model best fits this description?
Describe generative AI model types
Medium
A.Decision Tree Classifier
B.Support Vector Machine (SVM)
C.Variational Autoencoder (VAE)
D.Random Forest Regressor
Correct Answer: Variational Autoencoder (VAE)
Explanation:
A VAE uses an encoder-decoder structure with a regularized (probabilistic) latent space, matching the described setup exactly.
Incorrect! Try again.
35A company uses generative AI to automatically draft first-pass replies to customer support emails. This application is best categorized as:
Describe generative AI applications
Medium
A.Anomaly detection in network traffic
B.Text generation for automated content creation
C.Time-series forecasting of stock prices
D.Image classification for object detection
Correct Answer: Text generation for automated content creation
Explanation:
Drafting email replies is a natural-language text-generation task, a core application of generative AI.
Incorrect! Try again.
36A studio uses a generative model to turn a text prompt like "a red fox in a snowy forest" into an original image. This is an example of:
Describe generative AI applications
Medium
A.Text-to-image generation
B.Sentiment analysis
C.Data compression
D.Optical character recognition
Correct Answer: Text-to-image generation
Explanation:
Producing an image from a textual description is text-to-image generation, a widely used generative AI application.
Incorrect! Try again.
37In software development, tools like code assistants that suggest complete functions from a comment demonstrate which generative AI application?
Describe generative AI applications
Medium
A.Counting the lines of code in a repository
B.Code generation from natural-language descriptions
C.Encrypting source files for security
D.Compiling machine code into assembly
Correct Answer: Code generation from natural-language descriptions
Explanation:
Generating source code from natural-language prompts is a code-generation application powered by large language models trained on code.
Incorrect! Try again.
38A drug-discovery lab uses a generative model to propose novel molecular structures with desired properties. This best illustrates generative AI used for:
Describe generative AI applications
Medium
A.Payroll processing automation
B.Synthetic data and candidate generation in scientific research
C.Database index optimization
D.Real-time video streaming compression
Correct Answer: Synthetic data and candidate generation in scientific research
Explanation:
Generating novel candidate molecules is an application where generative models explore and propose new structures in scientific domains.
Incorrect! Try again.
39Which scenario is the least appropriate use of a generative AI model on its own?
Describe generative AI applications
Medium
A.Producing legally binding financial figures that must be exactly correct
B.Generating a sample dialogue for a chatbot
C.Drafting a creative marketing tagline
D.Creating a rough concept illustration
Correct Answer: Producing legally binding financial figures that must be exactly correct
Explanation:
Generative models can hallucinate and are probabilistic, so tasks demanding exact, verifiable numbers are poorly suited to them without strict validation.
Incorrect! Try again.
40A music platform generates original background tracks from a short melodic prompt. This is an example of generative AI applied to:
Describe generative AI applications
Medium
A.Warehouse inventory counting
B.Spam email filtering
C.Audio and music synthesis
D.Fingerprint identification
Correct Answer: Audio and music synthesis
Explanation:
Creating new audio or musical content from a prompt is an audio-generation application of generative AI.
Incorrect! Try again.
41A researcher claims their model is 'generative' because it outputs class labels with calibrated probability distributions . Why is this claim technically incorrect from a probabilistic modeling standpoint?
Define generative AI
Hard
A.It models the conditional rather than the joint or data distribution , making it discriminative
B.It cannot output labels, since generative models only produce continuous values
C.It lacks a softmax layer, which is mandatory for all generative architectures
D.It uses probabilities instead of hard decision boundaries, which only clustering models do
Correct Answer: It models the conditional rather than the joint or data distribution , making it discriminative
Explanation:
Generative models learn the data distribution or joint so they can sample new data. Modeling only is discriminative classification, regardless of calibration.
Incorrect! Try again.
42Which characteristic most precisely distinguishes a generative model from a discriminative one, even when both are neural networks trained on the same dataset?
Define generative AI
Hard
A.The generative model always has more parameters than the discriminative one
B.The generative model can synthesize novel samples resembling the training distribution
C.The generative model must use unsupervised gradient descent exclusively
D.The generative model requires labeled data while the discriminative one does not
Correct Answer: The generative model can synthesize novel samples resembling the training distribution
Explanation:
The defining trait is the ability to generate new data by capturing the underlying distribution. Parameter count, labeling, and optimization method are not distinguishing criteria.
Incorrect! Try again.
43A team argues that a lookup table returning memorized training sentences is 'generative AI' because it produces text. What is the strongest counterargument?
Define generative AI
Hard
A.It has no loss function, which is the sole requirement for being generative
B.It is deterministic, and all generative models are strictly stochastic
C.It uses text output, and generative AI must only output images or audio
D.It fails to generalize to a learned distribution and only reproduces stored samples without novel synthesis
Correct Answer: It fails to generalize to a learned distribution and only reproduces stored samples without novel synthesis
Explanation:
Generative AI models a distribution enabling novel, unseen outputs. Pure memorization/retrieval lacks generalization and synthesis, so it is not genuinely generative.
Incorrect! Try again.
44In an autoregressive language model, the joint probability of a sequence is factorized as which of the following?
Explain how generative AI works
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Autoregressive models apply the chain rule of probability, conditioning each token on all preceding tokens, giving the product of conditionals.
Incorrect! Try again.
45Lowering the sampling temperature in a language model's softmax produces what effect on generated output?
Explain how generative AI works
Hard
A.Output probability mass spreads evenly, increasing diversity
B.Output becomes maximally random, sampling all tokens uniformly
C.Output halts because the softmax becomes undefined at low temperature
D.Output becomes near-deterministic, collapsing toward the highest-probability token (greedy behavior)
As , the softmax sharpens toward a one-hot distribution on the max logit, making sampling effectively greedy and deterministic.
Incorrect! Try again.
46A diffusion model is trained to reverse a gradual noising process. During generation, what does the model fundamentally learn to predict at each denoising step?
Explain how generative AI works
Hard
A.The class label of the eventual output before any denoising
B.The exact final image in a single forward pass without iteration
C.The discriminator's gradient to fool an adversarial critic
D.The noise (or score) to remove, progressively transforming random noise into a data sample
Correct Answer: The noise (or score) to remove, progressively transforming random noise into a data sample
Explanation:
Diffusion models learn to estimate the added noise (equivalently the score ) and iteratively denoise, turning Gaussian noise into a coherent sample.
Incorrect! Try again.
47In the self-attention mechanism, attention weights are computed as . Why is the scaling factor included?
Explain how generative AI works
Hard
A.To prevent large dot products from pushing softmax into regions with vanishingly small gradients
B.To guarantee that attention weights sum to exactly
C.To normalize the values matrix to unit length before multiplication
D.To reduce the parameter count of the query and key projections
Correct Answer: To prevent large dot products from pushing softmax into regions with vanishingly small gradients
Explanation:
For large , dot products grow in magnitude, saturating the softmax and shrinking gradients. Dividing by keeps variance stable and gradients healthy.
Incorrect! Try again.
48A variational autoencoder (VAE) optimizes the Evidence Lower Bound (ELBO). Which term in the ELBO acts as a regularizer forcing the latent posterior toward the prior?
Explain how generative AI works
Hard
A.The KL divergence
B.The adversarial loss between encoder and decoder
C.The cross-entropy between input and output labels
D.The reconstruction likelihood
Correct Answer: The KL divergence
Explanation:
The ELBO = reconstruction term − KL term. The KL divergence pulls the approximate posterior toward the prior , regularizing the latent space.
Incorrect! Try again.
49Why can teacher forcing during training cause 'exposure bias' at inference time in autoregressive generators?
Explain how generative AI works
Hard
A.Training conditions on ground-truth tokens, but inference conditions on the model's own possibly-erroneous outputs, compounding errors
B.Teacher forcing disables backpropagation, so the model never learns dependencies
C.Inference uses ground-truth tokens while training uses generated ones, reversing the bias
D.Training uses larger batches than inference, changing the loss landscape
Correct Answer: Training conditions on ground-truth tokens, but inference conditions on the model's own possibly-erroneous outputs, compounding errors
Explanation:
With teacher forcing, each step sees correct history. At inference the model feeds its own outputs; early mistakes propagate, a mismatch called exposure bias.
Incorrect! Try again.
50GAN training is often unstable due to 'mode collapse.' What does mode collapse specifically describe?
Describe generative AI model types
Hard
A.The latent space becomes larger than the data space
B.The discriminator's loss diverges to infinity, halting training
C.The generator perfectly matches every mode, ending training prematurely
D.The generator produces limited, repetitive outputs covering only a few modes of the true data distribution
Correct Answer: The generator produces limited, repetitive outputs covering only a few modes of the true data distribution
Explanation:
Mode collapse occurs when the generator maps many latent inputs to a narrow set of outputs, ignoring the diversity of the real distribution while still fooling the discriminator.
Incorrect! Try again.
51Which comparison between VAEs and GANs is accurate regarding sample quality and likelihood?
Describe generative AI model types
Hard
A.VAEs use adversarial critics while GANs use a KL-regularized encoder
B.Both compute exact log-likelihoods and produce identically sharp outputs
C.GANs provide exact likelihoods while VAEs cannot compute any probability
D.VAEs offer tractable likelihood estimates but often blurrier samples, while GANs yield sharper samples without explicit likelihoods
Correct Answer: VAEs offer tractable likelihood estimates but often blurrier samples, while GANs yield sharper samples without explicit likelihoods
Explanation:
VAEs optimize a likelihood lower bound (ELBO) but tend to produce blurry outputs; GANs generate sharp samples via adversarial training but lack an explicit tractable likelihood.
Incorrect! Try again.
52Why are diffusion models generally more stable to train than GANs despite being more computationally expensive at inference?
Describe generative AI model types
Hard
A.They require no neural network and use closed-form solutions
B.They train a single step, avoiding all iterative computation
C.They discard the data distribution entirely and sample uniformly
D.They optimize a well-defined denoising regression objective rather than a min-max adversarial game
Correct Answer: They optimize a well-defined denoising regression objective rather than a min-max adversarial game
Explanation:
Diffusion models use a stable regression-style loss (predicting noise), avoiding the fragile adversarial equilibrium of GANs. The cost is many iterative denoising steps at inference.
Incorrect! Try again.
53An autoregressive image model like PixelCNN differs from a GAN primarily in that it:
Describe generative AI model types
Hard
A.Cannot generate images and only classifies them
B.Models the explicit joint distribution as a product of pixel-wise conditionals, enabling exact likelihood
C.Uses a discriminator network to score full images at once
D.Generates all pixels simultaneously in a single parallel pass
Correct Answer: Models the explicit joint distribution as a product of pixel-wise conditionals, enabling exact likelihood
Explanation:
PixelCNN factorizes into conditionals over pixels, giving tractable exact likelihood but slow sequential generation, unlike GANs' implicit, one-shot sampling.
Incorrect! Try again.
54Normalizing flows achieve exact likelihood computation through which key architectural constraint?
Describe generative AI model types
Hard
A.Invertible transformations with tractable Jacobian determinants relating data and latent densities
B.Discrete latent codebooks quantized via nearest neighbor
C.Adversarial competition between two subnetworks
D.Iterative noise injection followed by learned denoising
Correct Answer: Invertible transformations with tractable Jacobian determinants relating data and latent densities
Explanation:
Flows use bijective mappings so the change-of-variables formula gives exact likelihood, requiring the Jacobian determinant to be efficiently computable.
Incorrect! Try again.
55A transformer-based LLM and an RNN-based language model both generate text autoregressively. What is the transformer's core architectural advantage during training?
Describe generative AI model types
Hard
A.Parallel processing of all sequence positions via attention instead of sequential recurrence
B.It eliminates the need for a probability distribution over tokens
C.It uses fewer parameters by sharing a single weight across all layers
D.It requires no positional information because order is irrelevant
Correct Answer: Parallel processing of all sequence positions via attention instead of sequential recurrence
Explanation:
Transformers compute attention over all positions simultaneously, enabling parallel training. RNNs must process tokens sequentially, limiting parallelism and long-range dependency capture.
Incorrect! Try again.
56In a retrieval-augmented generation (RAG) system, why does grounding an LLM with retrieved documents primarily reduce hallucination?
Describe generative AI applications
Hard
A.It increases the model's parameter count during inference
B.It retrains the model weights on each query in real time
C.It replaces the softmax with a deterministic lookup, removing all randomness
D.It conditions generation on relevant external evidence, anchoring outputs to verifiable source content
Correct Answer: It conditions generation on relevant external evidence, anchoring outputs to verifiable source content
Explanation:
RAG injects retrieved, relevant context into the prompt so generation is grounded in actual source material, reducing fabricated (hallucinated) content without retraining.
Incorrect! Try again.
57A company deploys a generative model for synthetic tabular data to train downstream classifiers. What is the key risk that undermines this application if unaddressed?
Describe generative AI applications
Hard
A.The classifier will refuse to train on any non-real data
B.The synthetic data may memorize and leak sensitive records or fail to preserve real statistical dependencies
C.Synthetic data always improves classifier accuracy regardless of quality
D.Generative models cannot produce tabular data, only images
Correct Answer: The synthetic data may memorize and leak sensitive records or fail to preserve real statistical dependencies
Explanation:
Poorly regularized generators can memorize training rows (privacy leakage) or distort feature correlations, degrading downstream utility—both must be validated before deployment.
Incorrect! Try again.
58For real-time interactive applications (e.g., live chat), why might a diffusion-based text generator be a poor choice compared to an autoregressive transformer?
Describe generative AI applications
Hard
A.Diffusion requires many iterative denoising steps, increasing latency, while transformers generate tokens more directly
B.Diffusion produces only single-word outputs by design
C.Diffusion models cannot represent language at all
D.Autoregressive models require retraining for each new message
Correct Answer: Diffusion requires many iterative denoising steps, increasing latency, while transformers generate tokens more directly
Explanation:
Diffusion's iterative sampling adds substantial latency per output. Autoregressive transformers, especially with caching, deliver lower-latency token streaming suited to interactive use.
Incorrect! Try again.
59When using a text-to-image model for product design, which limitation best explains why fine-grained spatial instructions (e.g., 'exactly three buttons in a row') often fail?
Describe generative AI applications
Hard
A.Text prompts are ignored entirely during image synthesis
B.The model captures statistical associations rather than precise compositional or counting constraints
C.The model has no access to any training images
D.The model can only output grayscale images
Correct Answer: The model captures statistical associations rather than precise compositional or counting constraints
Explanation:
Generative image models learn distributional correlations, so precise counting and exact spatial composition are weakly enforced, leading to frequent violations of strict constraints.
Incorrect! Try again.
60A developer uses an LLM for code generation and observes plausible-looking but nonexistent library functions. What underlying property of the model best explains this?
Describe generative AI applications
Hard
A.It only outputs code it has verified by executing it internally
B.It cannot produce code and only produces prose
C.It generates the most statistically likely tokens, which can produce syntactically plausible yet factually invalid API calls
D.It intentionally sabotages code to protect proprietary libraries
Correct Answer: It generates the most statistically likely tokens, which can produce syntactically plausible yet factually invalid API calls
Explanation:
The model predicts likely token sequences based on patterns, not verified truth. Plausible naming patterns can yield hallucinated APIs that do not actually exist.
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill.
The rest comes out of a student's own pocket: the domain, the storage,
and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →