Prompt Engineering Fundamentals
Last reviewed
Correct answer: B. They mark where instructions end and pasted material begins, so the two are not confused
Explanation
The principle — When a prompt contains both directions and material, something has to say which is which. Delimiters are that something.
Why the key is correct — OpenAI states that XML tags help delineate where one piece of content, such as a supporting document used for reference, begins and ends. Google makes the same point about using clear delimiters to separate the parts of a prompt.
Why the others are wrong — The benefit is not merely cosmetic; Google Cloud says structure helps the model parse content that is otherwise complete. Code is one case, not the only one. And mixing styles undermines the very thing delimiters provide.
Remember this — One delimiter style, used consistently, around anything that is material rather than instruction.
Sources — OpenAI, Prompt engineering.
Sources
“XML tags can help delineate where one piece of content (like a supporting document used for reference) begins and ends.”
Practise 10 questions on this topic
Take Prompt Engineering Fundamentals — Timed Test 1 (10 questions) — scored instantly, explanation for every question, no login.