Software Flashcards
(48 cards)
What is a translator
A type of software that converts code written in one programming language into another
Is a translator low level or high language language
High level language
What is an assmbler
It is used to convert assembly language into machine code
What is an interpreter
A type of translator that converts a high level language into a low level language. But it checks one line of code and then executes it before checking the next
What is a compiler
It is a type of translator that converts a high level language into a low level language. But it checks all code before running the program
Advantages of an interpreter
-Translates one line is code into machine code and the runs the program
-Reports a syntax error as soon as it picks it up and program is stopped
Advantages of a compiler
-Produces an executable file
-Useful when a program has been finished and is ready for testing or distribution
Types of translators
-Assembler
-Interpreter
-Compilers
Two types of programming languages
High level language and low level language
What is high level language
A type of programming language that uses human like language words
Examples of where high level language is used
-Python
-JavaScript
-VB.NET
What is low level language
A type of programming language that is closer to the machine’s language such as assembly language or binary code
What is machine code
Binary code it is an example of a low level language
What is assembly language
Code written is mnemonics that allows direct manipulation of the hardware.
Benefits of high level language
- It is portable and machine independent
-Easier for users to debug
-Easier for humans to understand
Benefits of low level language
-Can directly manipulate the hardware
-Machine code doesn’t have to be converted making it faster than high level language
What is an interrupt
A signal sent to the processor to tell it that something needs its attention
Examples of a software interrupt
-Division by 0
-Two processes attempting to access the same memory location
Examples of hardware interrupt
-Key pressed on a keyboard (data input)
-Error from hardware
What is interrupt handler
A program that organises interrupts into an order based off priorities
What is interrupt service routine
A program that retrieves an interrupts and performs that required actions.
What is a bootloader
The first instructions a computer runs that tells it where to find the boot sector on the hard drive. It is stored in the ROM’s firmware
What is firmware
Programs stored in the ROM and are loaded when the computer starts
What is bootstrap
The first instructions and commands loaded when a computer is turned on