Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
You're offline
Unit 5 MCQsGenerative AI & Ethics; Prompt Engineering
Answer: Generating repetitive documents and reports automatically
Generative AI automates the creation of repetitive content like reports and emails, saving time and effort.
Question 19 of 60 · Key elements of a good prompt · Easy
Providing context in a prompt helps the model to:
Not quite. Try another option.
Answer: Understand the situation and give relevant answers
Adding context helps the model grasp the intent and background, resulting in more relevant and accurate outputs.
Question 20 of 60 · Diffusion · Easy
Which type of content are diffusion models most commonly used to generate?
Not quite. Try another option.
Answer: Images
Diffusion models like Stable Diffusion are widely known for generating high-quality images from noise.
Question 21 of 60 · Fundamentals of Generative AI · Medium
A team wants a model that can produce brand-new product images that never existed in the training set, rather than labeling existing images. Which category of model best fits this requirement?
Not quite. Try another option.
Answer: A generative model
Generative models learn the underlying data distribution and can synthesize new samples, whereas discriminative, regression, and rule-based models focus on mapping inputs to labels or values rather than creating new content.
Question 22 of 60 · LLMs · Medium
Why can a large language model produce a grammatically coherent answer to a question it was never explicitly trained to answer?
Not quite. Try another option.
Answer: It predicts the next token based on learned statistical patterns of language
LLMs generate text by predicting the most probable next token given the context, drawing on patterns learned during training, which lets them generalize to unseen prompts.
Question 23 of 60 · GANs · Medium
In a GAN, the generator's training signal comes primarily from which source?
Not quite. Try another option.
Answer: The discriminator's feedback on whether samples look real
The generator improves by trying to fool the discriminator; its updates are driven by how well it deceives the discriminator, forming the adversarial training loop.
Question 24 of 60 · GANs · Medium
During GAN training a generator begins producing only a few near-identical outputs regardless of input noise. What problem is this?
Not quite. Try another option.
Answer: Mode collapse
Mode collapse occurs when the generator maps many inputs to a limited set of outputs, failing to capture the diversity of the real data distribution.
Question 25 of 60 · Diffusion · Medium
What is the core idea behind how a diffusion model generates an image?
Not quite. Try another option.
Answer: It learns to gradually denoise random noise into a coherent sample
Diffusion models are trained to reverse a noising process, iteratively removing noise from a random starting point to produce a realistic sample.
Question 26 of 60 · Diffusion · Medium
A diffusion model has a forward process and a reverse process. What does the forward process do?
Not quite. Try another option.
Answer: Progressively adds noise to real data over many steps
The forward (diffusion) process incrementally corrupts data with noise; the model then learns the reverse process to recover data from noise.
Question 27 of 60 · How generative models work · Medium
Why is sampling (rather than always choosing the single most likely token) often used when generating text?
Not quite. Try another option.
Answer: It introduces controlled variety and avoids repetitive text
Sampling strategies such as temperature or top-k add diversity, preventing the repetitive or overly deterministic output that greedy selection can produce.
Question 28 of 60 · How generative models work · Medium
Raising the temperature parameter during text generation generally has what effect?
Not quite. Try another option.
Answer: Makes output more random and creative
Higher temperature flattens the probability distribution over tokens, increasing randomness and diversity; lower temperature makes generation more focused and deterministic.
Question 29 of 60 · Industrial applications (content creation, automation) · Medium
A marketing team uses generative AI to draft first versions of email campaigns that humans then edit. This is best described as which use pattern?
Not quite. Try another option.
Answer: Human-in-the-loop content assistance
Having the AI generate drafts that humans review and refine is a human-in-the-loop workflow, common for content creation to balance speed with quality control.
Question 30 of 60 · Industrial applications (content creation, automation) · Medium
Which scenario is the most appropriate use of generative AI for business automation?
Not quite. Try another option.
Answer: Summarizing lengthy support tickets into action items
Summarization of routine text is a reliable automation task; high-stakes domains like law, medicine, and finance still require human oversight due to accuracy and accountability concerns.
Question 31 of 60 · Ethics and Responsible Use of Generative AI · Medium
A generative model trained on historical hiring data recommends fewer women for technical roles. What is the underlying ethical issue?
Not quite. Try another option.
Answer: Bias inherited from training data
Generative models can absorb and reproduce societal biases present in their training data, leading to unfair or discriminatory outputs that require mitigation.
Question 32 of 60 · Ethics and Responsible Use of Generative AI · Medium
When an LLM confidently states false information as if it were true, this behavior is commonly called:
Not quite. Try another option.
Answer: Hallucination
Hallucination refers to a model generating plausible-sounding but factually incorrect or fabricated content, a key concern for responsible deployment.
Question 33 of 60 · Ethics and Responsible Use of Generative AI · Medium
Which practice best supports responsible use when deploying a generative AI chatbot to the public?
Not quite. Try another option.
Answer: Disclosing that users are interacting with an AI system
Transparency about AI involvement supports informed consent and trust, a core principle of responsible AI deployment.
Question 34 of 60 · Fundamentals of prompt · Medium
In prompting an LLM, what does the term "context" most accurately refer to?
Not quite. Try another option.
Answer: The background information and instructions supplied to guide the response
Context is the surrounding information, instructions, and examples provided in the prompt that shape how the model interprets and answers the request.
Question 35 of 60 · Importance of Prompt Engineering · Medium
Two users ask an LLM the same underlying question but get very different quality answers. What most likely explains this?
Not quite. Try another option.
Answer: Differences in how each prompt was phrased and structured
Prompt engineering matters because the wording, clarity, and structure of a prompt strongly influence output quality, even for identical underlying intents.
Question 36 of 60 · Overview of language models · Medium
Compared with older n-gram language models, transformer-based models are better at capturing long-range dependencies primarily because of:
Not quite. Try another option.
Answer: Their use of the self-attention mechanism
Self-attention lets transformers weigh relationships between all tokens in a sequence, capturing long-range context that fixed-window n-gram models cannot.
Question 37 of 60 · Key elements of a good prompt · Medium
Which revision most improves the prompt "Write about dogs" for a specific, useful result?
Not quite. Try another option.
Answer: "Write a 100-word beginner guide on training a puppy to sit"
A good prompt specifies task, audience, format, and length. Adding scope, audience, and length constraints produces a far more targeted and useful response.
Question 38 of 60 · Key elements of a good prompt · Medium
You want an LLM to return output that a program can parse automatically. Which prompt element is most important to include?
Not quite. Try another option.
Answer: A clear specification of the desired output format
Specifying an explicit, structured output format (e.g., JSON with named fields) makes responses predictable and machine-parseable.
Question 39 of 60 · Prompt Patterns · Medium
Providing an LLM with a few input-output examples before the real task, so it infers the pattern, is known as which prompting technique?
Not quite. Try another option.
Answer: Few-shot prompting
Few-shot prompting includes a small number of demonstrations in the prompt so the model can infer the desired behavior without any weight updates.
Question 40 of 60 · Prompt Tuning · Medium
How does prompt tuning differ from full fine-tuning of a language model?
Not quite. Try another option.
Answer: It learns a small set of soft prompt parameters while keeping model weights frozen
Prompt tuning optimizes a small number of continuous prompt embeddings while the large model's weights stay frozen, making it far more parameter-efficient than full fine-tuning.
Question 41 of 60 · GANs · Hard
In a standard GAN, the generator's loss can suffer from vanishing gradients early in training when the discriminator is too strong. Which reformulation of the generator objective was proposed to mitigate this specific issue?
Not quite. Try another option.
Answer: Maximizing (the non-saturating loss)
The original minimax objective saturates when confidently rejects fakes, producing tiny gradients. The non-saturating variant maximizes , giving stronger gradients to the generator early in training.
Question 42 of 60 · Diffusion · Hard
In a Denoising Diffusion Probabilistic Model (DDPM), the forward process adds noise over steps. What does the model actually learn to predict during training in the common parameterization?
Not quite. Try another option.
Answer: The noise that was added at each timestep
The standard DDPM parameterization trains a network to predict the Gaussian noise added at step . The denoising mean is then derived analytically from this predicted noise, simplifying the loss to a noise-prediction MSE.
Question 43 of 60 · LLMs · Hard
A transformer-based LLM uses self-attention with sequence length . Why does doubling the context length roughly quadruple the attention computation cost?
Not quite. Try another option.
Answer: Because the attention matrix has size , so cost scales as
Self-attention computes pairwise scores between all token pairs, forming an matrix. This makes both time and memory scale as , so doubling multiplies cost by about four.
Question 44 of 60 · Prompt Tuning · Hard
Prompt tuning (soft prompts) differs fundamentally from full fine-tuning. Which statement most accurately captures this difference?
Not quite. Try another option.
Answer: Prompt tuning learns continuous embedding vectors while keeping model weights frozen
Soft prompt tuning prepends trainable continuous vectors to the input while leaving the pretrained model weights untouched. Only these small prompt embeddings are optimized, making it highly parameter-efficient compared to full fine-tuning.
Question 45 of 60 · How generative models work · Hard
A variational autoencoder (VAE) optimizes the Evidence Lower Bound (ELBO). The ELBO contains a reconstruction term and a KL-divergence term. What role does the KL term play?
Not quite. Try another option.
Answer: It regularizes the approximate posterior toward the prior over latents
The KL term pushes the encoder's approximate posterior toward the prior (often standard Gaussian). This structures the latent space so sampling from the prior yields coherent generations.
Question 46 of 60 · GANs · Hard
Mode collapse is a well-known GAN failure. Which description best characterizes what mode collapse actually is?
Not quite. Try another option.
Answer: The generator produces limited, repetitive outputs ignoring the data's diversity
Mode collapse occurs when the generator maps many different latent inputs to a few outputs that reliably fool the discriminator, failing to capture the full diversity (modes) of the real data distribution.
Question 47 of 60 · Ethics and Responsible Use of Generative AI · Hard
A company deploys an LLM that occasionally reproduces copyrighted text verbatim from its training data. Which mitigation directly targets this specific risk rather than a different ethical concern?
Not quite. Try another option.
Answer: Applying differential privacy or memorization-reduction techniques during training
Verbatim reproduction stems from memorization of training data. Techniques like differential privacy, deduplication, and memorization audits directly reduce it. Fairness constraints, context length, and temperature address unrelated concerns.
Question 48 of 60 · Key elements of a good prompt · Hard
Consider two prompts for a summarization task. Prompt A says "Summarize this." Prompt B specifies audience, length, format, and tone. From a prompt-engineering standpoint, why does Prompt B typically yield more reliable output?
Not quite. Try another option.
Answer: It constrains the output space by providing explicit context and constraints
Detailed prompts narrow the space of plausible completions by specifying constraints (audience, length, format, tone). This reduces ambiguity, so the model's high-probability outputs align more closely with the user's intent.
Question 49 of 60 · Prompt Patterns · Hard
The "Chain-of-Thought" prompting pattern improves performance on multi-step reasoning tasks. What is the primary mechanism behind this improvement?
Not quite. Try another option.
Answer: It allocates intermediate tokens that let the model decompose reasoning steps
Chain-of-Thought elicits explicit intermediate reasoning tokens. Because the model generates each token conditioned on prior ones, these intermediate steps provide scaffolding that improves accuracy on complex multi-step problems.
Question 50 of 60 · LLMs · Hard
Temperature and top- (nucleus) sampling both control randomness. Setting temperature to a very low value (near 0) has what effect on generation?
Not quite. Try another option.
Answer: It sharpens the distribution, approaching greedy (near-deterministic) decoding
Temperature scales logits before softmax. As temperature approaches 0, the distribution becomes sharply peaked on the highest-probability token, effectively yielding greedy, near-deterministic output.
Question 51 of 60 · Fundamentals of Generative AI · Hard
Which distinction most accurately separates discriminative models from generative models?
Not quite. Try another option.
Answer: Generative models estimate or ; discriminative models estimate
Generative models learn the data distribution ( or the joint ), enabling sampling of new data. Discriminative models learn the conditional for prediction. A generative model can still be used for classification via Bayes' rule.
Question 52 of 60 · Diffusion · Hard
Classifier-free guidance is widely used in text-to-image diffusion models. What does it accomplish?
Not quite. Try another option.
Answer: It interpolates between conditional and unconditional predictions to strengthen prompt adherence
Classifier-free guidance combines the model's conditional and unconditional noise predictions, extrapolating in the direction of the condition. A guidance scale controls how strongly the output adheres to the text prompt, trading diversity for fidelity.
Question 53 of 60 · Overview of language models · Hard
An autoregressive language model factorizes the probability of a sequence. Which factorization does it use?
Not quite. Try another option.
Answer:
Autoregressive models apply the chain rule of probability, factorizing the joint sequence probability as a product of conditionals, each token conditioned on all preceding tokens .
Question 54 of 60 · Industrial applications (content creation, automation) · Hard
A business wants to automate first-draft generation of marketing copy while ensuring factual product claims remain accurate. Which architecture best addresses the accuracy requirement?
Not quite. Try another option.
Answer: Retrieval-Augmented Generation (RAG) grounding output in a verified product database
RAG retrieves verified facts from an external knowledge source and conditions generation on them, reducing hallucinated claims. Larger models or higher temperature do not guarantee factual grounding, and GANs address image synthesis, not text accuracy.
Question 55 of 60 · Prompt Patterns · Hard
The "Persona" prompt pattern instructs the model to adopt a specific role (e.g., "Act as a senior security auditor"). What is the most accurate account of why this can improve outputs?
Not quite. Try another option.
Answer: It conditions generation toward tokens statistically associated with that role's language and expertise
Assigning a persona biases the conditional distribution toward vocabulary, framing, and reasoning patterns associated with that role in training data. It shapes style and focus but does not change weights or grant new data access.
Question 56 of 60 · Ethics and Responsible Use of Generative AI · Hard
A generative model trained on internet data exhibits biased associations between certain professions and genders. Which statement correctly diagnoses the root cause?
Not quite. Try another option.
Answer: The bias reflects statistical patterns present in the training corpus
Generative models learn correlations from their training data. Societal biases embedded in web-scale corpora get absorbed and reproduced. Architecture, temperature, and tokenization can amplify or expose bias but are not its primary source.
Question 57 of 60 · Fundamentals of prompt · Hard
In few-shot prompting, providing in-context examples improves performance without any weight updates. What is the best explanation for this capability?
Not quite. Try another option.
Answer: The model performs in-context learning, inferring the task pattern from the provided examples
Few-shot prompting leverages in-context learning: the model conditions on demonstration examples within the prompt to infer the intended task, adjusting its predictions without any gradient updates or persistent memory.
Question 58 of 60 · Importance of Prompt Engineering · Hard
Two teams achieve very different accuracy on the same reasoning benchmark using the identical model. Which factor from prompt engineering most plausibly explains this gap?
Not quite. Try another option.
Answer: Differences in prompt structure, examples, and instruction clarity
With the same fixed model, output quality depends heavily on how the task is framed. Prompt design choices—structure, demonstrations, clarity, and constraints—can substantially change accuracy, which is why prompt engineering matters.
Question 59 of 60 · GANs · Hard
Wasserstein GAN (WGAN) replaces the original loss with the Earth Mover's distance. Why is this often more stable than the Jensen-Shannon divergence used implicitly in vanilla GANs?
Not quite. Try another option.
Answer: It provides meaningful gradients even when real and generated distributions barely overlap
When distributions have little overlap, JS divergence saturates and gives near-zero gradients. The Wasserstein (Earth Mover's) distance varies smoothly with distribution distance, providing usable gradients and more stable training.
Question 60 of 60 · How generative models work · Hard
Comparing generative approaches: GANs, VAEs, and diffusion models. Which pairing of model with its most characteristic training signal is correct?
GANs train via an adversarial min-max game between generator and discriminator. VAEs maximize the Evidence Lower Bound (ELBO). Diffusion models train by learning to denoise, typically predicting the noise added at each step.
That's unit 5
Answer a few questions and your score shows up here.
Nearly through. Did unit 5 of INT428 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 5 of INT428 save you a night before the exam?
Then you can help keep it free for the next batch. 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.