Data Representation (Year 10) Flashcards

(55 cards)

1
Q

How many bits in one byte

A

8

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

How many bits in a nibble

A

4

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

How many states does binary have

A

2, either 1 or 0

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

Memory from lowest to highest

A

Lowest - Kilobyte
Megabyte
Gigabyte
Terabyte
Highest - Petabyte

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

One byte in each of the units

A

1 kilobyte = 1000bytes
1 megabyte = 1000 000 bytes
1 gigabyte = 1000 000 000 bytes
1 terabyte= 100 000 000 000bytes
1 petabyte= 1000 000 000 000 000bytes

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

Generally what is the memory of secondary storage measured in

A

Terabytes

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

What base is binary

A

Base 2

So it is arranged:

The highest binary number would be 255, which is 11111111

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

What are the rules for binary addition

A

Whenever 1+1 write 0 and carry 1
Whenever 1+1+1 write 1 and carry 1
Whenever 1+0 write 1 carry 0

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

What is the effect in binary shifts if we shift to the left

A

The original number is multiplied by the shift as a power of 2

Eg

00001111 ————————————-> 00111100
15. Multiplied by 2^2. 60

The shift was 2, so it was multiplied by 2^2

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

What happens when we shift to the right

A

Shifting to the right has the affect of /2 the number
Eg of a shift was 3 to the right it would be the original number / 2^3
-> So it Would be original number/8

01110000 —————————————> 00001110
112. Shift 3 so divide by 2^3. 14

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

Why do we use hexadecimal

A

Strings like 01011011 are really hard to remember, so to fix this we use hexadecimal, where each nibble (4 bits) represents a character

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

Smallest 4 bit number

A

0000

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

Largest 4 bit number

A

1111

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

How many different combinations can you have with just 4 bits

A

16

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

What does 1111 represent in hexadecimal

A

The letter F

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

What happens after the letter F Im hexadecimal (it is the largest nibble value)

A

Then we go back to using full bytes.

Eg after F would be 00010000= 1 0 in hex

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

How to convert from decimal to hex

A

Hexadecimal uses base 16

Eg converting 182 to hex

Do 182/16

= 11 remainder 6

Then use a table to write each induvidual number in hex

11 = B
6 = 6

Therefore 182 = B6 in hex

You could also convert 182 to binary then use the binary for hex but that takes longer

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

Convert hex to decimal

A

Just like binary, hex is written like

Etc …. 16^5. 16^4. 16^3. 16^2. 16^1. 16^0

So if our hex was 23F, then you woukd do

16^2 x 2
16^1 x 3
16^0 x 15 (*F is 15 numerically)

512+48+15=575

So 23F is 573 in decimal

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

2 advantages of hex

A

Expressed more compactly

Easier to understand

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

What does ASCII stand for

A

American Standard Code for Information Interchange

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

How many bits does regular ASCII use

A

7 bits to code each character

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

Biggest value that can be held in ASCII

A

127 (decimal) or 1111111

Therefore 128 characters can be represented (0-127)

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

How to represent a in regular ASCJI

24
Q

How to represent A in regular ASCJI

25
What is extended ascii
Uses 8 bits for each character
26
What does extended ascii do
Gives us 128 extra characters we can represent, bringing us to 256 total
27
What is Unicode
Unicode is a state that uses 8-32 bits to represent many more unique characters than ascii because of the larger number of bits available to store the code The same codes as ASCII are used up to 127
28
What are pixels
Small elements that photos are broken down into, that have an independent colour set
29
What happens if the size of a picture is increased
-> More pixels will need to be stored -> increases file size
30
What is colour/bit depth
Number of bits per pixel -> it is always expressed as a power of 2 How many bits represent each pixel
31
What happens as colour depth increases
More bits are used to represent each colour meaning overall file size increases
32
Genral,y what is the size of an image with a bit depth of 1
60kb
33
What is the size of an image
The number if pixels it is made up of
34
What happens if there is a higher PPI (pixels per inch)
The image will look sharper, but will have a much larger file size This is because there are more pixels in the same physical space meaning the size of the pixels decreases and there are more of them
35
What is pixel density
the number of individual pixels packed into a given physical area Measured in pixel per inch Used to describe the resolution of the image
36
How to calculate fuel size in bits
Image width x image height x colour depth
37
How to calculate fuel size in bytes
(Image width x image height x colour depth)/8
38
What does analogue mean when describing sound waves
Means they are continually changing
39
What is a sample when measuring sound
It is a measure of amplitude of the wave at a point in time
40
What does raw accuracy of a sojnd conversion depend on
-> sample resolution -> sample rate
41
What is the sample resolution
The number of bits used to store each sample
42
What is sample rate
The frequency at which you record the amplitude of the sound, ie the number if samples per second The more frequently the sound is sampled, the smoother and better quality it is
43
44
How to calculate the size of a sound file
Sample rate x sample res x no of seconds
45
Why is compression used
To reduce the amount of storage needed on a computer to save files To allow files to be transmitted by email and compressing them can help send Allow file to be transmitted in less time
46
What is lossy compression?
It is a data including method by files are compressed by removing some of the data For example can be stored using less colour meaning few bits are needed which helps reduce the file size But this means that some things are lost from the original file, so it’s less true to the original
47
What is lossless compression?
Is the data compression method where they are compressed in a way that no data is lost and the file remains true to the original
48
What is run length encoding?
RLE is a type of lossless data compression where sequences of data with the same values are stored using data pairs
49
Disadvantages of RLE
In files that contain less runs, it might actually increase the storage size if you use run length encoding
50
What are runs
Sequences of data
51
Examples of lossy data types
JPEG = it’s good for photos and has a colour depth to 24 meaning there are 16.7 million colours MP3 = normally used to store music or downloading it from the Internet
52
Examples of lossless data types
Graphic interchange format (GIF) - it’s good for images with the large areas of solid colour
53
What is Hoffman coding?
It is a compression technique used to reduce the number of bits used to represent each letter Letters that appear more frequently use less bits to represent them It uses a structure called a binary tree which consists of a root node a number of smaller nodes and branches
54
How to read a binary tree
Each branch will have a value of either zero or one0 will always be the left most branch while one will be on the right
55
Describe how binary is used to represent data in computers
Computers use logic circuits They use high or low voltages to store 1 and 0