Runtime vs Compile time Flashcards

Learn the difference between runtime and compile time (8 cards)

1
Q

What is compile time?

A

Compile time is the phase in which the source code of a program is translated into machine code or bytecode by a compiler.

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

What does the compiler do during complation?

A

During compilation the compiler checks for syntax errors, type correctness, and some semantic issues in the code.

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

What happens if there is a compile time error?

A

If there is a compile time error it will prevent the program from being executed until it is fixed.

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

What is runtime?

A

Runtime occurs when compiled code is executed by a processor.

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

What happens during runtime?

A

During runtime the program interacts with system resources (such as memory and files) and performs computations based on the instructions given in the code.

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

What happens if you get a runtime error?

A

The program can crash, display an error message or behave unexpectedly.

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

When does compile time occur?

A

Compile time occurs before the program is run, allowing for early detection of syntax and type errors.

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

When does runtime occur?

A

Runtime occurs during program execution.

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