4.6.2.1 Classification of programming languages Flashcards Preview

Computing Theory > 4.6.2.1 Classification of programming languages > Flashcards

Flashcards in 4.6.2.1 Classification of programming languages Deck (7)
Loading 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

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

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.

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.

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.

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.

7
Q

Explain the term low-level language.

A

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

Decks in Computing Theory Class (102):