Binary Representation (Ch9) (M1) Flashcards

1
Q

What is a character set?

A

A character set is a list of binary codes that can be recognised by computers as being usable characters

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

What is ASCII?

A

ASCII is a common encoding system for text and is a standard that was used by many computers worldwide

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

What does ASC() do?

A

ASC() coverts a string character to an ASCII code value

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

What does CHR() do?

A

CHR() converts an ASCII code to a string character

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

What is unicode?

A

Unicode is a character set used to represent all known languages

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

What is the equation to find the size of a text file?

A

Text file size = bits per character x number of characters

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

What do computers operate and communicate with?

A

Computers operate and communicate using binary

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

Why are binary codes used to represent text?

A

Binary codes are used to represent text because letters, punctuation, numbers, and symbols cannot be recognised by a computer

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

What is the difference between ASCII and unicode?

A

ASCII stores characters as 7 bit values, whereas unicode stores characters as 8 bit ASCII

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

How many bits was ASCII originally represented with, how has this changed?

A

ASCII was originally represented with 7 bits
This is often now represented with 8 bits by adding a 0 at the beginning

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

What is the value of “A” and “a” in ASCII?

A

A = 65
a = 97

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

Why did ASCII store characters as 7 bit values, and then changed to store them as 8 bit values?

A

ASCII changed the amount of bits needed to store a character because computing grew in popularity.
This led to ASCII being extended to 8 bits to allow for: foreign languages, mathematical symbols, and special symbols

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

In English, what is the same about Unicode and 8 bit ASCII?

A

In English, the first 128 codes in unicode are the same as in ASCII

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

What is the relationship between the number of characters and the number of bytes?

A

The number of characters (including blank spaces) in the file, equals the number of bytes
1 character = 1 byte

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

What is a pixel?

A

A pixel is the smallest possible dot on a computer screen, and has a colour

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

What is resolution?

A

Resolution is the number of pixels per square inch on the computer screen

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

What is colour depth?

A

Colour depth is the number of bits used to encode the colour of each pixel

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

What is metadata?

A

Metadata is data about data

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

What is the formula to find the file size of an image?

A

Image file size = colour depth x image height (px) x image

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

An image sized 640 x 420 has:

640 pixels in width
420 pixels in height

Calculate the total number of pixels

A

Total pixels = width x height
Total pixels = 640 x 420
Total pixels = 268,800

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

What is a greyscale image?

A

A greyscale image is where the value of a pixel is a single sample, only representing an amount of light

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

What is the relationship between the number of pixels and the image quality?

A

The more pixels, the higher the image quality
The less pixels, the lower the image quality

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

What are bitmap images made up of?

A

Bitmap images are made up of pixels

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

How can you make a greater range of shades and colours in an image?

A

You can make a greater range of shades and colours by increasing the number of bits per pixel (the colour depth)

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

What are the common colour depths?

A

Common colour depths: 1-bit, 8-bit, 16-bit, and 24-bit

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

Most devices use a 24-bit colour depth. How many bits are used for each colour?

A

8 bits are for the levels of red, green and blue in each pixel

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

What is the formula to find the total number of colours in an image?

A

Total number of colours = 2^n
(Where n = number of bits per pixel (bpp), or colour depth)

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

In 8-bit encoding, how many colour variations are there?

A

In 8-bit encoding, there are 256 colour variations

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

If 8-bit encoding has 256 colour variations, how many colour variations does 24-bit encoding have?

A

8 bits = 256 colour variations
24 bits = 256 x 256 x 256
= 16,777,216 colour variations

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

What is 24-bit encoding known as? Why?

A

24-bit encoding is known as true colour
This is because this colour depth can produce more colours than the human eye can see (estimated to be 10 million)

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

What is the formula to find the number of pixels in an image?

A

Number of pixels = image width x image height x colour depth encoding value

(Number of pixels = resolution x colour depth encoding value)

P = W x H x D

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

An image that has a resolution of 640 x 420 has a 24-bit colour depth. How many pixels does the image have?

A

Resolution = 640 x 420 = 268,800
Colour depth = 24

Number of pixels = resolution x colour depth encoding value

Number of pixels = 268,800 x 24
Number of pixels = 6,451,200 pixels

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

An image that has a resolution of 640 x 420 has a 24-bit colour depth. What is the file size of the image in megabytes?

A

Resolution = 640 x 420 = 268,800
Colour depth = 24

Number of pixels = resolution x colour depth encoding value

