2.5 Translators and Facilitators of Language Flashcards

1
Q

What is a high-level language?

A

A programming language that enables the development of a program in a much more user-friendly programming context

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

What are the advantages of high-level languages?

A

Easy to read and understand

Code will work on many different computers and processors

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

What does each instruction in a high-level code represent?

A

It represents many machine code instructions

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

What are the disadvantages of high-level language?

A

Code has to be converted into machine code for the computer to understand so, therefore, is less efficient
Programs will be less memory efficient as there is no control over what the CPU does

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

What are low-level languages?

A

Code that can be understood by the computer
Machine code (Binary)
Assembly language

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

What are the advantages of low-level languages?

A

Programs are more memory efficient as you control what the CPU does
Machine code can be executed without translators

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

What are the disadvantages of low-level languages?

A

Very difficult to read and understand

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

What does each instruction in low-level language represent?

A

One particular instruction of machine code

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

What is the purpose of Assemblers?

A

Turns assembly language into machine code

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

What is the purpose of Compilers?

A

Translate all of the code in one go

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

Do compilers create an executable file?

A

Yes

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

When does the Compiler give a list of errors?

A

At the end of the program

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

What is the purpose of interpreters?

A

Transaltes the code line by line

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

Do Interpreters create an executable file?

A

No

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

When does the Interpreter give a list of errors?

A

Interpreter will stop after each error

Helps debugging

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

What is an IDE?

A

Integrated design environment

17
Q

How are Editors a useful feature in an IDE?

A

Includes line numbers and colour coding for different features of the code
Helpful for tracking and fixing errors

18
Q

How can a Run-Time Environment be a useful feature in an IDE?

A

Outputs the window

Stimulating different devices the program can run on

19
Q

How can Error Diagnostics - debugging tool - be a useful feature in an IDE?

A

Helps to find and solve errors using diagnostic tools

20
Q

How can translators be a useful feature in an IDE?

A

Translates the code into machine code so the computer can understand it

21
Q

How are Breakpoints a useful feature in an IDE?

A

It can gather information by stopping the program on certain lines

22
Q

What are the advantages and disadvantages of a compiler?

A

Code is usually optimised
Original source code is kept a secret
No need for translation software at run-time

Code needs to be recompiled when the code is changed
Program will not run with syntax errors

23
Q

What are the advantages and disadvantages of interpreters?

A

Easy to write source code because program will always run
Code does not need to be recompiled
Makes it very easy for beginner programmers to learn to write code

Source code is needed
Code is not optimised