4.6.2.1 Classification of programming languages Flashcards
When would you program in a low level language?
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
Why program in assembly over machine code?
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
What does imperative mean in an imperative programming language?
The sequence of execution of instructions determined by the programmer, it consists of commands for the computer to perform.
What does declarative mean in a declarative programming language?
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.
What’s the differences between high level and assembly language?
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.
Why are there so many third generation programming languages?
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.
Explain the term low-level language.
A language that is very similar to / based upon the instruction set of the computer;