STUFF I DO NOT KNOW FOR PROGRAMMING Flashcards

1
Q

What do interpreters do?

A

Takes each line of high level language and translates it into machine code.

It passes on instructions to processor go carry out

Works its way through program ONE line at a time

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

What are the advantages of an interpreter?

A

The program will run even if it is not finished.

Easy to spot errors during translation

Program will run as soon as first line is translated

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

What are the disadvantages of an interpreter?

A

No copy of the machine code saved

Process of translating program slows down running of it

Need a translator program or you cannot run it

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

What do compilers do?

A

They take high level language and translates whole program into machine code at once. This then can be saved and kept

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

What is a compiler an example of, in terms of files?

A

An .exe file

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

What are the advantages and disadvantages of a compiler

A

Adv

Machine code can be saved. Program only needs to be translated once.

Doesn’t need a translator program to run machine code

Runs quicker

Disadv

Have to wait until code is complete and errors are fixed before translation can be finished

Each time program is changed it has to be re translated

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

What are execution errors?

A

Entering text when program asks for a real number

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

What do conditional loops start with

A

While

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

What is a conditional loop

A

You don’t know the amount of loops in advance

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

What do fixed loops start with?

A

For

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

What are fixed loops

A

You know how many times something has to be repeated

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

What are translators used for?

A

Translating code, written by humans, into code understood by computer processors

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