Evaluating and refining prompts · Question 40 of 60

Many generated scripts fail because the LLM outputs explanatory text before and after the code. Which prompt change helps most?

1 answer is correct. Medium Created with AI

Show answer

Answer

  • D Require a fixed output format: code only, without accompanying text

Explanation

The analysis shows a clear type of error: format problems. A clear format specification in the prompt fixes them and raises the execution success rate.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications