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.
Question 1 of 60 · Define Large Language Models (LLMs) · Easy
What is a Large Language Model (LLM)?
Not quite. Try another option.
Answer: A type of AI model trained on vast amounts of text data to understand and generate human language
LLMs are AI models trained on massive text datasets, enabling them to understand and generate natural language.
Question 2 of 60 · Define Large Language Models (LLMs) · Easy
The word "Large" in Large Language Model mainly refers to which characteristic?
Not quite. Try another option.
Answer: The huge number of parameters and training data used
"Large" refers to the enormous number of parameters and the vast amount of training data these models use.
Question 3 of 60 · Define Large Language Models (LLMs) · Easy
Which architecture is most commonly used as the foundation for modern LLMs?
Not quite. Try another option.
Answer: Transformer architecture
Most modern LLMs, such as GPT and BERT, are built on the Transformer architecture, which relies on attention mechanisms.
Question 4 of 60 · Define Large Language Models (LLMs) · Easy
What is a token in the context of LLMs?
Not quite. Try another option.
Answer: A small unit of text such as a word or part of a word
LLMs break text into tokens, which are small units like words or subwords, before processing them.
Question 5 of 60 · Define Large Language Models (LLMs) · Easy
What does an LLM primarily learn to predict during training?
Not quite. Try another option.
Answer: The next token in a sequence of text
Many LLMs are trained to predict the next token given previous tokens, which helps them generate coherent text.
Question 6 of 60 · Define Large Language Models (LLMs) · Easy
Which of the following is an example of a Large Language Model?
Not quite. Try another option.
Answer: GPT
GPT (Generative Pre-trained Transformer) is a well-known example of a Large Language Model.
Question 7 of 60 · Describe LLM Use Cases · Easy
Which of the following is a common use case for LLMs?
Not quite. Try another option.
Answer: Text summarization
Text summarization is a popular LLM use case, where long documents are condensed into shorter summaries.
Question 8 of 60 · Describe LLM Use Cases · Easy
An LLM that answers customer questions automatically is being used as a:
Not quite. Try another option.
Answer: Chatbot
Chatbots use LLMs to understand user questions and generate helpful, conversational responses.
Question 9 of 60 · Describe LLM Use Cases · Easy
Which task involves an LLM converting text from one language to another?
Not quite. Try another option.
Answer: Machine translation
Machine translation uses LLMs to translate text between different languages while preserving meaning.
Question 10 of 60 · Describe LLM Use Cases · Easy
Generating computer code from a natural language description is known as:
Not quite. Try another option.
Answer: Code generation
Code generation is an LLM use case where the model writes programming code based on plain-language instructions.
Question 11 of 60 · Describe LLM Use Cases · Easy
Analyzing whether a product review is positive or negative is an example of:
Not quite. Try another option.
Answer: Sentiment analysis
Sentiment analysis uses LLMs to detect the emotional tone or opinion expressed in text.
Question 12 of 60 · Describe LLM Use Cases · Easy
Which of the following is NOT a typical use case for an LLM?
Not quite. Try another option.
Answer: Physically repairing a broken keyboard
LLMs work with text and language; they cannot perform physical repairs on hardware.
Question 13 of 60 · Explain Prompt Tuning · Easy
What is the main goal of prompt tuning?
Not quite. Try another option.
Answer: To improve model outputs by optimizing the prompt given to the model
Prompt tuning improves an LLM's performance on a task by carefully crafting or optimizing the prompt it receives.
Question 14 of 60 · Explain Prompt Tuning · Easy
In LLMs, a prompt refers to:
Not quite. Try another option.
Answer: The input text or instruction given to the model
A prompt is the input or instruction provided to an LLM to guide the response it generates.
Question 15 of 60 · Explain Prompt Tuning · Easy
How does prompt tuning differ from full model fine-tuning?
Not quite. Try another option.
Answer: It adjusts the prompt without changing all the model's weights
Prompt tuning optimizes the input prompt and typically leaves most model weights unchanged, unlike full fine-tuning.
Question 16 of 60 · Explain Prompt Tuning · Easy
Giving an LLM a few examples inside the prompt to guide its answer is called:
Not quite. Try another option.
Answer: Few-shot prompting
Few-shot prompting includes a few examples within the prompt to help the model understand the desired output.
Question 17 of 60 · Explain Prompt Tuning · Easy
A key benefit of prompt tuning is that it:
Not quite. Try another option.
Answer: Adapts a model to a task with relatively little computation
Prompt tuning is efficient because it adapts a model to a task without the heavy cost of retraining all parameters.
Question 18 of 60 · Describe Google's Gen AI Development tools · Easy
Which Google platform provides tools for building and deploying generative AI applications on Google Cloud?
Not quite. Try another option.
Answer: Vertex AI
Vertex AI is Google Cloud's machine learning platform used to build, train, and deploy generative AI models.
Question 19 of 60 · Describe Google's Gen AI Development tools · Easy
What is the name of Google's family of large language models?
Not quite. Try another option.
Answer: Gemini
Gemini is Google's family of multimodal large language models used across its Gen AI products.
Question 20 of 60 · Describe Google's Gen AI Development tools · Easy
Which Google tool lets developers quickly prototype prompts and test Gemini models?
Not quite. Try another option.
Answer: Google AI Studio
Google AI Studio is a web-based tool for quickly prototyping and testing prompts with Gemini models.
Question 21 of 60 · Define Large Language Models (LLMs) · Medium
A team notices that their LLM can perform a translation task it was never explicitly trained on, simply by being shown a few examples in the prompt. Which characteristic of LLMs does this demonstrate?
Not quite. Try another option.
Answer: In-context learning
In-context learning allows an LLM to adapt to a new task from examples given in the prompt, without any weight updates or retraining.
Question 22 of 60 · Define Large Language Models (LLMs) · Medium
Why are modern LLMs described as "foundation models" rather than task-specific models?
Not quite. Try another option.
Answer: They are pretrained broadly and can be adapted to many downstream tasks
Foundation models learn general patterns from large corpora and serve as a base that can be adapted (via tuning or prompting) to numerous specific tasks.
Question 23 of 60 · Define Large Language Models (LLMs) · Medium
Which architecture is the primary foundation of most contemporary LLMs, enabling them to weigh the relevance of different words in a sequence?
Not quite. Try another option.
Answer: The Transformer with self-attention
Transformers use self-attention to model relationships between all tokens in a sequence in parallel, which is key to LLM scalability and performance.
Question 24 of 60 · Define Large Language Models (LLMs) · Medium
An LLM is asked to complete the sentence "The capital of France is ___". Fundamentally, what is the model doing to produce the answer?
Not quite. Try another option.
Answer: Predicting the most probable next token given the context
LLMs generate text by predicting the next token based on learned probability distributions; factual answers emerge from patterns in training data, not live lookups.
Question 25 of 60 · Define Large Language Models (LLMs) · Medium
The term "large" in Large Language Models most directly refers to which two factors?
Not quite. Try another option.
Answer: The number of parameters and the size of the training data
"Large" describes the vast number of trainable parameters (often billions) combined with training on massive text datasets.
Question 26 of 60 · Define Large Language Models (LLMs) · Medium
Which phenomenon describes an LLM producing fluent but factually incorrect or fabricated information?
Not quite. Try another option.
Answer: Hallucination
Hallucination occurs when an LLM generates plausible-sounding content that is not grounded in facts or the provided context.
Question 27 of 60 · Describe LLM Use Cases · Medium
A company wants to automatically condense long legal documents into short overviews for busy executives. Which LLM use case fits this need?
Not quite. Try another option.
Answer: Text summarization
Summarization uses an LLM to reduce lengthy text into concise overviews while preserving key information.
Question 28 of 60 · Describe LLM Use Cases · Medium
An online retailer wants to route customer emails automatically as "complaint", "inquiry", or "feedback". Which LLM use case is most appropriate?
Not quite. Try another option.
Answer: Text classification
Assigning predefined category labels to text is a classification task, which LLMs can perform effectively.
Question 29 of 60 · Describe LLM Use Cases · Medium
A developer uses an LLM-powered tool that suggests function implementations as they type. Which use case does this represent?
Not quite. Try another option.
Answer: Code generation and completion
LLMs trained on code can autocomplete or generate code snippets, assisting developers directly in their editor.
Question 30 of 60 · Describe LLM Use Cases · Medium
A support team wants an LLM to answer questions using their internal knowledge base so responses stay accurate and up to date. Which approach best addresses this?
Not quite. Try another option.
Answer: Retrieval-Augmented Generation (RAG)
RAG retrieves relevant documents from an external source and supplies them to the LLM, grounding answers in current, domain-specific data.
Question 31 of 60 · Describe LLM Use Cases · Medium
Which scenario is generally the LEAST suitable standalone use case for an LLM without additional tools?
Not quite. Try another option.
Answer: Guaranteeing precise real-time stock prices from memory
LLMs rely on training data and cannot reliably provide live, precise numeric data without external tools or retrieval integration.
Question 32 of 60 · Describe LLM Use Cases · Medium
A media firm wants to convert English articles into Spanish and French for global readers. Which LLM use case applies?
Not quite. Try another option.
Answer: Machine translation
Converting text from one language to another is machine translation, a core capability of multilingual LLMs.
Question 33 of 60 · Explain Prompt Tuning · Medium
How does prompt tuning primarily differ from full fine-tuning of an LLM?
Not quite. Try another option.
Answer: It learns soft prompt vectors while keeping the base model weights frozen
Prompt tuning optimizes a small set of learnable prompt embeddings while the large base model remains frozen, making it parameter-efficient.
Question 34 of 60 · Explain Prompt Tuning · Medium
A team has a very large model and limited GPU memory. Why might prompt tuning be preferred over full fine-tuning?
Not quite. Try another option.
Answer: It updates far fewer parameters, reducing compute and storage needs
Because only the prompt embeddings are trained, prompt tuning is lightweight and efficient compared to updating all model weights.
Question 35 of 60 · Explain Prompt Tuning · Medium
In prompt tuning, what are "soft prompts"?
Not quite. Try another option.
Answer: Learnable continuous embeddings prepended to the input
Soft prompts are trainable vectors in embedding space, not human-readable words, that are optimized during prompt tuning.
Question 36 of 60 · Explain Prompt Tuning · Medium
Which statement best contrasts prompt engineering with prompt tuning?
Not quite. Try another option.
Answer: Prompt engineering crafts text manually; prompt tuning learns embeddings through training
Prompt engineering is manual design of natural-language prompts, while prompt tuning trains continuous prompt vectors via gradient-based optimization.
Question 37 of 60 · Explain Prompt Tuning · Medium
Prompt tuning is best categorized as which type of technique?
Not quite. Try another option.
Answer: Parameter-efficient fine-tuning (PEFT)
Prompt tuning belongs to the PEFT family, which adapts models by training only a small number of additional parameters.
Question 38 of 60 · Describe Google's Gen AI Development tools · Medium
A developer wants a unified Google Cloud platform to build, tune, and deploy generative AI models with access to foundation models. Which tool should they use?
Not quite. Try another option.
Answer: Vertex AI
Vertex AI is Google Cloud's unified ML platform offering foundation models, tuning, and deployment for generative AI applications.
Question 39 of 60 · Describe Google's Gen AI Development tools · Medium
Within Vertex AI, which environment lets developers quickly test prompts and compare model responses before writing production code?
Not quite. Try another option.
Answer: Generative AI Studio
Generative AI Studio provides an interactive interface to design, test, and iterate on prompts against Google's foundation models.
Question 40 of 60 · Describe Google's Gen AI Development tools · Medium
A team wants to integrate Google's Gemini models into their app using a simple developer API and lightweight SDK. Which offering is designed for this?
Not quite. Try another option.
Answer: Google AI Studio / Gemini API
Google AI Studio and the Gemini API give developers straightforward access to Gemini models for building generative AI features.
Question 41 of 60 · Define Large Language Models (LLMs) · Hard
A researcher observes that a decoder-only transformer LLM shows improved sample efficiency and emergent few-shot capabilities only after crossing a certain parameter count. Which principle best explains why simply increasing depth without scaling data and compute proportionally often fails to produce these gains?
Not quite. Try another option.
Answer: The Chinchilla scaling laws indicate that compute-optimal models require data and parameters to scale together, so under-training a large model wastes capacity
Chinchilla scaling laws show that for a fixed compute budget, models and training tokens should scale in tandem. A large model trained on too little data is under-trained and cannot realize its capacity, so proportional scaling of data and compute is required.
Question 42 of 60 · Define Large Language Models (LLMs) · Hard
In an autoregressive LLM, the training objective maximizes . Which consequence of this factorization most directly explains why such models can suffer from exposure bias at inference?
Not quite. Try another option.
Answer: During training the model always conditions on ground-truth prior tokens, but at inference it conditions on its own (possibly erroneous) predictions
Teacher forcing conditions on true prior tokens during training, but at inference the model must condition on its own generated tokens. Early errors compound, a mismatch known as exposure bias.
Question 43 of 60 · Define Large Language Models (LLMs) · Hard
Two LLMs have identical architectures and parameter counts, but Model A uses a byte-pair encoding (BPE) tokenizer with a 32k vocabulary while Model B uses a 256k vocabulary. Which trade-off is most accurately attributed to Model B?
Not quite. Try another option.
Answer: Shorter sequences per document and a larger embedding/softmax matrix, increasing memory but potentially improving context efficiency
A larger vocabulary encodes text in fewer tokens (shorter sequences), improving context window utilization, but enlarges the embedding and output projection matrices, raising memory and parameter cost in those layers.
Question 44 of 60 · Define Large Language Models (LLMs) · Hard
An LLM's self-attention has time complexity for sequence length and hidden dimension . A team wants to process documents 4× longer without a 16× compute blowup. Which approach fundamentally changes the complexity class rather than just optimizing constants?
Not quite. Try another option.
Answer: Sparse or linear attention that reduces complexity toward or
Mixed precision and batching optimize constants but keep the quadratic term. Sparse/linear attention mechanisms alter the asymptotic complexity, which is what avoids the quadratic blowup with longer sequences.
Question 45 of 60 · Define Large Language Models (LLMs) · Hard
Why do LLMs using absolute learned positional embeddings often generalize poorly to sequences longer than those seen during training, whereas rotary (RoPE) or relative embeddings handle length extrapolation better?
Not quite. Try another option.
Answer: Learned absolute positions have no defined values beyond the trained range, while relative/rotary schemes encode positional relationships that extend continuously
Learned absolute embeddings are only defined for trained positions, so positions beyond that range are undefined. Rotary/relative schemes encode relative offsets via continuous functions, enabling smoother extrapolation to longer sequences.
Question 46 of 60 · Describe LLM Use Cases · Hard
An enterprise deploys an LLM for retrieval-augmented generation (RAG) over proprietary documents. Users report the model still fabricates facts even with correct passages retrieved. Which root cause is the most likely and directly addressable within the RAG pipeline?
Not quite. Try another option.
Answer: The prompt does not sufficiently constrain the model to ground answers in retrieved context, allowing parametric knowledge to override it
Even with correct retrieval, if the prompt does not instruct the model to answer strictly from the provided context (and abstain otherwise), the model's parametric knowledge can dominate, causing fabrication. Grounding instructions and citation constraints mitigate this.
Question 47 of 60 · Describe LLM Use Cases · Hard
A company must choose between fine-tuning an LLM on 500 labeled examples versus using few-shot in-context learning for a specialized classification task. Which consideration most strongly favors fine-tuning in this scenario?
Not quite. Try another option.
Answer: The task must run at high volume with low per-request latency and token cost, and the domain style is consistent
Fine-tuning removes the need to send exemplars in every prompt, reducing per-request tokens and latency at scale, and works well when the task is stable. Volatile requirements or lack of training infrastructure favor in-context learning instead.
Question 48 of 60 · Describe LLM Use Cases · Hard
For a code-generation assistant, engineers notice that increasing the sampling temperature from to raises the diversity of solutions but lowers pass rates on unit tests. Which use-case-driven configuration best balances correctness with exploring alternatives?
Not quite. Try another option.
Answer: Sample multiple candidates at moderate temperature and re-rank by test execution (best-of-)
Best-of- sampling generates several diverse candidates and selects the one that passes tests, combining exploration with a correctness filter. Fixed temperature removes diversity, and extreme temperature degrades quality.
Question 49 of 60 · Describe LLM Use Cases · Hard
A summarization pipeline processes documents far longer than the model's context window. Which strategy preserves global coherence better than naive independent chunk summarization?
Not quite. Try another option.
Answer: Hierarchical (map-reduce) summarization that summarizes chunks then summarizes the summaries
Independent chunk summaries lose cross-chunk relationships. Hierarchical map-reduce first summarizes each chunk, then combines those summaries, preserving global structure and coherence across the full document.
Question 50 of 60 · Describe LLM Use Cases · Hard
An LLM-powered agent chains tool calls (search, calculator, database). Reliability drops sharply as the number of sequential steps grows. If each step succeeds independently with probability , what is the approximate end-to-end success probability over 5 steps, and what does this imply?
Not quite. Try another option.
Answer: About , implying step-level reliability must be very high or errors must be caught and retried per step
Independent success gives . Reliability compounds multiplicatively, so long tool chains demand high per-step reliability plus validation/retry mechanisms to remain robust.
Question 51 of 60 · Explain Prompt Tuning · Hard
In soft prompt tuning, a set of continuous embedding vectors is prepended to the input and optimized while the base model weights stay frozen. Which statement most accurately distinguishes this from discrete prompt engineering?
Not quite. Try another option.
Answer: Soft prompts are learned vectors in embedding space that need not correspond to any real tokens, optimized via gradient descent
Prompt tuning learns continuous embedding vectors (soft prompts) directly in embedding space via gradients, without changing base weights. They need not map to actual vocabulary tokens, unlike hand-crafted discrete prompts.
Question 52 of 60 · Explain Prompt Tuning · Hard
Research shows prompt tuning becomes competitive with full fine-tuning primarily as model scale increases. Which explanation best accounts for this scale-dependent effectiveness?
Not quite. Try another option.
Answer: Larger models have richer, more general representations that a small set of tunable prompt vectors can steer effectively
At scale, models encode more general and flexible representations, so a small number of soft prompt vectors can guide behavior nearly as well as updating all weights, closing the gap with full fine-tuning.
Question 53 of 60 · Explain Prompt Tuning · Hard
A team compares prompt tuning, prefix tuning, and LoRA for adapting one base model to many tasks. Which property is shared by all three as parameter-efficient fine-tuning (PEFT) methods?
Not quite. Try another option.
Answer: They keep the large base model weights frozen and train only a small set of additional parameters per task
All three are PEFT methods: the base model stays frozen and only a small task-specific parameter set (prompt embeddings, prefix vectors, or low-rank matrices) is trained, enabling efficient multi-task adaptation from one shared model.
Question 54 of 60 · Explain Prompt Tuning · Hard
If a soft prompt of length tokens is prepended to an input of length , how does this affect the self-attention cost during a forward pass, and why is it still efficient overall?
Not quite. Try another option.
Answer: Attention scales with , but since typically and no weights update, the added cost and storage are small
Soft prompts extend the sequence, so attention scales with . Because is small relative to and only the prompt vectors are stored/trained, the overhead in compute and storage is minimal.
Question 55 of 60 · Explain Prompt Tuning · Hard
A practitioner finds their prompt-tuned model performs well in-distribution but degrades sharply on inputs stylistically different from training data. Which limitation of prompt tuning best explains this brittleness?
Not quite. Try another option.
Answer: Soft prompts steer a frozen model narrowly toward the training distribution and cannot alter the model's underlying knowledge or robustness
Because the base model is frozen, soft prompts only nudge behavior within the model's existing capabilities and tend to specialize to the training distribution, offering limited robustness to out-of-distribution or stylistically different inputs.
Question 56 of 60 · Describe Google's Gen AI Development tools · Hard
A developer needs to build, tune, and deploy generative models with managed infrastructure, MLOps, and access to foundation models like Gemini. Which Google offering is the most appropriate end-to-end platform?
Not quite. Try another option.
Answer: Vertex AI, which provides Model Garden, tuning, pipelines, and deployment for foundation and custom models
Vertex AI is Google's unified ML platform offering Model Garden, tuning, pipelines, and managed deployment, including access to foundation models such as Gemini, making it the appropriate end-to-end choice.
Question 57 of 60 · Describe Google's Gen AI Development tools · Hard
A team wants to rapidly prototype and iterate on prompts for Gemini, test parameters like temperature, and then export code to integrate into an application. Which Google tool is designed for this prompt-iteration workflow?
Not quite. Try another option.
Answer: Google AI Studio, a browser-based environment for prompt design, tuning parameters, and exporting integration code
Google AI Studio provides a web-based interface for designing and testing prompts against Gemini, adjusting parameters, and exporting code (e.g., via the API) for application integration.
Question 58 of 60 · Describe Google's Gen AI Development tools · Hard
An enterprise on Vertex AI wants to ground Gemini responses in its own frequently-updated document corpus without retraining the model each time. Which capability most directly supports this requirement?
Not quite. Try another option.
Answer: Grounding with retrieval (e.g., Vertex AI Search / RAG) that injects relevant retrieved context at inference time
Retrieval-based grounding fetches relevant, up-to-date passages from the corpus and supplies them to the model at inference, keeping responses current without retraining and reducing hallucination.
Question 59 of 60 · Describe Google's Gen AI Development tools · Hard
When adapting a Gemini model on Vertex AI with limited labeled data and constrained budget, which tuning approach aligns with parameter-efficient adaptation rather than full fine-tuning?
Not quite. Try another option.
Answer: Supervised tuning using parameter-efficient techniques (e.g., adapter/LoRA-style) that update few parameters on the managed platform
Vertex AI offers managed supervised tuning that uses parameter-efficient methods, updating only a small set of parameters. This suits limited data and budget far better than pretraining or full fine-tuning.
Question 60 of 60 · Describe Google's Gen AI Development tools · Hard
A regulated organization must call Gemini from production code with governance controls: IAM permissions, VPC service controls, audit logging, and data residency. Which access path best satisfies these enterprise requirements?
Not quite. Try another option.
Answer: The Vertex AI Gemini API within Google Cloud, which integrates IAM, VPC-SC, audit logs, and regional controls
The Vertex AI Gemini API operates inside Google Cloud's governance framework, supporting IAM, VPC Service Controls, audit logging, and data residency, meeting enterprise and regulatory requirements that consumer or informal access cannot.
That's unit 2
Answer a few questions and your score shows up here.
Nearly through. Did unit 2 of CSG202 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 2 of CSG202 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.