Chapter 9 - Binary Representations Flashcards

1
Q

Why was ASCII invented?

A

All companies before ASCII sent data using different codes

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

What is a character set?

A

A list of binary codes that can be recognised by computers as being useable characters

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

How to convert between character to its ASCII code in python?

A

Print(ord(‘d’)

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

How to convert between ASCII to character in python

A

Print(chr(67))

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

How many bits was the original ASCII character set?

A

7-bit or 2**7

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

How many bits was the extended ASCII character set?

A

8-bit or 2**8

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

Why was UNICODE invented?

A

Different companies created different extended ASCII charcetr sets and 256 codes (2**8) wasn’t enough

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

What is UNICODE

A

A character set incorporating ASCII, extended ASCII and, with 4 bytes per code, enough for 2**32 = 4.3 billion characters

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

What does a digital camera do with a snapshot?

A

breaks it down into pixels (picture elements)

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

What is the formula for the total number of pixels

A

total number of pixels = width x height

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

What does the higher resolution of a camera do?

A

Makes the image clearer

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

What is each pixels colour encoded into binary dependant on?

A

the colour depth

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

What is colour depth?

A

The number of bits used to encode the amount of Red, Green and Blue in a pixels colour

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

What is a common colour depth?

A

3 bytes ( 1 for red, 1 for green and 1 for blue)

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

What is the total number of shades a particular colour depth can represent?

A

2**number of bits

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

What is the calculation for total graphic file size?

A

Total graphic file size = pixel width x pixel height x colour depth

17
Q

What is metadata?

A

Data about data

18
Q

Give examples of metadata

A

Data & time photo was taken
The make, model, etc. of the camera
Location where photo taken
Any edits done to photo
Owner of photo

19
Q

What are some disadvantages of analogue recordings

A

Bulky, degraded, hard to edit, limited storage capacity and hard to copy

20
Q

What does bulky mean?

A

the cassette or record was large and cumbersome to transport

21
Q

What does degraded mean?

A

if handled poorly, record could scratch and cassettes could be wiped by magnets

22
Q

What does hard to edit mean?

A

Without expensive equipment, people couldn’t edit music or create musicL

23
Q

What does limited storage capacity mean?

A

A record could store around 40 minutes of audio and a cassette could store about 80 minutes

24
Q

What does hard to copy mean?

A

Only expensive equipment could do that

25
Q

How do you work our audio file size?

A

Audio file size = song duration in seconds x sampling frequency x bit depth x number of channels

26
Q

What is a low sample rate?

A

20kHz or sample rate of 20,000 times a second

27
Q

What is a high sample rate?

A

40kHz or sample rate of 40,000 times a second

28
Q

What is normal audio recording sample rate?

A

44.1kHz

29
Q

What frequencies can the human ear hear up to?

A

20kHz

30
Q

What frequencies can a 20kHz sample rate capture

A

10kHz

31
Q

What frequencies can a 40kHz sample rate capture

A

20kHz

32
Q

What are the advantages of digital audio?

A

-Easy to transport digital audio
-Cheap to edit n copy
-Doesn’t degrade
-Thousands of songs stored on a hard drive or cloud
-Easy for artists to get their music “out there”

33
Q

What are the two ways of reducing the size of a file

A

Lossy compression & Lossless compression

34
Q

What does Lossy compression do?

A

Decreases the file size by removing some of the data, the original graphic or audio file can never be reconstituted from a loosily compressed file

35
Q

What does lossless compression do?

A

it decreases the file size by removing redundancies

36
Q

What is a redundancy?

A

Data in a file that is repeated (e.g. blocks of colour in a graphic, or repeated words in a text file.” Text files are never compressed with lossy compression otherwise letter or formatting would be lost and text wouldn’t make sense. Text file sizes can be reduced with lossless compression by creating a look up table and keys