SLR 2.6 Data representation Flashcards
What is binary?
Binary describes a numbering scheme in which there are only two possible values for each digit: 0 and 1 (base 2 rather than base 10).
In computing binary refers to any digital encoding system in which there are exactly two possible states. E.g. in memory, storage, processing and communications.
The 0 and 1 values are sometimes called “low” and “high” respectively.
What is hexadecimal?
A numerical system of notation which uses 16 rather than 10 as its base. The 16 hexadecimal base digits are 0-9 and the letters A-F.
What is denary?
A numerical system of notation which uses 10 as its base. The 10 denary base digits are 0-9.
What is a character set?
The set of symbols that may be represented in a computer at a particular time. These symbols, called characters, can be letters, digits, spaces or punctuation marks, the set includes control characters.
What is ASCII?
A character set devised for early telecommunication systems but proved to be ideal for computer systems. ASCII codes use 7-bits giving 32 control codes and 96 displayable characters (the 8th bit is often used for error checking).
What does ASCII stand for?
America Standard Code for Information Interchange
What is UNICODE?
A standard character set that replaces the need for all the different character sets. It incorporates characters from almost all the world’s languages. It is a 16-bit extension of ASCII.
Put these in order:
nibble, byte, bit, petabyte, megabyte, gigabyte, kilobyte, terabyte,
bit, nibble, byte, kilobyte, megabyte, gigabyte, terabyte, petabyte
Convert the following 8 bit binary number into denary:
10100011
128 + 32 + 2 + 1 = 163
Convert the following hexadecimal number into denary:
CC
Since hexadecimal C is the equivalent of 12 and the positions from right to left in hexidecimal are units then 16s we have:
16x12 + 12 = 204
Convert the following 8 bit binary number into hexadecimal:
01011010
To work out hexadecimal from binary split the 8 bit byte into two nibbles and convert each value into a hexadecimal value:
0101 = 5 1010 = A
so 01011010 = 5A
Convert the following hexadecimal number into 8 bit binary:
B7
To work out an 8 bit binary number from a hexadecimal number split the hexadecimal number into two values and convert each into a nibble in binary (remember that hexadecimal goes from 0 to 9 and then from A to F):
B = 1011 7 = 0111
So B7 = 10110111
Convert the following denary value into hexadecimal:
121
The value of the positions in hexadecimal from right to left are units, 16s (then 16 square, 16 cubed etc.) so to work out the hexadecimal value first do integer division by 16 (that is divide by 16 and ignore any remainder)
121 // 16 = 7 (7 x 16 = 112)
then do your value modulus 16 (i.e. find the remainder)
121 % 16 = 9
Finally put the two parts together:
121 in denary is 79 in hexadecimal
Convert the following denary number into 8 bit binary:
122
First remember the values of the positions from right to left in binary goes units, 2s, 4s, 8s, 16s, 32s, 64s, 128s
Then work out how many of each you can have:
128 64 32 16 8 4 2 1
0 1 1 1 1 0 1 0
What is the result of adding the following bits together: 0 0 + \_\_\_ \_\_\_
0