Data Representation Flashcards

1
Q

1 bit =
• 1 byte =
• A nibble =
• 1 kB (kilobyte) =
• 1 MB (megabyte) =
• 1 GB (gigabyte) =
• 1 TB (terabyte) =
• 1 PB (petabyte) =

A

1 bit = a single 0 or 1
• 1 byte = 8 bits = 1 character of text
• (A nibble = 4 bits or half a byte)
• 1 kB (kilobyte) = 1000 bytes
• 1 MB (megabyte) = 1000 kB or 1000x1000 bytes
• 1 GB (gigabyte) = 1000 MB
• 1 TB (terabyte) = 1000 GB
• 1 PB (petabyte) = 1000 TB

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

Deneary to Binary

a) 18

b) 57

A

a) 10010
b) 111001

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

Show the possivle combinatioms or states per bit:

1 bit =
2 bits =
3 bits =

A

1 bit = 2
2 bits = 4
3 bits = 8

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

What is 1001 (binary) in denary?

A

9

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

How do you know if binary numbers are even or odd?

A

Even numbers have a 0 at the end and odd numbers have a 1

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

How do you translate 2A hex to denary?

A

2 x 16 = 32
Add the A equal to 10
= 42

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

How to convert denary to hex.

A

Divide the denary number by 16 and the remained will be the last digit

E.g 18/16 = 1 r 2 so the hex value for 18 is 12

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

Binary to hex conversion

A

Divide the binary into two nibbles of 4 bits and then convert each nibble to it’s hex value. Eg

11100101 ~> 1110 = E in hex and 0101 = 5 in hex therefore 11100101 = E5

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

Advantages of using Hex?

A
  • Much easier to remember a hex value than a binary value
  • Quicker to type or write hex
  • Easy to convert between Hex and binary
  • People make less errors with fewer digits
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Binary addition rules:
0 + 0 =
0 + 1 =
1 + 0 =
1 + 1 =
1 + 1 + 1 =

A

0 + 0 = 0
0 + 1 = 1
1 + 0 = 1
1 + 1 = 0 Carry 1
1 + 1 + 1 = 1 Carry 1

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

What does a left and right binary shift do?

A

Left shifts multipy and right shifts divide by 2

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

What error does it cause when an addition is too large?

A

Overflow error

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

What are the two main character sets?

A

ASCII and Unicode

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

Types of bitmap image file formats

A

BMP, JPG, GIF, PNG

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

Type of vector format

A

SVG

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

What is a pixel?

A

The smallest identifiable area of an image

17
Q

What is image resoloution?

A

The concentration of pixels within a specific area

18
Q

How to calculate the amount of colours in a pixel

A

If there are 8 bits per pixel = 2^8 = 256 colours
2 to the power of the amoumts of bits per pixel(n) are equal the the amount of colours. n in this case if referring to bit depth

19
Q

In 32 bit colour what are the last 8 bits for?

A

Given to a transparency channel to allow background to show through

20
Q

What is metadata?

A

Informatiom other than image data is stored with a file including: Date created, author, resoloution, colour depth per pixel

21
Q

What is analogue to digital converision?

A

Analouge sound signals are continuous and digital signals are discrete. Sound is digitized by repeatedly measuring and recording the sound wave

22
Q

Calculating sound file sizes

A

File size bits = sample rate (per second) x bit depth x duration (s)

File size / 8 = to amnt in bytes