What are tokens, and how do they affect a request?
Understand the idea, explain it in your own words and use the rubric to find your next learning gap.
The idea behind the question
A token is a model-specific text unit, not a word. A context limit covers the material the model can consider; billing and output limits are separate constraints.
A short English word can be one token while an identifier or emoji can span several.
A practical way to learn it
Compare an English sentence, a Bengali sentence and a code identifier under both encodings. Explain the differences without assuming a bug.
Open LLM token counterThe related tool opens separately; your interview answer stays here. Written practice is self-guided, without automatic code grading.
Build an explanation you understand
- State what the concept does in plain language.
- Apply it to the example and make your assumptions explicit.
- Explain a trade-off, failure case and how you would test it.
- Distinguish your actual experience from a proposed approach.
How would you explain it?
Single-question timers reset on refresh. Full mock sessions can resume from this browser.
Strengthen your explanation
Compare reasoning, not identical wording. Reference answers describe a possible approach; replace hypothetical statements with truthful details from your own work.
One way to answer
I would count the complete request using the provider's tokenizer, including system messages, history, retrieved passages and tool definitions. I would reserve space for the response and reject or trim inputs predictably rather than silently losing important context. I would explain that the same text can have different counts under different encodings. For a chat product, I would measure actual usage as well as the plain-text estimate because message formatting and model behavior add overhead.
What a strong explanation should cover
Tick only the points your own answer addresses. This is self-assessment, not AI scoring.
0 / 3 points self-reportedWatch out for
- Calling every token one word.
- Treating an OpenAI encoding as Gemini's billing tokenizer.
Now go one level deeper
- What would you trim first from a long conversation?
- How would you preserve a critical instruction?
Further reading
Further-reading links support learning; the reference is Sukoaa-authored, not an official employer answer key.