CCAR-F practice › Prompt Engineering & Structured Output · Question 72 of 105
Prompt Engineering & Structured Output · Select TWO
A test-generation reviewer is inconsistent about whether an untested error branch counts as a coverage gap worth reporting. The team wants consistent judgment that also carries over to cases it hasn't seen. Which additions to the prompt best achieve this? (Select two)
Show answer and explanation
Answer: A and B — Two or three borderline cases, each explaining why it was or wasn't reported / A contrast pair: an error branch exercised indirectly by another test, and one never exercised
A few targeted examples of ambiguous cases with their reasoning (a), and pairs that separate acceptable patterns from genuine gaps (b), teach judgment the model can generalize. Clear-cut examples (c) cover cases that already go right. An exhaustive list (d) only matches pre-specified cases and doesn't generalize to new code.
Keep going
More Prompt Engineering & Structured Output questions
- An extractor pulls sample size from research papers. It is accurate when the paper has a…
- A pipeline prompts Claude to "reply only with a JSON object," but roughly 5% of…
- A ticket classifier uses a closed enum of five categories. New kinds of tickets, such as…
- An intake pipeline has three extraction tools (invoice, receipt, contract) and doesn't…
- A pipeline must run extract_metadata on each document before any enrichment tool…