Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

tamara is writing code as part of a large project. she just compiled he…

Question

tamara is writing code as part of a large project. she just compiled her code and run it, but the result is not exactly as expected. which of the following strategies would be efficient ways to debug her code so that it works as intended? select two answers. try changing some of the inputs to see under what circumstances the program is not working and what type of error may be occurring. add statements to display the state of the program at various points to try and identify where the error might have occurred. retype each statement in the program again, being extra careful not to make mistakes this time. continue to write code, but look for ways in which the error from this part of the program can be corrected or compensated for.

Explanation:

Answer:

A. Try changing some of the inputs to see under what circumstances the program is not working and what type of error may be occurring.
B. Add statements to display the state of the program at various points to try and identify where the error might have occurred.