Difference between interpreters and compilers Flashcards

1
Q

What is an interpreter?

A

reads a high-level program and executes it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a compiler?
* Python is considered an interpreted language

A

reads the program and translates it completely before
the program starts running.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a program basic computation?

A

Input
•Output
•Manipulation ( mathematical or text manipulation)
•Conditional execution
•Repetition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the types of program errors?

A

Syntax errors:
•Runtime errors:
•Logical errors (Bugs):

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is debugging?

A

The process of attacking bugs is called debugging.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a syntax error?give an example

A

Syntax errors: Errors in the syntax of the language.

Examples: punctuations, spacing, or typos.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is Runtime errors?

A

The syntax is correct, but an error occurs when running the program.

Example: division by zero.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a logical error?

A

Logical errors (Bugs): The program has no errors reported, but the output is incorrect.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly