Computer Science, asked by mithilaasuresh, 5 months ago

Question # 13
What is the type of error called when the program runs but does not give the expected output?​

Answers

Answered by dualadmire
7

When the program runs but does not give the expected output, the error is called logic error.

  • The program does not terminate abnormally or crash.
  • A program with logic error is definitely a valid program, but it does not behave in the intended manner.
  • Example: If you wrote a program carrying some mathematical calculations and forgot a parenthesis in the equation, then the result of the equation changes.
Answered by amitnrw
4

LOGICAL ERROR  - when the program runs but does not give the expected output ​

Explanation:

in Logical error program run gets complied provides output but its not as expected.

These are difficult to find sometime.

As you would not be knowing where the error can be

For example  u want to find Area of Square

you write Area = side + side     instead of side x side

then program would run correctly but output would be different than expected

There are different types of Errors

Syntax Error -

Compilation error

Run time error

arithmetic error  like getting at some step /0

resources error

interface error

Learn More:

Draw a flow chart and write an algorithm for a program that adds all ...

https://brainly.in/question/12819501

in a code language MOUSE s coded as 41 and RATE is coded as 6 ...

https://brainly.in/question/18293323

Similar questions