Principles Of Programming. Flashcards
What is high level languages?
These languages are closer to the programmer’s natural language.
Why use high level language?
they are easier to understand and are less complex than machine code.
This makes both programming and debugging simpler.
Why not use high level language?
they are restricted to the number of statements built into them.
If the programmer wants a program to do something but a statement does not exist to do so, the task cannot be done.
What are some high level languages?
Python
Java
C++
C#
What is a source code?
Any program written in a high-level language is known as source code.
Source code must be translated into machine code before the computer can understand and execute it.
What is low level language?
Low-level languages are languages that sit close to the computer’s instruction set and do not resemble natural languages such as English or Welsh.
What are the 2 types of low level language?
machine code
assembly language
What is machine code?
a computer programming language consisting of binary or hexadecimal instructions which a computer can respond to directly.
Advantages of using machine code?
do things that might not be possible in a high-level language.
where machine code instructions are like predefined words.
to build complex sentences or to keep programs very short and simple.
What are some disadvantages of using machine code?
Machine code is notoriously difficult to write in, understand and debug because it consists of binary code.
Usually, when programmers need direct control they use another type of low-level language called assembly language.
What is assembly language?
Assembly language sits between machine code and high-level languages.
assembly language uses mnemonics (short abbreviations).
translates high-level languages into machine language.
Why use a low level language? Application
Low-level languages are used when speed is essential, for example anything that interacts with the software
Why use a high level language? Application
High-level languages are used for more common, everyday applications that need a lot of programming code and where speed is not essential during program execution.
Word processing packages are written in high-level languages.