2.5 Languages And Translators Flashcards

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

What are high level languages?

A

Code written similar to human language
Easier to understand and use
Fewer errors
More complex and powerful commands
Must be translated into machine code as cannot be directly executed by CPU

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

What are low level languages?

A

Don’t closely resemble human language, making it harder for humans to understand and write in
Used when a program must be executed quickly as interacts directly with hardware

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

Machine code

A

Pure binary code that computers can directly process and execute
Tedious for humans to understand and write
Very specific commands
Execute fastest, no need for translation

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

Assembly language

A

Specialised command mnemonics to perform actions
Easier to understand and spot errors
Faster to execute than high level because it is used to directly control the CPU

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

Translator

A

Changes a program written in one language to another

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

Interpreter

A

Translates source code one line at a time into machine code
Slower than compiler because code must be reinterpreted each time the program is run
Smaller, simpler, programs
Report errors immediately and stops program from running
Can be edited and run without translating whole program
Reinterpret program every time it is run

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

Compiler

A

Translates source code into machine code all in one go and produces an executable file that can run on other machines
More efficient code, runs faster
Large complex programs
Analyse entire program to produce error file
Analysis only required once
Recompiled if any changes are made

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

Editor

A

Nuer and edit source code
Automatic formatting, line numbering, colour coding, statement completion

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

Compilers and interpreters

A

Translators

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

Breakpoint

A

Selects a specific point and displays variable value at that point
Code executed one line at a time to find error

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

Variable watch

A

Displays current value of a selected variable

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

Trace

A

Logs values of variables and outputs of the program as the code is executed line by line

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

Error diagnostics

A

Display information about an error, such as line number and error type

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

Runtime environment

A

Checks for runtime errors
Allows trace and breakpoint to be used

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