Computers: Unit 20 : Programming Languages Flashcards
- What is an instruction set?
The list of all possible comments a particular CPU knows how to carry out.
- What is machine code?
The binary code representing each of the instructions in the instruction set.
- What is translator?
A program that converts source code into machine code.
- What is a source code?
The text of program that the program writes.
- What is an assembler?
Translate the mnemonics of assembly language program into machine language instructions for the microprocessor to carry out.
- What is assembly language?
a low level language written using when a mnemonics.
- What are the two types of programming languages?
- low-level programming language
- high-level programming language
- What is a low-level programming language?
A programming language is closely related to CPU’s machine code.
What is a high level language?
- high level language is the use of human language (standard english) to write a programming code that is executed by the computer
- What is mnemonic?
A short simple acronym that represents each of the instructions in a CPU instruction set.
- What is emulator?
Hardware or software that allows one type of computer system to behave like another.
- What is reboot?
To start a device again.
12.5 what is object code?
- the translated source code. often this will be machine code, but might also be an intermediate code, which has to be further translated and executed one line at a time.
- What are the 3 reasons for writing programs in assembly language is challenging?
- Very limited range of instructions is available.
- You have to mange all your data.(no strings, integer, etc) you have to decide how to represent your data.
- Debugging is difficult. Any bugs may make the machine crash.
How is assembly language used nowadays?
embedded systems
- real-time systems
- operating system development, (where control over the hardware is necessary.)
- What are the 3 types of translators?
- assembler
- compiler
- interpreter
- What are the 2 types of translators used in a high-level programming language? define
- compiler:- a translator that converts high-level language source code into object code, often machine code. The source code is translated all at once and saved to be executed later.
- interpreter:- a translator that converts high-level language source code into object code, often machine code. The source code is translated and executed one line at a time.
- Give 4 comparisons of low-level languages and high-level languages.
- Low-level languages are machine-friendly, very difficult for humans to understand but easy for machines to interpret whereas high- level languages are programmer-friendly, easy to understand, debug.
- Give 7 comparisons of low-level languages and high-level languages.
- LOW LEVEL to HIGH LEVEL
- machine- friendly — programmer friendly.
- Assembler for translation— Compiler/ interpreter for translation.
- Memory efficient.— Consumes more memory not memory efficient.
- Cannot be ported from one device to another — easily portable.
- Little to no abstraction — High level of abstraction.
- Knowledge of hardware is important for writing programs —– Little to no hardware knowledge required.
- What are the 4 examples of high-level programming language?
- Python
- c++/c#
- java
- Visual basic
- What are the 3 types of differences between an interpreter and compiler?