LLMs, Tokens and Embeddings Practice Test
Test how well you understand large language models: tokens, context windows, transformers, embeddings, fine-tuning and the settings developers use every day.
Your progress
Answer all questions, then submit to see your score and explanations.
Question 1
What is a large language model mainly trained to do?
Question 2
What is a token?
Question 3
What is a model's context window?
Question 4
Which mechanism is at the heart of the transformer architecture?
Question 5
What is an embedding?
Question 6
Which measure is commonly used to compare two embeddings?
Question 7
What is fine-tuning?
Question 8
How does pre-training differ from fine-tuning?
Question 9
Why might a model not know about a recent event?
Question 10
What is RLHF used for?
Question 11
Setting temperature to 0 usually makes output:
Question 12
Why does API cost usually depend on tokens?
Question 13
What is a multimodal model?
Question 14
What does the max output tokens setting control?
Question 15
Why do chat apps stream responses token by token?
Please answer all questions before submitting.
LLMs, Tokens and Embeddings Practice Test: all 15 questions with answers
Try each question first, then open “Show answer” to check the correct option and explanation.
Q1.What is a large language model mainly trained to do?
- A.Search the internet in real time
- B.Predict the next token given the tokens before it
- C.Store a copy of every website
- D.Run SQL queries
Show answer
Correct answer: B. Predict the next token given the tokens before it
LLMs are pre-trained on next-token prediction over very large text datasets.
Q2.What is a token?
- A.Always exactly one word
- B.A chunk of text, such as a word or part of a word, that the model processes
- C.A password for the API
- D.A single character only
Show answer
Correct answer: B. A chunk of text, such as a word or part of a word, that the model processes
Tokenisers split text into sub-word pieces. One English word is often about one to two tokens.
Q3.What is a model's context window?
- A.The browser window where you chat
- B.The maximum number of tokens the model can consider at once, including input and output
- C.The time limit for a request
- D.The number of users at once
Show answer
Correct answer: B. The maximum number of tokens the model can consider at once, including input and output
Anything beyond the context window cannot be seen by the model in that request.
Q4.Which mechanism is at the heart of the transformer architecture?
- A.Self-attention
- B.Decision trees
- C.K-means clustering
- D.Linear regression
Show answer
Correct answer: A. Self-attention
Self-attention lets each token weigh how relevant every other token is to it.
Q5.What is an embedding?
- A.A compressed image file
- B.A list of numbers (vector) that represents meaning, so similar texts end up close together
- C.A type of prompt
- D.A database table
Show answer
Correct answer: B. A list of numbers (vector) that represents meaning, so similar texts end up close together
Embeddings map text into vector space so meaning can be compared mathematically.
Q6.Which measure is commonly used to compare two embeddings?
- A.Cosine similarity
- B.File size
- C.Word count
- D.Alphabetical order
Show answer
Correct answer: A. Cosine similarity
Cosine similarity measures the angle between vectors: closer to 1 means more similar meaning.
Q7.What is fine-tuning?
- A.Writing a longer prompt
- B.Further training a pre-trained model on task-specific data to adapt its behaviour
- C.Lowering the temperature
- D.Deleting part of the model
Show answer
Correct answer: B. Further training a pre-trained model on task-specific data to adapt its behaviour
Fine-tuning adjusts the model's weights using a smaller, focused dataset.
Q8.How does pre-training differ from fine-tuning?
- A.They are the same thing
- B.Pre-training uses huge general datasets; fine-tuning uses smaller task-specific data
- C.Fine-tuning always uses more data
- D.Pre-training happens after deployment
Show answer
Correct answer: B. Pre-training uses huge general datasets; fine-tuning uses smaller task-specific data
Pre-training builds general language ability; fine-tuning specialises it.
Q9.Why might a model not know about a recent event?
- A.The model is broken
- B.Its training data ends at a knowledge cutoff date
- C.The event was too short
- D.Models never learn facts
Show answer
Correct answer: B. Its training data ends at a knowledge cutoff date
Models only know what was in their training data unless you supply newer information in the prompt or via tools.
Q10.What is RLHF used for?
- A.Compressing the model
- B.Aligning model outputs with human preferences using human feedback
- C.Translating code
- D.Speeding up tokenisation
Show answer
Correct answer: B. Aligning model outputs with human preferences using human feedback
Reinforcement learning from human feedback trains the model toward responses people rate as more helpful and safe.
Q11.Setting temperature to 0 usually makes output:
- A.More creative
- B.More deterministic and focused on the most likely tokens
- C.Longer
- D.Multilingual
Show answer
Correct answer: B. More deterministic and focused on the most likely tokens
Low temperature reduces randomness, which suits extraction, classification and other precise tasks.
Q12.Why does API cost usually depend on tokens?
- A.Providers charge per input and output token processed
- B.Tokens are physical items
- C.Cost depends only on the time of day
- D.Tokens are free
Show answer
Correct answer: A. Providers charge per input and output token processed
Most LLM APIs price usage by input and output tokens, so long prompts and long answers cost more.
Q13.What is a multimodal model?
- A.A model that only handles text
- B.A model that can process more than one type of input, such as text and images
- C.Several copies of the same model
- D.A model with several prompts
Show answer
Correct answer: B. A model that can process more than one type of input, such as text and images
Multimodal models accept and reason over different data types, for example a photo plus a question.
Q14.What does the max output tokens setting control?
- A.The size of the training data
- B.The maximum length of the generated response
- C.The number of users
- D.The temperature
Show answer
Correct answer: B. The maximum length of the generated response
If the limit is too low, the answer is cut off mid-way.
Q15.Why do chat apps stream responses token by token?
- A.It reduces the total cost to zero
- B.Users see text sooner, which improves perceived speed
- C.It is the only way models work
- D.It makes answers more accurate
Show answer
Correct answer: B. Users see text sooner, which improves perceived speed
Streaming lowers time-to-first-token for the user. It does not change the answer itself.