Computer Science, asked by ujayanthsai9, 3 months ago

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

Answers

Answered by tiger2625
10

Answer:

Semantic errors are problems with a program that compiles and runs but doesn't do the right thing. Example: An expression may not be evaluated in the order you expect, yielding an unexpected result.

Answered by hotelcalifornia
0

Logical errors can run a program until the end but give the wrong result.

Explanation:

  • A Logical error (logic errors) is the kind of mistake in the source coding of the program.
  • It produces a result as unexpected behavior or incorrect.  
  • Logic errors are the kind of runtime errors which can cause incorrect output or disables when the program starts running.
  • Any type of programming errors can cause logical errors.
  • For example, assigning the value to an invalid variable can cause unexpected errors in the program.  
  • Multiplying instead of combining two numbers will give unwanted results.    
  • Even small misspellings that do not create syntactic errors can cause logical errors.  
Similar questions