SHARE
SPREAD
HELP

The Tradition of Sharing

Help your friends and juniors by posting answers to the questions that you know. Also post questions that are not available.


To start with, Sr2Jr’s first step is to reduce the expenses related to education. To achieve this goal Sr2Jr organized the textbook’s question and answers. Sr2Jr is community based and need your support to fill the question and answers. The question and answers posted will be available free of cost to all.

 

#
Authors:
Tony Gaddis
Chapter:
Input,processing And Output
Exercise:
Multiple Choice
Question:1 | ISBN:9780132576376 | Edition: 2

Question

A __________ error does not prevent the program from running, but causes it to produce incorrect results.
a. syntax
b. hardware
c. logic
d. fatal

TextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbook

Answer

The correct answer is c. logic

 

Explanation for the correct answer:

  • The program compiler errors found while running the program if the found syntax errors. It does not depend on logic of the program..
  • If the logic of the program code contains an error, it does not effect the execution of the program. It is not have any compiler errors and execute the program successfully, but it displays the inappropriate/incorrect results as per the question.
  • For example, 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.

 

Hence, c) logic  error does not prevent the program from running, but causes it to produce incorrect results.

0 0

Discussions

S

c. Logic is the correct answer 

 

Post the discussion to improve the above solution.