Data Representation Flashcards

1
Q

What is binary?

A

A number system which uses only two digits, 0 and 1

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

What is a bit?

A

One binary digit (can be one or zero)

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

What is a byte?

A

A group of 8 bits

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

What is a word?

A

A group of bytes (word size depends on the type of computer e.g. 8 byte machine has an 8 byte word size)

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

What is a denary number system?

A

A number system which uses the digits 0..9 (like our own number system)

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

What does a number base specify?

A

How much each digit is multiplied as you move from right to left

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

What base does the binary system have? What does this mean

A

base 2 -so place values are increasing powers of 2

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

What is another word for decimal?

A

denary

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

What is the range of numbers which can be stored with 8 bits?

A

0..255

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

How many values can be stored using 8 bits?

A

256 (includes zero)

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

What is twos complement?

A

A system for representing negative binary numbers

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

In twos complement, how can you tell if the number represented is negative?

A

It will start with a one

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

How would you convert a negative decimal number to twos complement?

A

-Make the decimal number positive -Convert this to binary -change all the ones to zeros and the zeros to ones -add one to the result

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

How do you change the sign of a binary number?

A

-start from the right -leave all digits up to and including the first one -change all other ones to zeros and zeros to ones

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

What is the first method of converting a negative twos complement number to denary?

A

-flip the bits -add one -convert the binary to denary

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

What is the second method of converting a negative twos complement number to denary?

A

Add all the place values with a one underneath them. The leftmost place value will always have a negative value

17
Q

What is the best method for binary subtraction?

A

Converting the number to be subtracted to negative twos complement and then adding the two

18
Q

How is -1 represented in twos complement?

A

With a one in all the place values (for any number of bits)

19
Q

What is the most significant bit (MSB)?

A

The leftmost bit (bit with the largest value)

20
Q

What is the least significant bit (LSB)?

A

The rightmost bit (bit with the smallest value)

21
Q

What is hexadecimal?

A

A number system which uses the digits 0..9 and letters A..F

22
Q

What is hexadecimal used for?

A

Making binary more convenient for humans to read -a shorthand for binary number patterns

23
Q

What base does hexadecimal use?

24
Q

How do you convert hexadecimal to binary?

A

Each symbol of hexadecimal has a value of 4 bits of binary. convert each symbol and put these groups together in the same order as the hexadecimal to form a longer binary number

25
What is 10 in binary and hexadecimal?
binary =1010 hexadecimal=A
26
What is 15 in binary and hexadecimal?
binary=1111 hexadecimal=F
27
How can real (non-integer) numbers be represented using binary?
With fixed point binary numbers
28
How does a fixed point binary number work?
The halving of place values continues on after a set place for the (imaginary) decimal point 8 4 2 1 . 1/2 1/4 1/8 1/16 etc
29
Is binary or decimal representation of fractions more precise?
decimal
30
What does fixed point binary notation assume?
That the binary point is always in a set position as there is no third symbol which can be used to literally store it
31
What are the most well known coding systems?
ASCII and unicode
32
What is a coding system?
Used to store text in computer memory Each character is represented using a different binary pattern
33
How many different patterns (possibilities) are needed to represent all characters on a computer keyboard?
128
34
How many bits are needed to represent every symbol on a computer keyboard?
seven bits
35
How many bits are needed to represent 128 values?
seven
36
How is a character represented in ASCII?
A 7 bit binary integer (with an 8th parity bit)
37
What is unicode?
A coding system which uses 16 bits to represent characters (allowing for more symbols than ASCII)
38
What is a parity bit?
One bit added on to the end of a bit pattern to check for errors