what do you mean by debug? explain various types of errors
Answers
Answer:
Debugging and Types of errors in Python
Debugging
Errors occurring in programming are called as bugs.The process of tracking this bugs is called as debugging. There are three types of errors that can occur while coding : Syntax Error, Runtime Error and Semantic Error.
Debugging
DEBUGGING is the process of removing faults, abnormalities, or flaws from a computer program, utilizing DEBUGGING TOOLS and particular software programmers.
Types of errors/bugs
(1) Functional errors: Functionality issues are a broad category of defects that can range from modest functionalities, such as unclickable buttons, to the inability to use the software's principal functionality.
(2) Syntax errors: When your code is missing or contains improper characters, this type of problem occurs. This software flaw could be caused by a misspelt command or a missing bracket, for example.
(3) Logic errors: A logic defect is a flaw in your software's flow, such as an infinite loop.
The endless loop occurs when a program is poorly constructed or incorrectly coded, causing it to malfunction and forcing a specific sequence to repeat indefinitely until the program crashes or some external interruption occurs, such as shutting the application or turning off the power.
(4) Code Duplication: When a code sequence appears more than once, this fault occurs. This can refer to code that is replicated character for character, but it can also refer to code that uses the same tokens.
(5) Compatibility defects: When a program does not run consistently across different types of hardware, operating systems, browser compatibility, or when executing with specific software under formal specifications, compatibility issues occur.
#SPJ2