Cook with AI Enrollment closed
Chapter 2 of 4

Tokens & Context

What tokens and context windows are, and why relevant context improves an AI response.

What is a token?

Models process text as tokens. A token may be a word, part of a word, or punctuation.

What is the context window?

The context window limits how much prompt, conversation, file content, and tool output the model can consider at once.

Which context is most useful when asking an agent to fix a bug?

Relevant, focused context helps the agent understand the problem without burying useful details in noise.

What can happen when a conversation becomes very long?

Long conversations can fill the context window. Older details may be summarized, removed, or overlooked.

What is a good response when the agent lacks an important file?

Giving the agent the missing source material is more reliable than asking it to guess.

Your score — Tokens & Context

/ (%)

Learn this topic through practical guides and real coding workflows inside AI Workshop.

Next chapter: Instructions & Tools →
About this course

This is a chapter of the free AI Fundamentals quiz. Answer each question, get immediate feedback with an explanation, and move on. Your progress is saved in your browser — nothing leaves your machine, and there is no signup.

We teach every topic in this quiz inside AI Workshop. Join AI Workshop to learn how to apply it in real projects.

All chapters of AI Fundamentalsall quiz courses