187k views
22 votes
Choose the type of error described.

_____occurs when the result is wrong because of the programmer's mistake, such as multiplying two numbers when they should have been added

_____occurs when you use the wrong punctuation, such as print 'hello' without parentheses

_____occurs when the program starts running, but encounters an error such as trying to divide by zero


DUE TONIGHT!!!

1 Answer

6 votes

Answer:

1. Logical error.

2. Syntax error.

3. Runtime error.

Step-by-step explanation:

A compiler can be defined as a software program or application designed to read sets of sequential instructions written by programmers and to translate these set of instructions into binary digits for the execution of commands on the central processing unit (CPU) of a computer system.

The three (3) main types of error experienced by a compiler are;

1. Logical error: occurs when the result is wrong because of the programmer's mistake, such as multiplying two numbers when they should have been added

2. Syntax error: occurs when you use the wrong punctuation, such as print 'hello' without parentheses

3. Runtime error: occurs when the program starts running, but encounters an error such as trying to divide by zero

User Rosu Alin
by
7.0k points