9_3 Data representation flashcards

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

1/40

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.

41 Terms

1
New cards

What is a bit?

1 bit is a unit of information, represented by the binary value 0 or 1.

2
New cards

How many bits in a byte?

8

3
New cards

How many bytes in a kB?

1000

4
New cards

How many kB in a MB?

1000

5
New cards

How many MB in a GB?

1000

6
New cards

How many GB in a TB?

1000

7
New cards

Convert 102 to binary:

01100110

8
New cards

Convert 00100100 to decimal:

68

9
New cards

What is 00110011 + 00110001?

01100100

10
New cards

What is 00010010 + 00010001 + 01100010?

10000101

11
New cards

Shift 11001100 TWO places right:

00110011

12
New cards

Shift 00000111 FOUR places left:

01110000

13
New cards

Why is hexadecimal used?

It represents every 4 bits as a single digit, which is easier for humans to remember and understand.

14
New cards

Convert 11011100 to hex:

DC

15
New cards

Convert 77 to hex:

4D

16
New cards

Convert E4 to binary:

11100100

17
New cards

Convert 17 into decimal:

23

18
New cards

What is ASCII?

American Standard Code for Information Interchange - a character set that uses 7 bits to represent characters

19
New cards

What is extended ASCII?

Same thing, but uses 8 bits, allowing more characters to be encoded.

20
New cards

What is Unicode?

Unicode was created to solve the issue that: ASCII still didn’t have enough characters to encode symbols or characters from other languages.

  • it uses 8 - 32 bits per character

  • the first 128 Unicode codes (0-127) are the same as ASCII so backwards compatible

21
New cards

What is colour depth?

Number of bits per pixel

22
New cards
23
New cards

What is the minimum colour depth for an image with 4 colours?

2 bits required - (convert the number of colours to a power of 2.)

e.g 4 = 2 so 2 bits needed

24
New cards

What happens if the colour depth is increased?

If colour depth is increased, more bits are used to represent each pixel, so overall file size will increase.

25
New cards

What is meant by ‘resolution’?

Number of pixels in a specific area

26
New cards

What is a pixel?

A square of colour represented by binary

27
New cards
<p>Make an image file for this bitmap image:</p><p class="has-focus"></p>

Make an image file for this bitmap image:

knowt flashcard image
28
New cards

How do you calculate file size?

Size in bits = image width x image height x colour depth

29
New cards

How is sound stored on a computer?

Sound waves are analogue, so continuously changing.

To store on a computer, the waves need to be converted into a numerical representation, using an ADC (Analogue-to-Digital Converter).

  1. Analogue sound is received by a microphone

  2. This is converted into an electrical analogue signal

  3. The signal amplitude (height of wave) is measured at regular intervals (sampled)

  4. The values are rounded to a level (quantisation)

  5. The values are stored as a series of binary numbers

30
New cards

What is a sample?

A sample is a measure of amplitude at a point in time

31
New cards

What is the sample resolution?

The sample resolution is the number of bits used to store each sample.

32
New cards

What is the sample rate?

The sample rate is the frequency with which you record the amplitude of the sound. i.e number of samples per second.

The more frequently the sound is sampled, the better the quality and smoother the playback will sound.

33
New cards

How does size/resolution affect the file size?

The greater size increases the file size, but the resolution does not affect the file size.

34
New cards

How do you calculate a sound file size, in bytes?

file size = sample rate (Hz) x sample resolution (bytes) x length of track (seconds)

35
New cards

What is the file size of a: 2 minute track with a sample rate of 10,000Hz, and a sample resolution of 16 bits?

120 × 10 000 × 2 = 2,400,000 bytes

36
New cards

Why would we compress data?

  • to make file size smaller

  • uses less storage space

  • quicker to send/email/download/upload

  • more usable

37
New cards

What are the 2 types of compression?

Lossy - original data cannot be recovered - cannot be reversed

Lossless - original data can be fully recovered - can be reversed

38
New cards

What is RLE (Run Length Encoding)?

RLE - simple form of lossless data compression, where runs of data are stored using frequency/data pairs.

  • however, is not so useful with files that don’t have many runs, and can increase the file size. It’s better on simple images, like icons, where many pixels are the same colour.

39
New cards

What is Huffman Coding?

Huffman Coding is a compression technique used to reduce the number of bits to represent each letter. The more frequently a letter appears in the text, the fewer bits are used to represent it in a text file.

40
New cards
<p>Using: </p><p class="has-focus"></p><p class="has-focus is-empty">a) What would be the coding for the word PIT?</p><p class="has-focus">b) How many bits would these 3 letters take using the Huffman Code?</p><p class="has-focus">c) The sentence: PIPPA ATE A PEPPER uses 47 bits. How many bits would be needed if using ASCII?</p><p class="has-focus">d) How many bits are saved by compressing PIT with Huffman Coding?</p>

Using:

a) What would be the coding for the word PIT?

b) How many bits would these 3 letters take using the Huffman Code?

c) The sentence: PIPPA ATE A PEPPER uses 47 bits. How many bits would be needed if using ASCII?

d) How many bits are saved by compressing PIT with Huffman Coding?

a) 100110010

b) 9

c) 126

d) 12

41
New cards