Top 30 Easy LLMs & Generative AI Concepts Quiz for Beginners
30 easy multiple-choice LLMs & Generative AI concept questions, the vocabulary and first principles, the parts you need before anything else makes sense. They come from 30 bites in the LLMs & Generative AI library, the gentlest slice of the 168 LLMs & Generative AI concept questions in the library. Answer them here or read straight down. Every question carries the correct option, why it is correct, and a link to the bite it came from.
Large language models, chatbots, agents, prompt engineering
30 questions. Pick an answer, or open “Show the answer” to read it.
Answers are graded in your browser. Nothing is saved, and no XP or streak is earned here. The app keeps score.
Question 1 of 30
Which situation best illustrates why a loss function should not be the only measure of a model's real-world effectiveness?
Show the answer
Answer: a · The model achieves a low loss score, but its predictions are biased or provide no practical value to users.
The card explicitly states that a low loss score doesn't guarantee real-world usefulness, as outputs can still be nonsensical, biased, or unhelpful. This highlights that loss functions are for optimization, not the final arbiter of a model's real-world usefulness. Option C describes a scenario where a loss function isn't typically used, rather than a limitation of relying on it as a sole metric when it is applied.
Read the full bite: Loss Function: Quantifying 'How Wrong' a Model Is
Question 2 of 30
What fundamental capability do activation functions primarily provide to neural networks?
Show the answer
Answer: c · They introduce non-linear transformations, allowing the network to model complex, non-linear relationships.
The card emphasizes that activation functions introduce non-linearity, which is crucial for neural networks to learn complex patterns beyond simple linear relationships. Without non-linearity, a multi-layered network would collapse into a single linear model. Other options describe secondary effects or unrelated concepts.
Read the full bite: Activation Functions: Making Neural Networks Nonlinear
Question 3 of 30
Before the softmax function is applied, what does the Transformer's final linear layer directly output?
Show the answer
Answer: c · Raw, un-normalized scores (logits) for each word in the vocabulary.
The linear layer's specific function is to convert the decoder's abstract vector into raw, un-normalized scores (logits) for every word. The softmax function then takes these logits and transforms them into a probability distribution, not the linear layer itself.
Read the full bite: Transformer: The Final Linear and Softmax Layers
Question 4 of 30
For which task would a Causal Language Model be the most suitable choice?
Show the answer
Answer: c · Extending a partial sentence into a complete, coherent paragraph
Causal Language Models are designed for open-ended text generation, predicting the next word based only on preceding words, making them ideal for continuing or extending text. Tasks like sentiment analysis, information extraction, or summarization typically require understanding the entire input, which is a limitation for CLMs.
Read the full bite: Causal Language Modeling: The Autocomplete Engine
Question 5 of 30
For what primary purpose is Common Crawl most effectively utilized?
Show the answer
Answer: b · Offering a massive, raw corpus of web content for large-scale research and model training.
The card states Common Crawl is "the raw material for training many LLMs and for academic research on web-scale data" and is ideal for projects that "can handle the scale and messiness of raw web data." It explicitly notes it is "not a search engine" and is "famously noisy," requiring extensive cleaning, making options A, B, and D incorrect.
Read the full bite: Common Crawl: A Free Snapshot of the Entire Web
Question 6 of 30
Which scenario most clearly demonstrates the value of prompt engineering?
Show the answer
Answer: b · Generating a consistent series of structured product descriptions for an e-commerce platform.
Prompt engineering is essential for tasks requiring reliable, repeatable, and specific outputs, such as generating consistent content for an application. Casual brainstorming or one-off requests do not typically require the detailed guidance that prompt engineering provides.
Read the full bite: Prompt Engineering: Guiding LLMs to Better Answers
Question 7 of 30
When is zero-shot prompting the most appropriate technique to use?
Show the answer
Answer: d · When performing a simple sentiment analysis on a product review.
Zero-shot prompting is ideal for simple, common tasks like sentiment analysis that leverage the model's pre-existing knowledge without needing examples. Tasks requiring new, specific formatting rules (option A) are generally too novel for zero-shot and would likely require examples.
Question 8 of 30
What is the primary objective of Supervised Fine-Tuning (SFT) for a pre-trained base Large Language Model (LLM)?
Show the answer
Answer: c · To adapt the model to follow instructions and engage in helpful, conversational interactions.
The card explains that SFT exists to transform a knowledgeable but unhelpful base model into a 'helpful, instruction-following assistant' by teaching it conversational skills. It explicitly states that SFT is not for teaching new domain-specific knowledge.
Read the full bite: Supervised Fine-Tuning (SFT): Teaching a Model to Chat
Question 9 of 30
What is the fundamental reason catastrophic forgetting occurs in neural networks?
Show the answer
Answer: a · The model's internal parameters, optimized for new tasks, overwrite the configurations essential for previous knowledge.
The card explains that catastrophic forgetting happens because neural networks adjust shared internal parameters (weights) to optimize for new tasks, which inadvertently overwrites the configurations vital for previously learned information. It is not due to a fixed memory capacity, but rather the process of parameter adjustment.
Read the full bite: Catastrophic Forgetting: The AI's Amnesia Problem
Question 10 of 30
What is the primary advantage of using an embedding model for document retrieval in a RAG system?
Show the answer
Answer: b · It efficiently identifies documents that are semantically similar to the user's query.
The card explains that embedding models convert text into vectors where similar meanings are close, allowing the system to find documents that are semantically similar to a query. Option D describes keyword matching, which the card states embedding models are not ideal for. Options C and D describe functions of the LLM or data storage, not the embedding model's primary role.
Read the full bite: Embedding Models: The 'Retrieval' in RAG
Question 11 of 30
Which scenario best illustrates a problem an LLM Agent is designed to solve?
Show the answer
Answer: a · Analyzing real-time stock market data, identifying trends, and generating a predictive report.
An LLM Agent excels at complex, multi-step problems requiring dynamic interaction with external tools and data, like analyzing real-time information and generating a report. Option D describes a RAG system, which the card explicitly states is not an agent because it lacks planning and dynamic tool use.
Read the full bite: LLM Agents: Giving Models Tools and a Plan
Question 12 of 30
What is the fundamental mechanism generative inpainting uses to fill masked areas in an image?
Show the answer
Answer: a · It analyzes surrounding context to generate entirely new, semantically consistent pixels.
Generative inpainting's core mechanism is to generate entirely new, semantically consistent pixels based on the surrounding image context, rather than just cloning or averaging existing pixels. It does not recover original data, as it fabricates new content.
Read the full bite: Generative Inpainting: Filling in the Blanks with AI
Question 13 of 30
Which task is generally least appropriate for a multimodal model?
Show the answer
Answer: b · Condensing a lengthy written article into a brief summary
The card states that for tasks confined to a single data type, like text summarization, a specialized single-modality model is more efficient and a multimodal approach is overkill. The other options (text-to-image, visual question answering, cross-modal retrieval) are all examples explicitly given where multimodal models excel due to their ability to connect different data types.
Question 14 of 30
What is the fundamental purpose of Speech-to-Text (ASR) technology?
Show the answer
Answer: c · To bridge the gap between human speech and machine-readable text.
The card explicitly states that ASR "was created to bridge this gap" between natural human speech and the text/data computers operate on. While ASR provides the input for understanding, it does not inherently interpret the meaning of conversations (Option D), nor is it error-free (Option A). Option B describes Text-to-Speech, a different technology.
Read the full bite: Speech-to-Text (ASR): Turning Spoken Words into Data
Question 15 of 30
For which scenario is human evaluation most appropriate when assessing an AI model's performance?
Show the answer
Answer: c · To establish a "ground truth" for subjective qualities like coherence and relevance.
The card emphasizes that human evaluation is crucial for capturing subjective qualities like coherence and relevance, which automated metrics cannot accurately measure, thus providing a "ground truth." Other options describe scenarios where human evaluation is explicitly stated as impractical due to its cost and lack of scalability.
Read the full bite: Human Evaluation: Judging AI When Metrics Aren't Enough
Question 16 of 30
What core problem does AI alignment primarily aim to solve in advanced AI systems?
Show the answer
Answer: a · Bridging the gap between an AI's literal objectives and human intended values.
AI alignment focuses on ensuring an AI pursues human intended goals, not just its literal instructions, as illustrated by the sorcerer's apprentice and paperclip maximizer examples. Option B is a common misconception; an unaligned AI can cause harm without malicious intent, simply by pursuing a literal goal without broader human context.
Question 17 of 30
What is the primary benefit of consulting a model card before integrating a pre-trained AI model?
Show the answer
Answer: c · It provides a clear, standardized overview of the model's characteristics, enabling informed and responsible application.
The card states model cards provide transparent documentation on a model's characteristics, intended uses, and limitations, promoting responsible and informed AI development. It does not guarantee optimal performance, automate adaptation, or certify freedom from biases, but rather details potential biases and limitations.
Read the full bite: Model Cards: The 'Nutrition Label' for AI Models
Question 18 of 30
What is the primary mechanism by which KV Cache accelerates large language model (LLM) text generation?
Show the answer
Answer: d · It stores the Key and Value vectors of previously generated tokens, preventing their recomputation in subsequent steps.
KV Cache speeds up generation by storing the Key and Value vectors of past tokens, so the model doesn't have to recompute them for every new token. Option B is incorrect because KV Cache focuses on storing K and V vectors of *past* tokens, not pre-computing Q vectors for all tokens.
Read the full bite: KV Cache: Don't Recompute, Just Remember
Question 19 of 30
What architectural choice primarily allows a TPU to exceed GPUs in inference performance per watt for neural networks?
Show the answer
Answer: d · It replaces graphics hardware with a systolic array tuned for low-precision tensor operations
The TPU achieves higher efficiency by stripping out graphics circuitry and using a systolic array for low-precision tensor math. A is tempting because GPUs rely on flexible parallel units, but the TPU specifically trades that flexibility to maximize matrix-math throughput per watt.
Question 20 of 30
What is the primary reason generative AI models often reproduce societal biases?
Show the answer
Answer: b · The vast datasets used for training inherently contain human biases and stereotypes.
The card explains that generative AI learns patterns from its training data, and if this data reflects existing human biases and stereotypes, the AI will reproduce them. It explicitly states the AI is not malicious or designed to be biased, but rather a mirror of its input data. Insufficient computational resources are not cited as the cause of bias.
Question 21 of 30
What is the core technological characteristic that defines a deepfake?
Show the answer
Answer: d · It relies on advanced artificial intelligence, such as neural networks, to generate or alter realistic human appearances and voices.
The card explicitly states that deepfakes are "AI-generated media impersonations" and that their creation "typically uses neural networks" to synthesize or modify human likenesses. While deepfakes can be used maliciously, they also have legitimate applications, and they automate processes that would otherwise require tedious manual editing.
Read the full bite: Deepfakes: AI-Generated Media Impersonations
Question 22 of 30
What is the primary purpose of AI governance?
Show the answer
Answer: c · To ensure AI systems are developed and used in alignment with human values and safety.
The card states AI governance exists to "manage these risks proactively, ensuring that AI development is aligned with human values" and to "guide AI's development and use toward beneficial outcomes while preventing harm." Option C directly captures this core purpose. Option D is a tempting distractor because legal aspects are part of governance, but the card emphasizes broader ethical and societal alignment, not just corporate protection.
Read the full bite: AI Governance: Rules for Building Intelligent Systems
Question 23 of 30
What is the primary role of the Hugging Face Hub in the machine learning community?
Show the answer
Answer: c · To centralize and standardize the sharing, versioning, and collaboration of machine learning models, datasets, and demo applications.
The card states the Hub was created to "provide a central, standardized, and version-controlled platform for the entire ML community to share and build upon each other's work," encompassing models, datasets, and Spaces (demo apps). Option D is incorrect because the card explicitly mentions it is "not a full MLOps platform for managing training infrastructure."
Read the full bite: Hugging Face Hub: The GitHub for Machine Learning
Question 24 of 30
What is the primary role of the OpenAI API in the context of AI development?
Show the answer
Answer: a · To enable developers to integrate powerful, pre-trained AI models into their own applications.
The card describes the OpenAI API as the "gateway" for the industry to "leverage these models for research and commercial applications." This means its primary function is to allow developers to integrate existing foundational models into their own projects, not to develop new models (which is OpenAI's organizational role) or serve as a public-facing tool.
Read the full bite: The OpenAI API: Access to Foundational AI Models
Question 25 of 30
What is the main purpose of applying prompt engineering techniques when interacting with an AI?
Show the answer
Answer: b · B) To guide the AI with detailed instructions for specific, predictable outputs.
Option B correctly identifies the core purpose of prompt engineering: to structure requests for specific and predictable AI responses. Option D is a common misconception and explicitly stated as a mistake in the card, as effective prompts require more than simple questions.
Read the full bite: Prompt Engineering: Steering AI with Words
Question 26 of 30
What is the primary goal of prompt engineering, as described in the card?
Show the answer
Answer: b · B. To ensure the AI consistently produces output in a specific format, style, or tone.
The card states prompt engineering's goal is to guide AI to specific outputs, including consistent formats and styles. Teaching new domains (A) is fine-tuning, managing external data (C) is Context Engineering, and simple keywords (D) are explicitly discouraged.
Question 27 of 30
In which scenario would using the softmax function as the output layer activation be inappropriate?
Show the answer
Answer: c · C. A model assigning multiple relevant tags to a document, such as 'sports' and 'local news'.
The card explicitly states that softmax is not suitable for 'Multi-label Classification' where an input can belong to multiple classes simultaneously, recommending a sigmoid function instead. Options A, B, and D are all examples of multi-class classification, which is the primary use case for softmax.
Read the full bite: Softmax Function: Turning Scores into Probabilities
Question 28 of 30
What is the core distinction between AI hallucination and a human perceptual error?
Show the answer
Answer: b · AI hallucination is the confident invention of plausible facts to fill knowledge gaps, distinct from human misinterpretation of sensory input.
AI hallucination is described as 'confabulation'—the model invents plausible-sounding details when it lacks direct data, a byproduct of its generative design. This differs from human perceptual errors, which involve misinterpreting existing sensory information. Option A is incorrect because AI does not 'intend' to mislead; it's a functional outcome, not a deliberate act.
Read the full bite: AI Hallucination: Confabulation, Not Perception
Question 29 of 30
What is the key characteristic that differentiates cosine similarity from Euclidean distance when comparing two vectors?
Show the answer
Answer: b · B. It measures the angle between vectors, focusing on their directional alignment rather than their length.
The card explicitly states that cosine similarity measures the 'direction' of two vectors, ignoring their magnitude or length, which is precisely what option B describes. Option D describes Euclidean distance, which is the common misconception the card warns against, as cosine similarity does not measure the physical distance between vector endpoints.
Read the full bite: Cosine Similarity: Measuring Direction, Not Distance
Question 30 of 30
How does Byte Pair Encoding (BPE) primarily help Large Language Models (LLMs) process text effectively?
Show the answer
Answer: a · It creates a fixed vocabulary of sub-word units, enabling the model to represent and understand rare or unseen words.
Option A is correct because BPE builds a fixed vocabulary of common sub-word units, allowing LLMs to represent and understand words they haven't explicitly seen by breaking them down into these known components. Option B is incorrect as BPE's vocabulary is fixed after training and does not dynamically generate new tokens for every unique word.
Read the full bite: Byte Pair Encoding: Compressing Text for LLMs
Could you explain these out loud?
That is what an interview actually tests. Tezvyn gives you questions like these with what the interviewer is really checking, the answer that lands, and the mistake that ends the conversation, in the four minutes before your next meeting.
The iPhone app is on the way
We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.
Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.