Number of pixels = 268,800 x 24
Number of pixels = 6,451,200 pixels
File size = 6,451,200 bytes

1MB = 1,000,000 bytes
6,451,200 / 1,000,000 = 6.4512 (6.4) MB

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

What is the equation to find the file size in bytes?

A

File size (in bytes) = file size (in bits) / 8

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

What is the equation to find the file size in megabytes?

A

File size (in megabytes) = file size (in bytes) / 1,000,000

36
Q

What does metadata provide?

A

Metadata provides information about a file

37
Q

Give 3 examples of metadata for a digital image file

A

Examples of metadata for a digital image file:

Make and model number of the camera
Apeture setting (light levels)
Speed setting
Image dimensions
File size
Location the image was taken at (GPS)

38
Q

Without metadata, what problem would devices face when using images?

A

Without metadata, devices would not be able to display the image on screen as intended

39
Q

Why can metadata be a privacy or security risk?

A

Metadata can be a privacy or security risk because it provides lots of information about a file like the location a picture was taken at.

This could be use to track people down or give clues about their location.

40
Q

What do sample rate and bit depth affect about a digitally converted sound wave?

A

Sample rate and bit depth affect the quality of a digitally converted sound wave

41
Q

What is sound caused by?

A

Sound is caused by vibrations which cause changes in air pressure

42
Q

What is sample rate?

A

Sample rate is how often (frequency) you record the amplitude of a sound wave.

The more often you record a sample, the smoother the playback will sound.

43
Q

What is frequency?

A

Frequency is the number of samples taken per second

44
Q

What is bit depth?

A

Bit depth represents how many different gradations of amplitude can be represented in a digital wave form

45
Q

What will happen to the sound and file size, if the bit depth is increased?

A

When the bit depth is increased, the sound is more accurate and the file size will be higher

46
Q

What is the sampling rate of a CD?

A

A CD has a sampling rate of 44,100 samples per second (44.1 kHz)

47
Q

What is the equation to find the size of a sample?

A

Size of sample = number of samples per second x number of bits per sample x length of sample (in seconds)

48
Q

What is analogue?

A

Analogue is data that can use any value in a continuous range

49
Q

What is sampling?

A

Sampling is making a physical measurement at timed intervals and converting the measurement to digital values

50
Q

What is duration?

A

Duration is how many seconds of audio the sound file contains

51
Q

What is the equation to find the size of a sound file?

A

Sound file size = sample rate x duration x bit depth

52
Q

What is the relationship between waves per second and pitch?

A

The more waves per second, the higher the pitch

53
Q

Give one example of analogue sound

A

Examples of analogue sound:
Vinyl albums, audio cassettes, a human voice

54
Q

How is sound recorded?

A

Sound is recorded by a microphone as an analogue signal

55
Q

Analogue signals need to be converted into digital data. Why? How is this done?

A

Analogue signals need to be converted into digital data
This is so computers can read and store sound files
This is done by analogue to digital converters, which are found in most modern recording devices

56
Q

Give 3 advantages of sampling

A

Advantages of sampling:

Can be edited by a computer
Portability - can be stored on a portable device like a memory stick
Repeated play time doesn’t lead to deterioration
Copies can be made on a computer
Can be emailed/uploaded/downloaded/streamed
Equipment needed is cheap, home microphone and speakers/headphones widely available

57
Q

Give 1 disadvantage of sampling

A

Disadvantages of sampling:

Doesn’t contain all the original sound information, some is always lost but this can be minimised through use of a high sample rate and bit depth

58
Q

Justify when it may be better to use higher and lower sample rates

A

When you have low storage, using a lower sample rate may be more useful.

But if you are recording a high quality piece of music, a high sample rate would work better for a higher quality of soun

59
Q

Calculate the size (in KB) of an audio file of a song lasting five minutes which is sampled at a rate of 41,100 samples per second and a bit depth of 24 bits.
Show your working out.

A

Sample rate = 41,100
Duration = 5 minutes = (60 x 5 = 300) 300s
Bit depth = 24 bits
Size of sample = ?

Size of sample = sample rate x duration x bit depth
Size of sample = 41,000 x 300 x 24
Size of sample = 295,200,000 bits
295,200,000 / 8 = 36,900,000 bytes
36,900,000 / 1000 = 36,900 kilobytes

60
Q

A stereo song has to be recorded at CD quality. The song is 3 minutes and 42 seconds long. What file size would the song have?

A

