Types of programming languages Flashcards
Types of programming languages
What is ‘machine code’?
A binary instruction that can run within a CPU
Types of programming languages
What is this?
• A binary instruction that can run within a CPU
machine code
Types of programming languages
What is ‘assembly language’?
• A set of mnemonic instructions, each with a machine code (binary) equivalent
Types of programming languages
What is this?
• A set of mnemonic instructions, each with a machine code (binary) equivalent
assembly language
Types of programming languages
Assembly language is known as a ‘low level language’. What does that mean?
• It is almost the same as machine code. There is a direct link between an instruction in assembly and the machine code it represents
Types of programming languages
What is this describing?
• It is almost the same as machine code. There is a direct link between an instruction in assembly and the machine code it represents
Assembly language
Types of programming languages
What is an ‘instruction set’?
• The complete set of commands available is the instruction set of the CPU
Types of programming languages
What does this describe?
• The complete set of commands available is the instruction set of the CPU
Instruction Set
Types of programming languages
Give one advantage for using assembly language?
• Programs run very fast compared to programs written in high level language, because there is less code overall
Types of programming languages
What is this?
• Programs run very fast compared to programs written in high level language, because there is less code overall
one advantage for using assembly language
Types of programming languages
Give two features of a high level language
- It has a set of keywords such as PRINT or IF
* It has a set of grammar rules (syntax) which define how to combine the keywords correctly
Types of programming languages
What is this?
• It has a set of keywords such as PRINT or IF
• It has a set of grammar rules (syntax) which define how to combine the keywords correctly
two features of a high level language
Types of programming languages
Give three examples of a high level language which could be used to write source code
- Python
- Java
- C++
Types of programming languages
What are these?
three examples of a high level language which could be used to write source code
Types of programming languages
High level languages are machine independent. What does this mean?
• They can be ported to different computers and still run
Types of programming languages
What does this describe?
• They can be ported to different computers and still run
machine independent language
Types of programming languages
What is a translator?
• A piece of software that converts programming code into machine code
Types of programming languages
What is this?
• A piece of software that converts programming code into machine code
a translator
Types of programming languages
List the three different types of translators
- Assembler
- Complier
- Interpreter
Types of programming languages What are these? • Assembler • Complier • Interpreter
the three different types of translators
Types of programming languages
What is the purpose of an ‘assembler’?
• It converts assembly language instructions into machine code
Types of programming languages
What is this?
• It converts assembly language instructions into machine code
the purpose of an ‘assembler’
Types of programming languages
What is the purpose of a ‘compiler’?
• It converts high level source code into machine code
Types of programming languages
What is this?
• It converts high level source code into machine code
the purpose of a ‘compiler’