C# Programming: From Problem Analysis to Program Design

C# Programming: From Problem Analysis to Program Design

Authors: Barbara Dolye
ISBN: 9781285096261
Edition: 4
Chapter: Introduction to Computing and Programming
Exercise: EXERCISES
Question: 1

Question by : Geroge

You run a program and it gives you the difference of two values as the output, instead
of the sum of the values, as intended. This is what type of error?
a. syntax
b. analysis
c. coding
d. design
e. logic

Answer by : Trump

Correct answer is e)  logic.

Reason:  If run a program and it gives you the difference of two values as the output, instead
of the sum of the values is the logic error.  Consider the diffrence of two vlaues as the input.

0 0

Discussions

Post the discussion improve the above solution.