Assemblers , interpreters , compilers and Java Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Machine Code

A

Is a low level language

Pros:
- Works with low powered computers

Cons:
- Difficult to learn
- Hard to enter without errors
- Machine specific

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

Assembly language

A

A low level language

Pros:
- Easier to undertand
- Works with low powered machines
- Easier to enter without making mistakes
Cons:
- Is machine specific

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

Assembler

A

Program that converts assembly language to machine code

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

Low level language

A

Little or no abstraction from a computers instruction set architecture

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

High level language

A

Language with strong abstraction from the computers instruction set architecture

Pros:
- Easier to learn
- Easier to understand code
- Harder to make mistakes
- Not machine specific

Cons:
- Requires more processing power
- Doesn’t allow for same level of control as as low level code

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

High level language

A

Language with strong abstraction from the computers instruction set architecture

Pros:
- Easier to learn
- Easier to understand code
- Harder to make mistakes
- Not machine specific

Cons:
- Requires more processing power
- Doesn’t allow for same level of control as as low level code

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

Interpreter

A

Translates high level code to low level line by line at run time

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

Interpreters pros / cons

A

Pros:
- Going through code line by line helps with debugging
- Quicker to re interpret than re compile
- Not machine specific

Cons:
- requires more processing power
- Translated at run time (makes slower)
- Needs interpreter to be present at run time
- Source code is not protected

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

Compiler

A

Translated high level code to low level in one go

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

Compiler pros / cons

A

Pros:
- Compiled code is faster then interpreted
- Only machine code is present
- Difficult to decipher (programers can protect intellectual rights)
- Does not need an interpreter to be present at run time

Cons:
- Requires more processing power than Low level language
- Program creation is slower , as you have to compile each time you make changes
- Is specific to each OS (a different version of the app)

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

Java

A

Is designed to be a hybrid between a compiler and interpreter
Compiles code into java byte code
Faster to interpret
Not machine specific
- Needs java virtual to interpret java byte code
- Harder to decipher than interpreted code but not compiled

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