answersLogoWhite

0


Best Answer

It is a generic term for screwing the program code up. It means that somewhere in the coding it is not doing what it is supposed to do. Say you wanted to add the amount of apples and then print the amount for inventory. The code says that it is adding the apples then sending a zero amount for the amount to the inventory.So the inventory shows a zero balance all the time. This is a logic error. Good luck.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is a logic error in a programs code?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is easiest for a programmer to use syntax or logic error?

Use neither. Error-free programs are the best.


3 type of errors and explanation for each other visual basic?

Syntax Errors: These errors occur when the code violates the rules of the VB syntax. For example, missing a closing parenthesis or using an incorrect keyword. These errors are identified by the compiler during the code compilation process. Run-time errors: Run-time errors occur while the program is running. They generally occur due to invalid data input or incorrect logic in the code. They cause the program to crash or provide unintended results. Logic Errors: Logic errors occur when the code behaves unexpectedly or produces incorrect results due to flawed or incorrect logic. These errors can be challenging to identify, as the code compiles and runs without any error messages. Debugging techniques, such as code reviews or stepping through the code, are used to locate and correct logic errors.


Explain why modularization or function subprograms important?

It allows to simplify logic of your programs and makes your code more readable.


What is the solution of error code 80072e3?

Without knowing which program or system generated the error it is impossible to say. The error code is just a number. Many programs and systems may produce the exact same error code but its actual meaning is specific to the program or system that generated it.


What is the code that asks you if you want to close the program and if you say no then it closes the main window in Liberty Basic?

Code that contains a logic error does the opposite of what is expected. Therefore the answer to the question must be bad code.


Method for minimising logic error?

BASICALLY, to minimise logic error, you need to stop being a tutti and be more of a kutha


What is execution in time logic error?

In programming, logic errors can occur if code has not been written in a manner that results in a program completing functions as expected. When an attempt to run/execute a program commences and a program encounters errors resulting from code that had not been compiled and translated as expected (such as in cases that lines of code may not be in the correct order), then a run time error could occur.


What is the differences between a logical error and syntax error?

Answer: Syntax Error - Occurs when the code isn't formatted or typed correctly. i.e. In python, typing If instead of if because it only recognizes lowercase. Logical Error - Occurs when there is a fallacy of reasoning. i.e. In python, typing if x < 0 and x > 5. Since a value can't be less than 0 and greater than 5, a logical error will occur. Answer: a) Syntax Error Definition : An error cause by violation of the programming language used. Symptoms : Code fails to compile (error message from compiler) b) Logical Error Definition : An error caused by violation of logic (range, comparison, etc.). This error will NOT crash the program. Symptoms : Unexpected output c) Runtime Error/Execution Error Definition : Any error, normally logical error that cause the program to crash. Symptoms : Program crashes.


What type of procedural error often involves and error in logic?

Analysis


How to Fix Error Code 30015-12?

Open Control Panel using Start. Click on Programs and select Programs and Features. Select Quick Repair and click on Repair. If Quick Repair didn't fix the error code 30015, select Online Repair and click on Repair.


What type of error provides an incorrect result but is not a syntax or run time error?

A logic error.


Examples of logic bomb viruses?

examples of logic bomp are antivirus programs, masquarades, torjan horse ,u tility programs and etc