Skip to content
tezvyn:

Top 30 Advanced LLMs & Generative AI Concepts Quiz

30 advanced multiple-choice LLMs & Generative AI concept questions, the corners that separate having used it from understanding it: internals, edge cases, and the reasons behind the design. They come from 30 bites in the LLMs & Generative AI library, the hardest 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.

  1. Question 1 of 30

    What is the most significant consequence of the vanishing gradient problem in deep neural networks?

    Show the answer

    Answer: b · Early layers of the network fail to learn effective features from the input data.

    The card states that vanishing gradients cause 'the gradients for the earliest layers become so small they effectively vanish, and those layers stop learning,' meaning they cannot learn effective features. Option D is incorrect because vanishing gradients lead to a failure to learn, not typically overfitting. Options C and D are general problems but not the specific, direct consequence on the learning of early layers.

    Read the full bite: The Vanishing Gradient Problem

  2. Question 2 of 30

    For which scenario would an LSTM be preferred over a traditional RNN?

    Show the answer

    Answer: c · Tasks requiring memory of context from distant points in a long sequence.

    LSTMs are specifically designed to overcome the vanishing gradient problem in traditional RNNs, enabling them to maintain and utilize information from far back in a sequence. For short-term dependencies, a simpler RNN might be more efficient, and for large-scale parallel tasks, Transformers are often preferred.

    Read the full bite: LSTMs: Giving Neural Networks a Longer Memory

  3. Question 3 of 30

    What is the primary limitation of a basic Seq2Seq model when dealing with very long input sequences?

    Show the answer

    Answer: a · The fixed-size context vector acts as an information bottleneck, leading to the forgetting of early input details.

    The card states that the "primary weakness of basic Seq2Seq is its reliance on a single, fixed-size context vector" which "becomes an information bottleneck" for "very long inputs," causing the model to "forget details from the beginning of the input." Option D describes the problem that Seq2Seq was designed to solve, not its limitation.

    Read the full bite: Seq2Seq: Turning One Sequence Into Another

  4. Question 4 of 30

    Which scenario best highlights the necessity of cross-attention in a neural network?

    Show the answer

    Answer: d · Translating a sentence where the decoder needs to align specific output words with relevant input words.

    Cross-attention is crucial in sequence-to-sequence tasks like translation, enabling the decoder to dynamically focus on relevant parts of the encoder's output. Option A describes the information bottleneck that cross-attention was designed to overcome, not its necessity.

    Read the full bite: Cross-Attention: How Models Connect Two Ideas

  5. Question 5 of 30

    What fundamental limitation necessitates the tokenization step for feeding text into a Transformer model?

    Show the answer

    Answer: b · Transformer models are mathematical functions that exclusively process numerical tensors.

    The card explicitly states that "Neural networks, including Transformers, are mathematical functions that operate on numbers, not raw text strings." Thus, text must be converted into a numerical tensor format. While tokenization helps manage vocabulary and prepares for embeddings, the core reason is the model's numerical input requirement.

    Read the full bite: Transformer Preprocessing: From Text to Tensors

  6. Question 6 of 30

    According to the card, what is the most accurate mental model for understanding how a Large Language Model (LLM) processes information?

    Show the answer

    Answer: b · A sophisticated pattern-matching engine that predicts word sequences based on learned statistical relationships.

    The card describes an LLM as a "sophisticated pattern-matching engine for words and ideas" that learns "statistical relationships between words" to predict text. Option C is incorrect because the card explicitly states an LLM is "not a database of facts".

    Read the full bite: What is a Large Language Model (LLM)?

  7. Question 7 of 30

    Under a fixed FLOP budget, a team must choose between a 100B-parameter model on 200B tokens and a 50B-parameter model on 400B tokens. What should they expect?

    Show the answer

    Answer: b · The 50B model will likely match or outperform the 100B model while costing less to serve

    The card states that for a fixed FLOP budget, scaling parameters and tokens equally is optimal, so the smaller model on more data can match or beat the larger one while being cheaper to serve. Option D reflects the outdated assumption that parameters alone drive performance, while D incorrectly assumes overfitting rather than undertraining is the risk.

    Read the full bite: LLM Scaling Laws: Match Parameters to Tokens

  8. Question 8 of 30

    What is the primary advantage of employing pipeline parallelism in deep learning model training?

    Show the answer

    Answer: d · It enables the training of models whose total parameter count exceeds the memory capacity of a single GPU.

    B is correct as the card states pipeline parallelism is for models 'too large to fit into the memory of a single accelerator.' A is incorrect because, despite using parallelism, the card notes that communication overhead and pipeline bubbles can make it slower for models that fit on a single GPU, so its primary benefit isn't universal speedup.

    Read the full bite: Pipeline Parallelism: An Assembly Line for Your Model

  9. Question 9 of 30

    What is the primary motivation for employing Tensor Parallelism in large language models?

    Show the answer

    Answer: c · To process a single, excessively large model layer by distributing its internal components across multiple GPUs.

    Tensor Parallelism is specifically designed to enable the execution of individual model layers that are too large to fit into a single GPU's memory by splitting the layer's components. Option A describes pipeline parallelism, which distributes entire layers, not parts of a single layer.

    Read the full bite: Tensor Parallelism: Split Layers, Not Just Models

  10. Question 10 of 30

    In which situation is Least-to-Most Prompting the most appropriate strategy?

    Show the answer

    Answer: c · When the problem's complexity far exceeds that of the few-shot examples, and it can be solved incrementally.

    The card explicitly states Least-to-Most Prompting is for when "the problem's complexity far exceeds that of your few-shot examples" and can be broken into "a clear sequence of smaller, dependent steps." Option B describes a feature also present in Chain-of-Thought, but not the unique advantage of Least-to-Most for harder problems.

    Read the full bite: Least-to-Most Prompting: Solving Hard Problems Incrementally

  11. Question 11 of 30

    For complex reasoning tasks, what is the main benefit of using self-consistency over standard greedy decoding in LLMs?

    Show the answer

    Answer: d · It enables the model to overcome early reasoning errors by exploring multiple solution paths and selecting the most consistent outcome.

    Self-consistency's primary benefit is to prevent the model from getting 'locked into a flawed reasoning path early on' by generating and evaluating a diverse set of reasoning paths, then selecting the most frequent answer. Option C is incorrect because self-consistency samples a 'diverse set' of paths, not an exhaustive search, and does not guarantee the 'absolute optimal solution' but rather a more robust one.

    Read the full bite: Self-Consistency: Majority Rules for LLM Reasoning

  12. Question 12 of 30

    For which type of problem is Tree of Thoughts (ToT) most beneficial compared to a single-path reasoning approach?

    Show the answer

    Answer: a · Problems where initial decisions are critical and backtracking from errors is necessary.

    The card states ToT excels "where initial decisions are pivotal and the ability to backtrack from a dead end is necessary." This directly matches option A. Option C is incorrect because the card explicitly mentions ToT's "massive overhead in computation, cost, and latency."

    Read the full bite: Tree of Thoughts: LLM Reasoning Beyond a Single Path

  13. Question 13 of 30

    Which scenario best illustrates the primary advantage of using the ReAct framework for an LLM?

    Show the answer

    Answer: c · Answering a question that requires current, real-world data.

    The ReAct framework is designed for tasks requiring information outside the model's training data or interaction with the world, making it ideal for answering questions with current, real-world data. Tasks like creative writing, summarization, or purely internal logical puzzles do not leverage ReAct's core benefit of external interaction and would incur unnecessary overhead.

    Read the full bite: ReAct: Teaching LLMs to Think, Act, and Observe

  14. Question 14 of 30

    For which application scenario are adapter modules most beneficial for fine-tuning a large language model?

    Show the answer

    Answer: a · Adapting a single base model to numerous distinct downstream tasks with limited storage and compute.

    Adapter modules are designed for efficiently adapting a single base model to multiple tasks, saving resources by only storing small, task-specific weights. While tempting, aiming for absolute maximum performance on a single, critical task might still favor full fine-tuning if resources are unlimited, as adapters might not match its performance in such cases.

    Read the full bite: Adapter Modules: Efficient LLM Fine-Tuning

  15. Question 15 of 30

    What is the primary role of the "clipping" mechanism in Proximal Policy Optimization (PPO)?

    Show the answer

    Answer: b · To limit the magnitude of policy changes, preventing destructive or unstable updates.

    The card explicitly states that PPO's clipping mechanism "prevents destructive updates" and limits "how much a policy can change," acting as "guardrails" to ensure stability. This prevents the policy from making excessively large updates that could destabilize learning, which is a core problem PPO addresses. Option D describes the approach of TRPO, which PPO simplifies, and Option C describes off-policy algorithms, which PPO is not.

    Read the full bite: Proximal Policy Optimization (PPO): Stable RL Updates

  16. Question 16 of 30

    Which approach allows QLoRA to finetune massive LLMs efficiently on a single GPU?

    Show the answer

    Answer: b · It freezes the 4-bit quantized base model and trains only small, inserted adapter layers.

    QLoRA's efficiency comes from freezing the large, 4-bit quantized base model and only training the much smaller LoRA adapter layers. Option A is a tempting distractor because it mentions 4-bit quantization, but incorrectly states that all quantized weights are updated.

    Read the full bite: QLoRA: Finetune Huge LLMs on a Single GPU

  17. Question 17 of 30

    What is the primary advantage of a Self-Querying Retriever in a RAG system?

    Show the answer

    Answer: d · It allows users to combine semantic search with natural language-expressed metadata filtering.

    The Self-Querying Retriever's main benefit is enabling users to filter documents using natural language on structured metadata, which standard vector search cannot do. Option A is incorrect because the card notes 'added latency and cost' as a potential drawback due to the LLM call.

    Read the full bite: Self-Querying Retriever: Let an LLM Write Its Own Filters

  18. Question 18 of 30

    What is the primary reason HyDE generates a hypothetical document rather than directly embedding the original query for retrieval?

    Show the answer

    Answer: d · To create an embedding vector that is semantically closer to relevant long documents than a short query's vector.

    HyDE's core purpose is to bridge the semantic gap between short queries and long documents by generating a more representative embedding vector. The hypothetical document is fictional and not intended as a factual answer for the user, making option C incorrect.

    Read the full bite: HyDE: Find Documents by Embedding a Fake Answer

  19. Question 19 of 30

    Which scenario best illustrates a situation where Graph RAG provides a distinct advantage over traditional RAG?

    Show the answer

    Answer: d · Synthesizing an answer that requires understanding multi-hop connections between genes, diseases, and drug compounds.

    Graph RAG excels in scenarios requiring the understanding of explicit relationships and multi-hop connections between entities, such as in drug discovery, where it leverages a structured knowledge graph. Traditional RAG is more suited for retrieving information from unstructured text or for simple fact extraction, as described in the other options.

    Read the full bite: Graph RAG: Answering Questions with Connected Facts

  20. Question 20 of 30

    What is the primary mechanism by which a Multi-Agent System achieves complex, intelligent behavior?

    Show the answer

    Answer: a · The aggregation of simple, local interactions among specialized, autonomous agents.

    The card states that complex behavior in a MAS emerges from simple, local interactions between individual agents, not from a central controller or exhaustive pre-programming. Option D describes a centralized system, which MAS aims to avoid.

    Read the full bite: Multi-Agent Systems: A Team of AIs, Not a Monolith

  21. Question 21 of 30

    For which task would a hierarchical AI agent system typically be considered least efficient or appropriate?

    Show the answer

    Answer: c · Generating a concise summary of a 50-page technical report.

    The card explicitly states that hierarchical systems are not justified for simple, single-shot tasks like summarizing a document due to the overhead. They are designed for complex, multi-step problems requiring diverse capabilities, such as software development, marketing campaigns, or extensive research.

    Read the full bite: Hierarchical AI Agents: The Org Chart for AI

  22. Question 22 of 30

    What best characterizes a Latent Diffusion Model (LDM)?

    Show the answer

    Answer: c · A specific architectural variant within the family of diffusion models.

    The card explicitly defines an LDM as "a diffusion model architecture" and "This specific architecture". While LDMs operate in a latent space, they are a type of diffusion model, not a method for optimizing variational autoencoders.

    Read the full bite: Latent Diffusion Models (LDM)

  23. Question 23 of 30

    What is the primary innovation in BLIP's approach to pre-training versatile vision-language models from noisy web data?

    Show the answer

    Answer: c · It uses a self-training mechanism with a captioner to generate new captions and a filter to select the most relevant image-text pairs.

    BLIP's core innovation is its self-training mechanism, which uses a captioner to generate synthetic captions and a filter to select high-quality image-text pairs from noisy web data. This allows it to automatically create a clean dataset, unlike manual annotation (A).

    Read the full bite: BLIP: Bootstrapping Better Vision-Language Models

  24. Question 24 of 30

    How do Flamingo-style models primarily achieve their versatility in handling diverse visual tasks?

    Show the answer

    Answer: c · By leveraging a single, unified architecture that learns new tasks from a few in-context examples.

    The card states Flamingo is a "single, unified model" that learns new tasks from "a handful of examples" through "few-shot, in-context learning," making option C correct. Option A describes the traditional, inefficient approach Flamingo was designed to overcome.

    Read the full bite: Flamingo: Few-Shot Learning for Vision-Language Models

  25. Question 25 of 30

    Which limitation significantly hinders current text-to-video models from being widely adopted for professional, high-fidelity video production?

    Show the answer

    Answer: d · Their struggle to maintain consistent object appearance and temporal flow across extended video sequences.

    The card explicitly states that current models "struggle with maintaining temporal consistency—ensuring a character or object looks identical across many frames and scenes," leading to "flickering or morphing artifacts" that make them unsuitable for professional work. While some post-production might be needed, the core limitation for professional adoption is the inherent inconsistency in the generated output, not primarily the need for manual editing to achieve basic quality.

    Read the full bite: Text-to-Video Generation: From Prompt to Picture Show

  26. Question 26 of 30

    What is the primary advantage of BERTScore over traditional metrics like BLEU or ROUGE?

    Show the answer

    Answer: c · It evaluates text quality by understanding contextual meaning, even with different phrasing.

    BERTScore's core advantage is its ability to assess semantic similarity by understanding contextual meaning, allowing it to score valid paraphrases highly where traditional metrics would fail. Option A is incorrect because BERTScore prioritizes meaning over exact keyword matching, making it less suitable for tasks where precise keyword extraction is critical.

    Read the full bite: BERTScore: Judging AI Text on Meaning, Not Just Words

  27. Question 27 of 30

    Which statement best describes the MMLU benchmark's function?

    Show the answer

    Answer: c · It acts as a standardized academic exam to broadly evaluate language model understanding.

    The correct answer is B because the card explicitly states MMLU is a "standardized academic exam for AIs" and its name "Massive Multitask Language Understanding" implies it tests a wide range of knowledge and skills, thus providing a broad evaluation. Option B is incorrect because MMLU is described as "Massive Multitask," not focused on specific coding challenges.

    Read the full bite: MMLU Benchmark

  28. Question 28 of 30

    What is the fundamental reason Elo scores for LLMs are often considered misleading?

    Show the answer

    Answer: b · The Elo system is designed for dynamic skill levels, whereas LLMs possess fixed capabilities.

    The card highlights that Elo is designed for entities with dynamic skills (like chess players who learn), but LLMs have fixed capabilities. This mismatch causes the system to produce volatile scores that are misleading when treated as precise measures of a static ability. While human judgment can be subjective, the card notes Elo is used to capture such subjective qualities, and the core issue isn't the subjectivity itself but the system's application to static entities.

    Read the full bite: Why Elo Ratings for LLMs Can Be Misleading

  29. Question 29 of 30

    For which scenario is LLM-as-a-Judge most appropriate?

    Show the answer

    Answer: b · Assessing the creativity and coherence of a chatbot's open-ended responses.

    The card states LLM-as-a-Judge is for "evaluating tasks where the definition of 'good' is complex and subjective," specifically listing "chatbot helpfulness, summarization quality, creative writing." It explicitly advises against using it for "objective, computable correct answers like math problems or code execution," which rules out options A and C. Option D is also an objective performance metric, not a subjective content evaluation.

    Read the full bite: LLM-as-a-Judge: Using Models to Grade Models

  30. Question 30 of 30

    Which characteristic of AI-generated code is HumanEval primarily designed to measure?

    Show the answer

    Answer: b · The functional correctness of the code when executed against unit tests.

    HumanEval's explicit purpose is to test if AI-generated code "actually works" by running it against unit tests to determine "functional correctness." It is specifically noted that it moves "beyond simple syntax checks" and does not measure "style, readability, or performance efficiency."

    Read the full bite: HumanEval: Testing if AI-Generated Code Actually Works

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.

Get it on Google PlayiPhone app coming soon