Data representation Flashcards

1
Q

What is a natural number?

A

positive integer

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

What is a real number

A

Any number that’s real

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

What is a rational number

A

any number that can be represented with a fraction

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

What is an irrational number

A

Any number that can’t be represented with a fraction

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

How do you convert from denary to hex

A

0-9 = 0-9
10-15 = A-F

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

What is unsigned binary?

A

binary that represents exclusively positive numbers

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

How do you add binary

A

0 +0 = 0
0+1 = 1
1 +1 = 10
1+1+1 = 11

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

How do you multiply binary

A

Do the same thing as regular multiplication

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

What is two’s complement and how does it work?

A

it is a method of working with negative binary values, where the most significant bit is negative.

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

How do you convert denary to binary using twos complement

A
  • Write out the binary version where it is positive.
  • starting from the least significant bit write out all the numbers, until you reach the first one (first being the first on the right hand side) .
  • Flip all the bits from then on, including the one
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How do you subtract binary

A

Change the number you are subtracting, to a negative value, and add the two numbers together

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

How do you represent fixed point binary

A

all points after the decimal point are 2^-n

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

How do you convert floating point binary to denary.

A
  • calculate the value of the exponent

-Move the binary point in the mantisa by the amount specified by the exponent.

or denary = mantissa * 2^exponent

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

How do you convert denary to floating point binary?

A
  • Calculate the value into fixed point binary
  • Normalize the binary by moving the decimal point to between the last 1 and the zero after that.
  • Depending on how you moved the point, change the exponent to do the opposite of that.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Why use fixed points vs floating point?

A

Floating point has a much larger range of numbers that can be produced with the same number of bits.

Fixed point can be processed faster as the decimal doesn’t need to be calculated.
The error will always be the same.
better when speed is more important than precision.

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

what is underflow and overflow

A

Underflow - when a number is too small to be represented with the number of bits allocated

Overflow - When a number is too large to be represented with the number of bits allocated.

17
Q

What is normalization in terms of binary

A

A process for adjusting numbers onto a common scale.

18
Q

What is absolute error

A

The actual difference between the value you are trying to reach and the value you have

19
Q

Whats is relative error?

A

absolute error / number you’re trying to reach

20
Q

What is ascii?

A

a standard binary coding system for characters and numbers.

21
Q

what is unicode?

A

a binary coding system that has superseded ascii

22
Q

What is a parity bit and how does it work

A

a way of checking if data has been successfully transmitted

for even parity, if there is an odd number of 1s, the parity bit( the last bit) is set to one

22
Q

what is majority voting

A

A method of checking for errors by producing the same data several times and checking for errors.

22
Q

What is colour depth

A

the number of bits or bytes allocated to represent the colour of a pixel in bitmap.

22
Q

What is the formula for resolution

A

number of pixels wide * number of pixels long

23
Q

Whats the difference between analogue and digital signals?

A

analogue data are usually infinitely variable, whereas digital data is usually discrete.

24
Q

How do analogue to digital converters work(microphone)

A

Sound is inputted in the form of changes in air pressure and converted to electrical signals. Which are then converted into digital signals.

25
Q

How does sound sampling work?

A

a series of recordings of amplitude taken at a given frequency, are recorded.

26
Q

how do you calculate the size of a digital recording?

A

sample rate * length of recording * sample resolution

27
Q

What is Nyquists theorem?

A

to faithfully recreate an analogue signal, the sampling frequency needs to be at least twice the highest frequency that is audible.

28
Q

What is lossless compression

A

Lossless is no data is lost lossy data is lost.

29
Q

What is Run length encoding?

A

Where data is repeated, the data is recorded, then the number of times, it is repeated BBB - > 3B

30
Q

What is dictionary based encoding?

A

Common occurrences are put into a dictionary, where they are then assigned a token which is recorded.

31
Q

What is plaintext?

A

data in a form humans can read

32
Q

What is ciphertext

A

Data that has been encrypted

33
Q

What is a vernam cipher

A

a cipher that uses a one time pad and is xor’d to create ciphertext
mathematically secure

34
Q

What is a transposition cipher

A

a cipher with data mixed around

35
Q

what is a baudot code?

A

a five digit character that predates ascii

36
Q
A