A error does not prevent the
- a. syntax
- b. hardware
- c. logic
- d. fatal
The “logic” error causes the program to produce unexpected results, but it will not terminate the program from running.
Hence, the correct answer is option “C”.
Explanation of Solution
Logic error:
Logic error is also called as a bug, which makes a program to operate with the fault, where the program may respond differently and can produce unexpected results.
- In this scenario, the program will work correctly, but will produce output with errors.
- Once the program is in an executable form, the program is tested to check whether it has any logic error.
- The problem with the logic error is that it will not make the program to terminate or crash.
- The logic error will produce wrong output that may not be immediately identified by the programmer.
Explanation for incorrect options:
Syntax:
An error which occurs on the source code of a program is referred as syntax error; because the computer programs strictly follows the syntax rules, if the code fails to prove its language syntax format then the compiler will throw an error.
Hence, the option “A” is wrong.
Hardware:
Hardware error is nothing, but a malfunction of a hardware device which is physically present in the computer.
Hence, option “B” is wrong.
Fatal:
The fatal error is an error that causes a code to abort. When this error occurs, the data in the program may be lost.
Hence, the option “D” is wrong.
Want to see more full solutions like this?
Chapter 2 Solutions
Starting Out with Programming Logic and Design (4th Edition)
Additional Engineering Textbook Solutions
Java: An Introduction to Problem Solving and Programming (7th Edition)
Java How To Program (Early Objects)
Web Development and Design Foundations with HTML5 (8th Edition)
Software Engineering (10th Edition)
Starting Out with C++ from Control Structures to Objects (9th Edition)
Starting Out with C++: Early Objects (9th Edition)
- (Thermodynamics) a. Design, write, compile, and run a program that determines the work,W, performed by a piston engine providing a force of 1000 N over a distance of 15 centimeters. The following formula is used to determine the work performed: W=Fd F is the force provided by the piston in Newtons. d is the distance the piston moves in meters. b. Manually check the values computed by your program. After verifying that your program is working correctly, modify it to determine the work performed by six pistons, each providing a force of 1500 N over a distance of 20 centimeters.arrow_forwardFlowchart and algorithm Basics art of programmingarrow_forwardDesign a calculator with division, multiplication and addition operations by using input and message boxes visual basicarrow_forward
- In computer-based problems, you must define the Inputs and the Outputs at the start. True False The value that can be changed during the execution of the program is referred to as: Constant Float Variable Integerarrow_forwardAs the name implies, it represents a value that cannot be altered over the course of the program's execution.arrow_forwardThe process of locating and fixing any errors in a program is called . a. bug-proofing b. bug-eliminating c. debugging d. error removalarrow_forward
- Computer ProgrammingLanguage: CConditional Statementsarrow_forwardAn error occurred during the execution of a program is called a. logic error O b. Run time error O c. None of these O d. Syntax errorarrow_forwardInterpret the flowchart and write the algorithm for the program in pseudocode.arrow_forward
- What do we call a statement that displays the result of computations on the screen? A. result statement B. screen statement C. output statement D. answer statement X E. input statementarrow_forwardDesign a program that allows a user to enter any quantity of numbers until a negative number is entered. Then display the highest number and the lowest number.(Pseudocode or flowchart)arrow_forwardc++arrow_forward
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTProgramming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage Learning
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr