Diagnose failures during program development

During program development, a student records three failures. Complete each diagnosis using syntax error, runtime error, or logic error. Use each label once.

  1. A Python stock program contains if stock > 0 without the required colon. Python rejects the file before executing any statement. This is a .
  2. A running calculator attempts to divide by zero and stops with an error message. This is a .
  3. A temperature program is required to calculate the mean of two readings. It adds the readings but never divides their sum by two. Execution finishes and displays the wrong result. This is a .

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Program Development Questions: