4.6.2.1 Classification of programming languages Flashcards

1
Q

When would you program in a low level language?

A

When you need the program to execute quickly and minimise object code size
When you’re writing code to directly access hardware or for a specific processor

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

Why program in assembly over machine code?

A

It’s easier to understand so you make less mistakes and it takes less time and is easier to debug. You can add comments and use symbolic names for operands and use labels

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

What does imperative mean in an imperative programming language?

A

The sequence of execution of instructions determined by the programmer, it consists of commands for the computer to perform.

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

What does declarative mean in a declarative programming language?

A

The programmer states what is to be done when programming but not how to do it, e.g SQL. You don’t program the step-by-step instructions but you explain what you want to happen.

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

What’s the differences between high level and assembly language?

A

HLL is quicker and easier to write, it’s easier to understand, easier to debug, less likely to make mistakes. Selection/iteration/sequence constructs are available, data types, variables, identifiers etc. The program will raise different types of errors in HLL and it’s more portable.

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

Why are there so many third generation programming languages?

A

Languages are sometimes used for certain areas and problems and provide certain function libraries. Some languages are designed for certain devices or hardware which creates competition between companies.

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

Explain the term low-level language.

A

A language that is very similar to / based upon the instruction set of the computer;

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