translators section 6 Flashcards

1
Q

high level language

A

source code is easy for humans to write but computers need to translate it into machine code

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

low level language

A

are tricky for humans to read and write but are easier for computers to run

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

features of low level

A

1) one instruction of code represent one instruction of machine code
2) difficult read, understand and modify
3) no need for a translator
4) control what the cpu does so programs will be more efficient and faster
5) written for one type of machine

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

features of high level

A

1) one instruction represents many instructions of code
2) written for many different machines
3) easy to read, understand and modify
4) no control over cpu so programs will be less efficient and slow
5) must be translated

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

types of translators

A

assemblers, compilers, interpreters

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

what assemblers do

A

turn assembly language into machine code

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

what compilers and interpreters do

A

turn high level language into machine code

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

compilers features

A

1) translates all code at the same time
2) only needed once
3) returns the errors for the entire program once complete
4) runs quickly but compiling takes longer

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

interpreter features

A

1) translates one instruction at a time
2) needed every time you run the program
3) return the first error it finds and then stops
4) runs slowely

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