Component 1.6 - Principles Of Programming (Finished) Flashcards
What is a high level language?
A high level programming language is a language where code can be written that is similar to natural human language
Give an example of a high level language
- Java
- Basic
- C#
- Pascal
- Python
- COBOL
What is machine code?
Machine code does not resemble any natural language and is made up entirely of bit patterns (instructions or data) that can be executed directly by the CPU.
Can low level language code be widely used? Why?
No, In low level languages the program statements are written for a particular type of CPU and make direct reference to specific internal registers.
_____ level languages must be converted into _______ _______ before they can be executed by the ___.
High, machine code, CPU
When and where are high level languages used?
High level languages are used when execution speed is not the most critical factor. They are mainly used in most modern applications. E.g. Operating systems, word processors, social media apps
Why and when is Machine code or assembly code used?
Machine code or assembly code is primarily used when programming device drivers or embedded systems, where fast execution speeds are critical.
Professional game developers may also use low level features for optimum performance
What are two benefits of high level languages?
- Easier to understand / learn as their commands are similar to natural language
- Allow the use of powerful commands that perform quite complex tasks
What are two advantages of low level languages?
- programs can be made very efficient
- programs can run faster than with high level languages
What does low level language programming require?
Programming in a low-level language requires knowledge of the internal structure of the CPU
What does an assembler do?
An assembler converts assembly code to machine code