CCAR-F practice › Prompt Engineering & Structured Output · Question 68 of 105
Prompt Engineering & Structured Output
A CI review bot is told to "check that code comments are accurate." Developers dismiss most of its comment findings, which flag terse wording, stale TODOs, and phrasing preferences. What change most effectively improves precision?
Show answer and explanation
Answer: B — Flag a comment only when its described behavior contradicts what the code does
An explicit, checkable criterion (claimed behavior contradicts actual behavior) narrows the category so style and wording issues fall outside it. Confidence wording (a) and confidence scores (c) don't tell the model which findings are wrong, so precision barely improves. Dropping the check (d) gives up a useful category instead of fixing its criteria.
Keep going
More Prompt Engineering & Structured Output questions
- A review bot's security findings are almost always accepted, but its "performance"…
- A review prompt defines severity as "critical: severe problems; major: significant…
- A review prompt contains a detailed paragraph specifying that every finding must include…
- A test-generation reviewer is inconsistent about whether an untested error branch counts…
- An extractor pulls sample size from research papers. It is accurate when the paper has a…