PassDrill Free practice questions with explanations that actually teach.

AI-ENGINEERING · prompting · Q006 · easy

According to Anthropic's prompt engineering documentation, what is the stated benefit of wrapping different parts of a prompt (instructions, context, examples, input) in distinct XML tags such as `<instructions>` and `<context>`?

  1. It helps Claude parse complex prompts unambiguously by clearly separating different types of content, reducing the chance the model misinterprets what is instruction versus example versus input
  2. It is required syntax without which the Messages API will reject the request with a formatting error
  3. It compresses the prompt so that it consumes fewer tokens than the equivalent plain-text prompt
  4. It automatically translates the tagged sections into a different language before the model processes them