Difference between interpreters and compilers Flashcards
What is an interpreter?
reads a high-level program and executes it.
What is a compiler?
* Python is considered an interpreted language
reads the program and translates it completely before
the program starts running.
What is a program basic computation?
Input
•Output
•Manipulation ( mathematical or text manipulation)
•Conditional execution
•Repetition
What are the types of program errors?
Syntax errors:
•Runtime errors:
•Logical errors (Bugs):
What is debugging?
The process of attacking bugs is called debugging.
What is a syntax error?give an example
Syntax errors: Errors in the syntax of the language.
Examples: punctuations, spacing, or typos.
What is Runtime errors?
The syntax is correct, but an error occurs when running the program.
Example: division by zero.
What is a logical error?
Logical errors (Bugs): The program has no errors reported, but the output is incorrect.