Which of the following is NOT an effective strategy when your program does not work?

Select one:

  • a. Make random changes to code that you do not unders tand until it accidentally works.
  • b. Add debugging statements to output information ab out the state of your program while it runs.
  • c. Check each error message generated by the compiler or IDE.
  • d. Use a debugger to pause your program while it is running so you can check its state.
  • e. Read through your code and figure out what it does step by step.

The correct answer is: Make random changes to code that you do not understand until it accidentally works.

Related Posts

0 Comments

12345

    00