Computer Systems Architecture Flashcards
What is a computer?
hardware, software and peripheral devices that work to solve problems
What are the components of a computer?
hardware, software, data, communication component
What is the hardware of a computer?
the physical mechanisms such as the cpu, memory, storage, input/output devices and buses
What is the software of a computer?
provides instruction that tell the hardware what to do
What does system software do?
interfaces between user programs and hardware
What is application software?
the users program
What do compiler do?
translates high level language to instructions the hardware can execute
What does data do in a computer?
computer can manipulate data and is only recognised in binary representation
What does the communication component do in a computer?
transports data to connect computer systems
What does div do?
it gives the quotient of a division
What does mod do?
the remainder of a division
How do you express a real number?
The digit in the number times by the power it is at
eg:
12.56 = (1 * 10^1) + (2 * 10^0) + (5 * 10^-1) + (6 * 10^-2)
How do you convert a decimal to any base?
get the number and divide it by the base of the conversion, then the remainder is the first digit, then repeat this until you can’t divide the number by the base any more.
eg: 678 → hexadecimal
678 / 16 = 42 R 6
42 / 16 = 2 R a(10)
2 / 16 = 0 R 2
read from bottom to top
therefore 678 → 2a6
How is ASCII represented in a computer?
a unique 7 bit binary code is given to each character and is stored in a byte
How are numbers internally represented?
numbers are input as string which are then converted into binary
What determines the number of integers that are able to be represented?
the bit length patterns
= 2^n
half are signed and not signed
How do you reduce time when going from decimal to binary?
decimal -> hexadecimal -> binary
How do you write negative numbers in two’s compliment?
2^n - Number
What is the range of fixed length integers using n bits?
[-2^(n-1)] <= n <= [2^(n-1) -1]
What is the most significant bit?
always the sign bit
What are the commutative laws?
A&B = B&A
A|B = B|A
What are the AND laws?
A&0 = 0
A&A = A
A&1 = A
A&-A = 0
What are the OR laws?
A|0 = A
A|A = A
A|1 = 1
A|-A = 1