⚠
Privacy Notice: When you sign in with GitHub, your quiz attempts are stored in Google Firebase so you can track your progress. This data is only accessible to the course instructor, is not otherwise shared, and will be deleted at the end of the semester. For earlier deletion, contact the instructor. Prefer to stay anonymous? Use guest mode or a GitHub account without your real name.
Loading...

04 Lecture 4 Quiz: Tokenization - How Machines Read

Score: 0 / 18

Instructions

This is an interactive quiz. Sign in with GitHub to save your progress, or continue as a guest.

  • Select your answer for each question
  • Get immediate feedback on your choices
  • Retry questions as many times as you need
  • Track your progress across sessions
Question1 LLM Fundamentals

At the most fundamental level, what does a Large Language Model (LLM) do when it generates text?

Question2 Tokenization Motivation

Why must text be converted into numbers before reaching the transformer?

Question3 The Pipeline

Which sequence correctly describes how text reaches the transformer?

Question4 Tokenization Approaches

What is the most catastrophic problem with word-level tokenization for modern language models?

Question5 Tokenization Approaches

Character-level tokenization solves the unknown-word problem with a tiny vocabulary. Why do real models avoid it anyway?

Question6 Subword Tokenization

Section 9.3 of the lecture states that any subword tokenization algorithm must solve two problems together. What are they?

Question7 BPE Algorithm

During training, how does standard Byte Pair Encoding (BPE) decide which pair to merge next?

Question8 BPE Algorithm

Once BPE has been trained, how does the tokenizer encode a new sentence it has never seen?

Question9 Tokenization Consequences

Why do most LLMs historically fail at counting the r’s in “strawberry”?

Question10 Byte-Level BPE

Why does byte-level BPE start with exactly 256 base tokens and need no [UNK] token?

Question11 Byte-Level BPE

A new emoji is added to Unicode after a byte-level BPE tokenizer has been trained. What happens when a user types it?

Question12 Alternative Algorithms

What is the key algorithmic difference between WordPiece (used in BERT) and BPE?

Question13 Vocabulary Tradeoffs

LLaMA 3 quadrupled its vocabulary from LLaMA 2’s 32,000 to 128,000 tokens. What is the main cost of doing this?

Question14 Tokenization Consequences

Why do LLMs often fail at simple multi-digit arithmetic like 1234 + 5678?

Question15 Multilingual Fairness

Why do non-English languages typically cost more tokens than English for equivalent content?

Question16 Glitch Tokens

Why do “glitch tokens” like SolidGoldMagikarp cause unpredictable model behavior?

Question17 Code Tokenization

Which statement about how code gets tokenized is correct?

Question18 CLAUDE.md

From the transformer’s point of view, what is special about the CLAUDE.md file when it is included in a request?

© 2026 Dominik Müller   •  Powered by Soopr   •  Theme  Moonwalk