Data Representation Flashcards

1
Q

Why is data stored in binary in computer?

A

The computer uses switches/logic circuits/transistors can only store and process data in two states (high/low) (on/off) (1/0), The binary values represent the current flowing through the circuit, 1 current is on/flowing and 0 is current in off/not flowing.

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

Advantages of Hex

A

-easier for humans to read and understand -easier for humans to debug -fewer digits so it takes less space on the display.

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

Uses of Hex

A

-notation for colour in HTML #FF0000 red -Display MAC addresses -Display memory dump/ machine code -display error code

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

Binary Number system

A

Base 2 system (0-1 values), has units that increase by power 2, more digits for the same value

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

Denary Number system

A

Base10 (0 to 9 values), has units that increase by power10, less digits than binary for the same value.

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

Hex number system

A

Base 16, 16 symbols (0 to 9 and A to F), Units that increase by power of 16, least digits than binary and denary for the same value

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

When will overflow error occur?

A

if value is greater than 255 in an 8-bit register, it occurs when a value outside this limit should be returned.

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

Why does overflow error occur?

A

A computer/device has a predefined limit that it can represent/store

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

What are the two systems for character representation?

A

ASCII, Unicode

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

Advantages of ASCII

A

Character takes only one byte of storage (8 bits)

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

Advantages of Unicode

A

-Contains many more characters -Unicode allows for a greater range of characters and symbols than ASCII (different languages/emojis)

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

Disadvantages of ASCII

A

Does not contain a large enough character set for some languages

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

Disadvantages of Unicode

A

-character takes 2 bytes (16 bits)), -requires more bits per character than ASCII

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

Define Character Set

A

-All the characters and symbols that can be represented by a computer system. -each character and symbol is assigned a unique binary value

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

Explain how the captured images as converted into digital photo files.

A

-image is made up of pixels, image has set number of pixels wide by pixels high, each pixel stores one colour, each colour has a unique binary value, the colour/binary value of each pixel is stored in sequence, file contains metadata to identify how the file should be displayed, metadata can be colour depth/resolution, suitable photo file example:JPEG, EXTRA: in coloured high quality images, the amount of binary data needed is much greater to get the correct colour depth in each pixel, in images more pixels used will give a higher quality (resolution)

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

Define Pixel

A

The smallest component of an image

17
Q

Define photo resolution

A

The number of pixels in an image

18
Q

Define photo colour depth

A

The number of bits used to represent each colour

19
Q

How to increase file size and quality of an image

A

increase resolution and colour depth

20
Q

Explain how the recorded sounds are converted to digital photo files

A

sampling is used by recording the amplitude the amplitude of the sound waves at regular time intervals, the value of the sample is recorded as a binary number, increasing the sampling rate means more samples will be used (and the time intervals will be closer) and the sound track quality will be higher

21
Q

Define sound Sample Rate

A

numbers of samples taken in a second

22
Q

Define sound Sample resolution

A

Number of bits per sample

23
Q

What increase the accuracy of the recording

A

file size increases as sample rate and resolution increases as accuracy increases

24
Q

Why do we compress data

A

smaller file size(less storage space needed), less bandwidth required, faster transmission(quicker to upload and download)

25
Define data compression
reducing the file size
26
Types of compression
lossy compression and lossless compression
27
Define Lossy compression
-some data will be lost permanently and original file cannot be recreated, -removing details from the image that should go unnoticed and will not affect the quality too much
28
Define Lossless Compression
when decompressed, the original file is restored with no loss of data as no data is permanently removed. Process: Run Length Encoding (RLE)
29
When is Lossy compression used?
For multimedia such as audio, video and image files
30
When is lossless compression used?
When it is essential that no data is lost or discarded (text)
31
How is a music file compressed by lossy compression
-a lossy compression algorithm is used, (define lossy compression: -some data will be lost permanently and original file cannot be recreated, -removing details from the image that should go unnoticed and will not affect the quality too much),- uses perceptual music shaping: (-removing noises that may not be heard by human ear,-if two sounds are playing at the same time, the softer sound is removed) -reduces sampling rate and sampling resolution.
32
How is a music file compressed by lossless compression
-a lossless compression algorithm is used, -define lossless compression (when decompressed, the original file is restored with no loss of data as no data is permanently removed. Process: Run Length Encoding (RLE)),- repeated patterns of notes are identified and the pattern is stored only once along with how many times it is repeated
33
How is an image compressed by lossy compression
-a lossy compression algorithm is used,- (define lossy compression: -some data will be lost permanently and original file cannot be recreated, -removing details from the image that should go unnoticed and will not affect the quality too much),- colour depth can be reduced by reducing the number of bits required for each pixel/colour, -resolution can be reduced by reducing the number of pixels
34
How is an image compressed by lossless compression
-a lossless compression algorithm is used, -define lossless compression (when decompressed, the original file is restored with no loss of data as no data is permanently removed. Process: Run Length Encoding (RLE)),- repeating patterns (colour patterns) in the image/data are identified and the number of times the pattern appears is stored, -an index/dictionary of pixels is created, the number of times a pixel is repeated in a row, is stored.
35
How is a video compressed by lossy compression
-a lossy compression algorithm is used,- (define lossy compression: -some data will be lost permanently and original file cannot be recreated, -removing details from the image that should go unnoticed and will not affect the quality too much),-removes details that human eye/ear may not see/hear, -reduce colour depth, -reduce image resolution,- reduces sample rate of sound, -reduces the sample resolution of sound
36
How can the size of the text file be reduced?
-a lossless compression algorithm is used, -define lossless compression (when decompressed, the original file is restored with no loss of data as no data is permanently removed. Process: Run Length Encoding (RLE)), repeated words are identified and are indexed/ put into a table,- repeated words are relaced with their index,-the positions of the repeated words are stored in the table,-the number of times the word appears is stored in the table.