Data Flashcards
What is BCD?
Binary coded decimal which is a way to represent decimal numbers in binary, where each digit is represented by a nibble(4-bit sequence). eg 364 would be 0011 0110 0100
How would you represent a negative number in binary?
Using either sign and magnitude or twos complement.
What is sign and magnitude?
A form of binary that shows both positive and negative, with the first bit representing the sign of the number. 0 is positive, 1 is negative. eg. 1001 = -1
What is twos complement?
A form of binary that shows both positive and negative numbers, where digits from bit 0 to the start of the set is written as it is and all others are inverted. eg. -12 = 11111100 in twos complement
What is an overflow error?
Where the result of operation is outside of the defined range. eg In binary addition where the addition of two number each in a single byte is larger than a byte and therefore two bytes are needed to store the result.
What disadvantage has sign and magnitude got?
You can’t add + and - symbols together, therefore you end up with a wrong number during binary addition or subtraction using sign and magnitude.
How would you perform a binary subtraction?
Convert the number you’re taking away to the opposite sign using twos compliment. Then add the two together.
What do you do when a carry occurs with two’s compliment arithmetic?
- When you add a positive to a negative you ignore the carry. 2. When adding two negative numbers you will always get a carry. Only ignore it if bit 7 is 0. 3. When adding two positive numbers you shouldn’t get a carry. You check whether your answer is valid using bit 7.
What are subscripts used for in numbers?
The subscript shows what base the number is in.
eg. 10001010 is a denary number but 1000102 is binary
What is a nibble?
half a byte
Name the order for bits to petabytes.
bits
bytes
kilobytes
megabyte
gigabytes
terabytes
petabytes
How many bits are in a byte?
8
How many bytes are in a kilobyte?
1024
What is a character set?
A defined list of characters recognized by the computer hardwareand software. Each character is represented by a unique binary number.
What is ASCII?
The American Standard Code for Information Interchange.
This is one of the two main recognised character sets, which is used on many personal computers.
Each character is represented by a byte.
7 bits are used for all the common characters used on a keyboard (128)
The 8th bit can be used as a check digit or used to further represent another 128 characters meaning ther character set would then have 256 characters.
What is EBCDIC?
The Extended Binary Code Decimal Interchange Code.
This is a character set used by older mainframe computers. This set uses different code to ASCII and therefore can’t ‘talk’ directly to another PC.
This is only really used in big businesses and they are generally the only ones that use mainframes these days.