question # 3\ndropdown\nchoose the type of error that matches the described situation.\nresults of program…

question # 3\ndropdown\nchoose the type of error that matches the described situation.\nresults of program are returned but they are not correct because the computation was designed incorrectly\nerror caused by incorrect indentation of a line.\nerror caused by trying to open a file that cannot be found.
Answer
Brief Explanations:
- When results of a program are incorrect due to wrong computation design, it's a logic error. The program runs but gives wrong output as the logic behind the computation is flawed.
- An error caused by incorrect indentation is a syntax error in languages like Python where indentation is significant for code - block structure.
- An error caused by trying to open a non - existent file is an IOError (Input/Output error) or in modern Python, a
FileNotFoundError.
Answer:
- Logic error
- Syntax error
- FileNotFoundError (or IOError)