Types of error

If you write a program that compiles and executes, it must not have any
  1. Syntax errors
  2. Logical errors
  3. Runtime errors
  4. All of the above (1-3) because if it compiled and executed, it has no errors.
  5. Two of the above (1-3)
Explain your answer.

I wrote a payroll program that seemed to work fine, but when I checked some sample results using a calculator, I discovered that it was giving the wrong result. What type of error had I made? Explain your answer.

Which type error does this message display program have? Explain your answer.


Disclaimer: The views and opinions expressed on unofficial pages of California State University, Dominguez Hills faculty, staff or students are strictly those of the page authors. The content of these pages has not been reviewed or approved by California State University, Dominguez Hills.