1.11 Flashcards

1
Q

First generation language

A

Machine code is a first-generation language where instructions are directly executable by the processor and written in binary code.

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

Low-level language

A

A low-level language is a programming language that directly translates to machine code understood by the processor.

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

Second generation language

A

Assembly code is a second-generation language that uses mnemonics that correspond almost exactly to machine code instructions.

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

High-level language

A

A high-level programming language uses English-like statements to allow users to program with easy to use code.

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

State two disadvantages of high-level languages?

A

The disadvantages of high-level languages are:

users cannot directly manipulate hardware

the program may be less efficient.

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

Translator

A

A translator is a program that translates program source code into machine code so it can be executed by a processor.

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

Compiler

A

A compiler is a translator that translates high-level languages into machine code all in one go, typically used when a program is finished.

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

Interpreter

A

An interpreter is a translator that translates high-level languages into machine code one line at a time as the program runs.

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

What does an assembler do?

A

An assembler is used to translate low-level assembly code into machine code.

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

What features can an editor provide?

A

An editor can provide basic formatting tools such as:

coloured keywords

auto-completion/correction

code commenting tools.

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

How do error diagnostics help with errors?

A

Error diagnostics can:

highlight code areas with errors

provide direct error messages

allow step-by-step debugging to find logic errors.

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