SLR 2.6 Data representation Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is binary?

A

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.

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

What is hexadecimal?

A

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.

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

What is denary?

A

A numerical system of notation which uses 10 as its base. The 10 denary base 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 in a computer at a particular time. These symbols, called characters, can be letters, digits, spaces or punctuation marks, the set includes control characters.

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