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.

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:

  1. 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.
  2. An error caused by incorrect indentation is a syntax error in languages like Python where indentation is significant for code - block structure.
  3. An error caused by trying to open a non - existent file is an IOError (Input/Output error) or in modern Python, a FileNotFoundError.

Answer:

  1. Logic error
  2. Syntax error
  3. FileNotFoundError (or IOError)