Computer Science, asked by TbiaSupreme, 1 year ago

What is an error? Explain its classification?

Answers

Answered by swagg0
9
HEY MATE ⭐⭐⭐
HERE IS THE ANSWER ✌
____________________
⬇⬇⬇⬇⬇

✔ERROR:-
An Error is a term used to describe any issue that arises unexpectedly that cause a computer to not function properly. Computers can encounter either software errors or hardware errors.

⭕⭕⭕⭕⭕⭕⭕⭕⭕

Programming errors are mainly in three categories; Syntax Errors, Run time Errors and Logic Errors.

✔Syntax Errors:-


Syntax Errors, also known as Compilation errors are the most common type of errors. Most Syntax errors are caused by mistakes that you make when writing code.

If you are using the coding environment like Visual Studio, it is able to detect them as soon as you write them, also you can fix them easily as soon as they occur.
When you compile your application in the development environment, the compiler would point out where the problem is so you can fix it instantly.

Ex: When you forgot to type a semicolon (;) after the statement, the compiler shows the syntax error and it would point out where the problem occurred.

⭕⭕⭕⭕⭕⭕⭕⭕⭕⭕

✔Run-time Errors:-

Run-time errors are those that appear only after you compile and run your code. It will occur when your program attempts an operation that is impossible to carry out.
You can fix most run-time errors by rewriting the faulty code, and then recompiling and running it.

Ex: A program error may result from an attempt to divide by zero


int a = 5;
int b = 0;
int c = a /b;

When you compile this program, compiler won't show any Syntax Error. But when you run this code, the compiler show "Attempted to divide by zero".

⭕⭕⭕⭕⭕⭕⭕⭕⭕

✔Logic Errors:-

Your code may compile and run without any Syntax Errors or Run-time Errors, but the output of an operation may produce unwanted or unexpected results in response to user actions. These types of errors are called Logic Errors.
That means, Logic errors are those that appear once the application is in use. These are generally the hardest type to fix, since it is not always clear where they originate. Also the development environment does not see anything wrong in the document and therefore cannot point out a problem.


✅✅✅✅✅✅
_______________
HOPE IT HELPS ☺☺☺☺☺
Answered by smartbrainz
0

Error:

A software error is that cause's 'incorrect or unexpected result' or to function in unexpected ways in a 'computer program or system'. There are three kinds of errors: 'syntax errors', 'runtime errors', and 'logic errors'.  

  • A syntax error is an error in the 'syntax of a sequence of characters' or 'tokens' that are intended to be written in compile-time.
  • A runtime error is a program error that occurs while the program is running.
  • A logical error is a mistake in the 'source code' of the program that behaves in incorrect or unexpected behavior.

To know more

What is error tracking in software engineering?

https://brainly.in/question/2136187

Difference between error fault and failure in software testing with example

https://brainly.in/question/10801434

Similar questions