Languages and Environments Flashcards

1
Q

Low level?

A

language that a computer will understand; consists of 0s,1s (machine code etc.)

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

High level?

A

language that a human will understand, use of English words such as repeat, if, loop etc.

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

Procedural?

A

code will be processed logicall and in a set order; passes data from one procedure to another using parameters.

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

Declarative?

A

consists of a knowledge base of facts and rules that can be queried

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

Object orientated?

A

Objects are created using classes that will contain code and data. data associated is known as attributes and its values are known as states; sub classes can inherit attributes from a pre defined class

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

Interpreter?

A

takes each line of source code, translates it into machine code then passes it to processor to carry out that instruction; it works its way through line by line.

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

Advantages of interpreter?

A

will run even if not finished, easy to spot errors.

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

Disadvantages of interpreter?

A

no copy of machine code is saved meaning the source code has to be translated every time, longer, slows down the running, you will need a translator program or you cannot run it.

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

Compiler?

A

reads the source code and translates the entire program into machine code once; machine code then saved and kept and doesn’t need to translated before ran.

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

Advantages of compiler?

A

one translated once, does not need translator program, quicker

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

Disadvantages of compiler?

A

you have to wait until code is complete and the errors have been fixed before the translation can be finished and the machine code is run, everytime it is changed needs to be re-translated.

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