High and Low-level Programming Languages Flashcards

1
Q

What is classed as a low-level programming language?

A

A language which is fairly simple and provides little change from a computer’s instruction set architecture (e.g. machine code and assembly code).

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

What is machine code?

A

Binary code.

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

What is assembly code?

A

A low level code, which is a different way of writing machine code (but uses English).

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

What is classed as a high-level programming language?

A

Programming languages which are more sophisticated which will do more things (like memory management). These are easier to write and often work cross-platform on different CPUs.

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

Give 2 examples of high-level programming languages.

A

C++ and Python.

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

Give the names of the 3 main language translators.

A

The assembler, the compiler and the interpreter.

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

What does the assembler do?

A

It translates assembly language into machine code. It consists of mnemonics for machine op codes so assemblers perform a 1:1 translated from mnemonic to a direct instruction.

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

What does the compiler do?

A

It translates high-level code into a low-level language. It converts all the code at once into machine code usually to make it executable.

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

What does the interpreter do?

A

Executes other programs line-by-line. It’s slower, but easier to debug and create multi-platform code. It also translates high-level to low-level code.

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

Give the steps high-level code goes through to be run.

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

Define algorithm.

A

A logical step-by-step problem-solving procedure for solving a mathematical problem in a finite number of steps, often involving repetition of the same basic operation.

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

Define imperative programming language.

A

An imperative language uses a sequence of statements to determine how to reach a certain goal. These statements are said to change the state of the program as each one is executed in turn.

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