4. Computer Systems Flashcards
hardware
the physical parts of a computer system
software
programs that are ran using the hardware
application software
application software is software that performs end-user tasks (task that happen on a regular/daily basis)
system software
a computer program designed to run the computer’s hardware and applications
truth table
a table that shows the breakdown of logic by listing every possible outcome
draw a truth table for the AND gate
input, output
A B, X
0 0, 0
0 1, 0
1 0, 0
1 1, 1
draw a truth table for the OR gate
input, output
A B, X
0 0, 0
0 1, 1
1 0, 1
1 1, 1
draw a truth table for the NOT gate (only 1 input)
input, output
A, X
0, 1
1, 0
draw a truth table for the XOR gate
input, output
A B, X
0 0, 0
0 1, 1
1 0, 1
1 1, 0
logic circuit
a combination of logic gates together to create a circuit
what is the simple expression for AND? (not the diagram)
. (a fullstop)
what is the simple expression for OR? (not the diagram)
+ (a plus)
what is the simple expression for XOR? (not the diagram)
⊕ (idek what this is called)
what is the simple expression for NOT? (not the diagram)
overbar (a line above the letter, like Ā)
what does the OS handle the management of? (5)
processor(s)/cpu
memory
input/output (I/O) devices
applications
security.
What is an operating system and why do we need it?
Software that is loaded by the computer after the initial boot up. It’s necessary for a computer as it provides the user with the ability to interact with the computer screen.
low-level language
A language in which programs are written in a way that a computer can understand
high-level language
Language in which programs are written in stone closer to that of human language
give two examples of low-level languages
machine code, assembly language
give 2 examples of high-level languages
python, java
what is the difference between machine code and assembly language
Machine code is literally the 1s and 0s that’s a computer can understand, whereas assembly code is written using mnemonics to assign meaning to the 1s and 0s.
advantages of low-level language programming compared with high-level language programming (3)
- Gives you complete control over your code and the machine that it is being executed on
- Useful for systems designed with microprocessers
- Code is run directly; there is no intermediate stage between the source code and a program execution
advantages of high-level language programming compared with low-level language programming (2)
- Code is easy to understand for humans
- Many tasks can be performed with one line of code
What are the three common types of program translator?
interpreter
compiler
assembler
How does an interpreter work?
It uses machine code subroutines to carry out the commands. They go through the code 1 line at a time, translate it and execute it. When an error is found the code stops.
How does a compiler work?
These translate the high-level code into machine code directly. The whole code is translated and then run.
How does an assembler work?
It translates code written in assembly language directly into machine code.
What is a translator?
A program that changes assembly language or high-level languages into machine code.
What are the five main components of a central processing unit (within the Von Neumann architecture)?
arithmetic logic unit
control unit
clock
register
bus