Translators and facilities of languages Flashcards

1
Q

What is machine code?

A

A low level language composed of binary instructions which can be directly understood by the computer

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

What are the disadvantages of machine code?

A

Hard to write as it is very error-prone

Hard to understand by humans

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

What is a low level language?

A

A programming language similar to machine code

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

What is assembly language?

A

A low level language which uses mnemonics

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

What are the advantages of assembly language?

A

A lot easier to write and to understand than machine code

Easier to understand by the computer than a high level language

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

What is a disadvantage of assembly language?

A

It can be difficult to learn

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

What is an example of where assembly language is used?

A

In embedded systems

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

What is a high level language?

A

A programming language allowing programmers to code a solution to a problem

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

What are 3 features of a high level language?

A

It isn’t machine specific
Uses English-like statements
Uses key words
Uses syntax (rules)

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

What is a translator?

A

A program which converts a high level language or low level language into machine code

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

What are the 3 types of translators?

A

Assembler
Compiler
Interpreter

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

What is an assembler?

A

A program which translates assembly language into machine code

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

What is a compiler?

A

A program which translates high level languages into machine code

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

What is an interpreter?

A

A program which translates high level languages into machine code one line at a time, executing each as they are translated

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

What are the 2 main features of a compiler?

A

Creates an executable file which can be used without needing the compiler present
Is quick to run

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

What are the 4 main features of an interpreter?

A

Translates/executes one line at a time
Is slow to run
Requires the interpreter to be present to execute the program
You can use it to quickly identify problems

17
Q

What is an IDE?

A

Integrated Development Environment: a software package that provides tools to develop a program or software

18
Q

What facilities does an IDE provide?

A
Source code editor
Interpreter
Compiler
Automation tools
Debugger