Data Representation

0.0(0)
studied byStudied by 2 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/17

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

18 Terms

1
New cards

What are the 4 logic gates?

And

Or

Not

XOR

2
New cards

What does each gate look like and what is there truth table?

See Image:

<p>See Image:</p>
3
New cards

What are the units for data?

Bit(b) - One binary Digit

Nibble - 4 Bits

Byte(B) - 8 Bits

Kilobyte(kB) - 1000 Bytes

Megabyte(MB) - 1000 Kilobytes

Gigabyte(GB) - 1000 Megabytes

Terabyte(TB) - 1000 Gigabytes

4
New cards

What is binary?

The language computers run on (1s and 0s).

5
New cards

How do you add binary numbers?

By putting them in line in a column and adding the corresponding numbers together. If there is a:

0+0 - Write 0 under

1+0 - 0+1 - Write 1 under

1+1 - Carry the 1 over to the next column.

You do the same for 3 binary numbers:

0+0+0 - Write 0 under

0+1+0 - Write 1 under

1+1+0 - Carry the 1 over

1+1+1 - Write 1 under and carry a second 1 over

6
New cards

How do you multiply and divide in binary?

For multiplying you would shift the whole binary number over tot he left:

If it is *8 then move over 3 as 2³ = 8

If it is *4 then move over 2 as 2² = 4

For dividing you do the same but shift the number to the right, and all numbers on the end that are destroyed are remainders and aren’t counted.

7
New cards

What is hexadecimal?

Another number system used in programming that can represent numbers and letters:

0-9 = 0-9

10-15 = A-F

This means that 3E =

0011 1110

8
New cards

What is ASCII?

ASCII is a 7-but character set used to represent characters in english. This is similar to hexadecimal.

9
New cards

How can images be written in binary?

It can be written in bitmap where each square is a pixel. Colour can also be take in where 1-but colour depth would have 0-black 1-white. With a higher colour depth more colours can be used.

<p>It can be written in bitmap where each square is a pixel. Colour can also be take in where 1-but colour depth would have 0-black 1-white. With a higher colour depth more colours can be used.</p>
10
New cards

How is file size calculated?

File Size = Image size (Pixel Width*Length) * Colour depth

11
New cards

What is sound sampling?

Sound is recorded as an analogue signal but can be converted to digital in a process called sampling.

12
New cards

How does sampling work?

You sample the amplitude at regular intervals and plot it on a graph. Then it should create a curve digitally as shown in the image.

<p>You sample the amplitude at regular intervals and plot it on a graph. Then it should create a curve digitally as shown in the image.</p>
13
New cards

What is sample rate or sample frequency?

How many samples you take in a second. It is measured in Hertz (Hz) or Kilohertz (kHz).

14
New cards

What is sample resolution and how can it help calculate file size?

Sample resolution is the number of bits available for each sample.

File Size=Sample Rate*Sample Resolution *Length

15
New cards

What are two types if compression?

Lossy

Lossless

16
New cards

What are advantages and disadvantages of Lossy and Lossless compression?

See Image:

<p>See Image:</p>
17
New cards

What is Run-Length Encoding?

RLE is a form of lossless compression. It’s a consecutive run of repeating data.

As well as pictures it can also be used to compress bit patterns:

000110111001

30 11 10 31 20 11

302110312011

<p>RLE is a form of lossless compression. It’s a consecutive run of repeating data.</p><p>As well as pictures it can also be used to compress bit patterns:</p><p>000110111001</p><p>30 11 10 31 20 11</p><p>302110312011</p>
18
New cards

What are Huffman trees?

They are determined by an algorithm and displayed as a tree to represent Huffman codes.

<p>They are determined by an algorithm and displayed as a tree to represent Huffman codes.</p>