3.6.2.1 Classification of Programming Languages. Flashcards
Why did we write programs in a low level language?
Because there was limited speed and memory. These languages directly manipulated the processor, required a great deal of effort on the part of the programmer and were prone to errors.
Why were high level languages developed?
They were developed to allow for instructions to be communicated to a computers processor, making the job of programming far easier.
Outline what is meant by a low level language.
The earliest electronic computers could only be programmed with low-level languages.
Programs written in low-level languages are specific to the type of processor they are
written for and directly affect the computer’s processor.
Define what is meant by machine code.
Binary code that a machine can understand an execute.
Used to represent instructions.
Uses only the binary digits 1 and 0 to represent instructions aka binary code that a machine can underst Programs written in machine code are long and extremely difficult to understand. Because of this, machine code programs are prone to errors and difficult to debug.
Outline the two types of a lower-level language.
There are two categories of low-level languages, machine code and assembly language.
Why are programmers not constrained when using machine code?
Because the machine code directly manipulates a computers processor, it is a very powerful paradigm.
Do programmers have to translate machine code before execution?
There is no need to translate before execution, making the paradigm useful for embedded systems and real time applications, where speed of execution is paramount.
Give examples of a high-level programming language.
Java.
Python.
What is an imperative language?
A programming language that gives a command to do something.
Why are imperative languages high-level?
They allow a programmer to think about the program as an algorithm and to not be concerned about how each tiny step is executed in machine code.
What must be done to a program before execution?
The program must be translated into machine code.
What is 1GL?
An abbreviation for first generation language. Aka a low-level programming language such as machine code or assembly language.
What is a 2GL.
An abbreviation for second generation language. Aka a high-level programming language such as java or python.
Why was assembly language developed?
They were developed with the intention of simplifying the process of writing computer programs.
Define a mnemonic.
A system such as a pattern of letters, ideas, or associations which assists in remembering something.