Jane wrote a program that moves a mouse through a maze. But when the mouse took a right turn, it disappeared from the maze. What kind of error should

Jane fix to make the program run properly?
(1 point)
• Boolean error
• logic error
• syntax error
• infinite loop error

1 answer

The issue described seems to indicate that when the mouse takes a right turn, the program behaves unexpectedly (the mouse disappears). This suggests there is a problem with how the program handles navigation or movement within the maze, rather than a straightforward typo or syntax issue.

The best choice here is:

logic error

A logic error occurs when the program runs without crashing but produces incorrect results, which is what seems to be happening when the mouse disappears after a right turn.