正解:B
Prompt engineering is the systematic practice of designing and refining instructions, context, examples, constraints, and output requirements so that a generative AI model produces a desired response. It can include assigning a role, specifying the task, supplying relevant background, defining a response format, and using zero-shot, one-shot, or few-shot examples. Option A more broadly describes natural language processing rather than prompt engineering. Option C describes grounding, which connects generated output to trusted and verifiable information. Option D describes a zero-shot prompt, only one possible prompting technique, and therefore is too narrow to serve as the general definition. Effective prompt engineering normally involves iterative testing and refinement to improve the relevance, consistency, accuracy, and usefulness of model responses. Thus, option B provides the complete definition.