Sample rate = 44.1 kHz = 44,100 Hz
Duration = 3 minutes, 42s = (60 x 3 = 180) 180 + 42 = 222s
Bit depth = 16 bits
File size =

Sound file size = sample rate x duration x bit depth
Sound file size = 44,100 x 222 x 16
Sound file size = 145,987,200 bits

145,987,200 / 8 = 18,248,400 bytes
18,248,400 / 1000 = 18,248.4 kilobytes

61
Q

What is compression?

A

Compression is reducing the file size for file storage or upload/download optimisation

62
Q

In terms of data loss, what is the difference between lossy and lossless compression?

A

Lossy: Data is lost in the compression process and when the file is decompressed it will not contain all of the original information. The original file cannot be restored.

Lossless: No data is lost and the file can be decompressed with all its information intact. The original file can be restored.

63
Q

Why is lossy compression not suitable for text or program files?

A

Lossy compression causes irreversible change where data is lost. This makes it not suitable for text or program files.

64
Q

What are the two techniques for lossless compression?

A

The two techniques for lossless compression are:

Dictionary encoding
Run length encoding

65
Q

Give one example of a file type that uses lossless compression

A

Files that use lossless compression:
PNG, Bitmap, GIF

66
Q

Give one example of a file type that uses lossy compression

A

Files that use lossless compression:
JPEG, MP3

67
Q

Give 3 benefits of compression

A

Advantages:
Less bandwidth required when downloading
Transfer speed is quicker (e.g. emailing photos, uploading photos)
Uses less storage space (e.g. on servers/hdd)
Reduce internet congestion
Enable streaming of audio/video (e.g. NETFLIX, BBC iPlayer)

68
Q

What is redundancy?

A

Redundancy is the number of items of data in a file which are the same

69
Q

What is a run?

A

A run is a sequence of repeated characters

70
Q

How does lossy compression work on image files?

A

The lossy compression algorithm works on an image by:
Analysing the image and finds areas with slight differences (e.g. similar colours)
Gives them the same value (e.g. makes them the same colour value)
The file is then rewritten using fewer bits

71
Q

Give two features of lossy compression

A

File size is decreased by permanently removing some of the data
The original file can never be restored after decompression
Suitable for graphic and audio files

72
Q

How does lossy compression work on sound files?

A

The lossy compression algorithm works on sound files by:
Removing slight differences in volume and frequency
These differences are usually undistinguishable

73
Q

What are most digital images stored as?

A

Most digital images are stored as bitmaps

74
Q

How does lossless compression work on images?

A

Lossless compression stores the binary for a colour value, followed by the number of pixels of that colour in a row
It checks for redundancy

75
Q

What cannot happen to text documents and executable code during compression?

A

During compression, text or executable files cannot permenantly lose data

76
Q

What do 1s and 0s in a computer represent?

A

Computers use 1s and 0s to represent the flow of electricity.

77
Q

How many bits are in a nibble?

A

There are 4 bits in 1 nibble

78
Q

How many bits are in a byte?

A

There are 8 bits in 1 byte

79
Q

How many bytes are in a kilobyte (KB)?

A

There are 1000 bytes in 1 kilobyte (KB)

80
Q

How many bytes are in a kilobyte (KB)?

A

1000 bytes are in 1 kilobyte (KB)

81
Q

How many kilobytes (KB) are in a megabyte (MB) ?

A

There are 1000 kilobytes (KB) in 1 megabyte (MB)

82
Q

How many megabytes (MB) are in a gigabyte (GB)?

A

There are 1000 megabytes (MB) in 1 gigabyte (GB)

83
Q

How many gigabytes (GB) are in a terabyte (TB)?

A

There are 1000 gigabytes (GB) in 1 terabyte (TB)

84
Q

How many terabytes (TB) are in a petabyte (PB)?

A

There are 1000 terabyes (TB) in 1 petabyte (PB)

85
Q

Calculate how many bits are in a gigabyte

A

1GB = 1000MB
1000 x 1000 = 1,000,000KB (1GB = 1,000,000KB)
1,000,000 x 1000 = 1,000,000,000 bytes
1GB = 1,000,000,000 bytes

86
Q

Express 2048MB in GB

A

2048 / 1000 = 2.048GB
2048MB = 2.048GB

87
Q

An image file has a size of 213,624,133 bits. Convert this file size into megabytes.

A

213,624,133 / 1000 = 21,362.4133 bytes
21,362.4133 / 1000 = 2.13624133 megabytes