computer systems Flashcards
define hardware
physical components of a computer
e.g
keyboard
monitor
mouse
define software
the programs that run on a computer, control the hardware
high level language
-any program written in high level is called source code
-need to be translated to machine code
-easy for humans to understand(less complex)
e.g:
python
java
c++
low level language
-directly translates to machine code
-difficult to understand
-execute quicker
e.g:
machine code (binary)
assembly language
translators
-convert high level language to machine code
3 types:
interpreter
compiler
assembler
compilers
-takes source code and translates it to machine code in one go
Advantages:
-compiled programs=run quick, as already translated
-can be supplied as an executable file
-optimise code- runs quicker, takes up less memory space
Disadvantages:
-recompiled every time program is changed
-source code compiled on one platform won’t run on another
interpreters
-translates to machine code one instruction at a time
Advantages:
-instructions executed as they’re translated
-errors quickly noticed// when error is found, program stops+ user is notified
Disadvantages:
-runs slowly
-has to be translated each time it’s run
-no executable file, so source code has to be supplied (can be modified easily)
-not optimised code
assemblers
-translate assembly language (low level) to machine code
-create 1 machine code for each assembly instruction
AND gates
-output only 1 (TRUE) if both inputs are 1 (TRUE)
-look like sideways U
OR gates
-output = 1 when one or both inputs are 1
-looks like crescent
NOT gates
-only one input
-output =0 when input = 1 and vice versa
-triangle+circle
system software
-any software that helps run/manage
e.g:
security software
file management
application software
-allows user to perform a task
e.g:
word
browser
operating systems
-collection of programs that manage+ control the computer
roles of operating systems
-control hardware components
-provide platform for software to run on
-provide user interface
-manage processes
-manage memory
-manage input+output devices
-manage apps
-manage security