SLR 2.6 Data representation Flashcards

1
Q

What is binary?

A

Binary is a number system with two possible values for each digit: 0 and 1 (base 2).
In computing binary is used for digital encoding system where there are exactly two possible states e.g. switches and transistors are either on or off, magnetic storage can point north or south, optical storage used pits and lands, solid state storage has trapped electrons in gates or it doesn’t.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is hexadecimal?

A

A number system that uses 16 rather than 10 as its base. The 16 hexadecimal digits are 0 to 9 then A to F.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is denary?

A

A number system that uses 10 as its base. The 10 denary digits are 0-9.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a character set?

A

The set of symbols that may be represented by a computer. These symbols, called characters, can be letters, numbers, and non-alpha-numeric characters such as punctation marks (! , . ) and ‘special characters’ e.g. & * @ # $ etc. In larger character sets such as Unicode emojis and characters from other languages e.g. Chinese can also be represented.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is ASCII?

A

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).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does ASCII stand for?

A

America Standard Code for Information Interchange

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is UNICODE?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Put these in order:

nibble, byte, bit, petabyte, megabyte, gigabyte, kilobyte, terabyte,

A

bit, nibble, byte, kilobyte, megabyte, gigabyte, terabyte, petabyte

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Convert the following 8 bit binary number into denary:

10100011

A

128 + 32 + 2 + 1 = 163

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Convert the following hexadecimal number into denary:

CC

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Convert the following 8 bit binary number into hexadecimal:

01011010

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Convert the following hexadecimal number into 8 bit binary:

B7

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Convert the following denary value into hexadecimal:

121

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Convert the following denary number into 8 bit binary:

122

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
What is the result of adding the following bits together:
0 
0 +
\_\_\_
\_\_\_
A

0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
What is the result of adding the following bits together:
0 
1 +
\_\_\_
\_\_\_
A

1

17
Q
What is the result of adding the following bits together:
1 
1 +
\_\_\_
\_\_\_
A

0 carry 1

18
Q
What is the result of adding the following bits together:
1 
1 +
\_\_\_
\_\_\_
1
A

1 carry 1

19
Q
What is the result of adding the following 4 bit numbers together
1 0 1 1
00 1 1
\_\_\_\_
\_\_\_\_
A
1 0 1 1
00 1 1
\_\_\_\_
1 1 1 0
\_\_\_\_
  1 1
20
Q
What is the result of adding the following 4 bit numbers together
1 0 1 1
1 0 1 1
\_\_\_\_
\_\_\_\_
A

This results in an overflow error as the result cannot be shown in just 4 bits. There is a carry forward which cannot be processed and causes the overflow error:

  1 0 1 1
  1 0 1 1
  \_\_\_\_
  1 1 1 0 
  \_\_\_\_
1   1 1