Part 1 Block 1 - Binary Flashcards
As we know, binary consists of ‘0’s and ‘1’s.
0, when the electricity is off, and 1 when it is on.
It is not quite as simple as this.
What is the range of volts for ‘0’ or off?
What is the range of volts for ‘1’ or on?
0 - 1.3v for ‘0’s
1.7+ for ‘1’s
Why is there a gap between 1.3v and 1.7v?
This gap means that if there is any small random dips or increases in the voltage (called noise), the two binary digits will still be distinguishable.
If the level of noise is too high, there is a small chance that the voltage might be pushed into the gap or even into the wrong range.
What is this called?
A bit error
If bit errors can occur, why not raise the voltage of the ‘1’s to widen the gap?
More voltage, more heat, more problems!
The process of combining the symbols (e.g. ‘0’s and ‘1’s) to represent data is called _____________?
encoding
If two or more number systems are being considered, we use a ______________ to show which representation is being used.
subscript
e.g. 1001 = 9
2 10
When we consider binary representations in the context of computing, we often talk about each symbol being stored in a bit. So how many bits would the binary number 1001 be?
4 bits long
Covert the denary number 53 into an 8-bit binary number.
0011 0101
When we write long binary numbers we divide them into groups of ____?
4
e.g. 00110101 becomes 0011 0101
An unsigned integer is an integer that is …?
Greater than or equal to zero and only ever positive.
What denary numbers could we represent with 3-bits (aka 2^3)
2^3 = 8
So, we can represent 8 denary numbers, 0-7
e.g. 000 = 0
001 = 1
010 = 2
What is the result of the following addition in binary?
110 + 101 =
What happens to the number of bits?
= 1011
The number of nits increases from 3-bits to 4-bits.
Can we represent negative numbers in binary?
Yes, we can.
How can we represent a negative denary number with a 3-bit binary number and what is it called?
We can use the first bit to represent either a positive or a negative.
e.g. a zero could rep a positive and a 1could rep a negative:
001 = 1
101 = -1
This representation is called:
sign-magnitude representation
If we have 4 bits, which means 2^4, so 16 different integers that can be encoded, how many can be used to represent negatives?
As we know, the rule in sign magnitude representation is that if we have n bits available, there will be 2^n possible encodings.
Half of them, so 2^n/2, will be used to represent 0 and positive integers, and half of them will be used to -0 and the other negative integers.