Bitkernel · CS Fundamentals
Choose best prompt for AI code debugging
TrueInterview
October 7, 2026 · 1 min read
When you use an AI tool such as ChatGPT to help debug code, which prompting method is generally most effective?
Options:
- A. Paste the whole code directly and ask: What is wrong with this code?
- B. Supply the error messages, the relevant code excerpts, and a contrast between what you expected and what actually happened.
- C. Describe only the symptoms in plain language, without including any code.
- D. Have the AI rewrite the entire functional module from scratch.
Overview: This question assesses a candidate's skill in prompt engineering and AI-assisted debugging, emphasizing how they organize diagnostic details, include error context, and convey expected versus actual behavior.
Loading comments…