Programming Flashcards
High level languages
Program language that allows code to be written
-uses instructions based on a recognisable human language – usually English.
provides abstraction.
It hides (abstracts) more complex instructions from
the programmer.
must be either compiled or interpreted into a low-level language.
Low-Level Languages
uses instructions that are closer to what a computer understands.
Assembly Language
a low level language
Programmers have to write instructions using acronyms to control the components of the CPU and move data around the CPU’s registers.
assembler
converts assembly language into machine code.
Machine Code
a low level language
the set of instructions that a computer processor actually uses.
Machine code is binary that represents both instructions and data.
Advantages of High-Level Programming Languages
Easier for humans to understand.
Easier to write programs
Easier to debug programs
Programs can be written on one type of computer (e.g. Windows) but run on many different types of computer (e.g. Apple, Linux).
Disadvantages of High-Level Programming Languages
Programs need to be converted into a low-level language before they can be run.
This can make a program run slower if it is interpreted.
Advantages of Low-Level Programming Languages
Programs are considerably faster.
Programs use less memory space (RAM).
Disadvantages of Low-Level Programming Languages
Low-level programs are very complex for a human to write.
They are also very difficult to debug.
The programs may only run on one specific computer architecture e.g. an Intel processor.
Compilers
changes a computer program written in a high-level programming language into either assembly language or machine code.
Interpreters
convert a high-level computer program into machine code line-by-line.
Translators
Compilers, interpreters and assemblers are all types of translator.
They translate a computer program from one language to another language.
Domain-Specific Languages
computer languages are written for a specific purpose within a specific area of ICT.
HTML is only used to create webpages.
SQL is only used to work with databases.
Static Variables
is created when the program starts and is stored in memory until the program ends.
It cannot be deleted and re-created
Dynamic Variables
is only stored in memory when it is being used by a program. It is deleted from memory when it is not being used anymore.