Unit 2 Flashcards

(26 cards)

1
Q

What is a bit

A

A single 0 or 1

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

Data needs to be before being processed by a computer

A

converted into binary format

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

How do we convert binary to denary

A

Starting from the right most digit, put a “1” above it. Then put a “2” to the digit to the left of that, then a “4”. Keep on doubling until you get to the max number of digits. Then multiply, the binary digits with their numbers on top and add it all

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

How do we convert denary to binary

A

With the same table for the “binary to denary” (where it goes from 1 to 128), you need to see if the denary number is larger than the largest number for binary (ie: 128). If so, put a 1 under there and if not put a 0 and continue to the next one.

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

How do we convert denary to hex and vice versa

A

take the number and divide by 16. Take the whole number and convert it to hex.

take the remainder and convert that to hex: Put the 2 numbers together and that’s the finish

To convert hex to denary you need to multiply the first number by 16, then add the 2nd number

Hex base 16:
0 1 2 3… 9 A B C D E F

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

How do we convert binary to hex and vice versa

A

Take the 1st 4 numbers of binary, then convert to hex (1st digit)
Take the next 4 numbers of binary, then convert to hex (2nd digit)

Convert the first hex digit to binary (1st 4 numbers) then do the next

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

Rules for adding binary

A

0 + 0 = 0
0 + 1 = 1
1 + 1 = 0 carry 1
1 + 1 + 1 = 1 carry 1

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

what is an overflow error

A

when a 1 needs to be carried over to the next digit but you’re on your eight digit, so you need a ninth meaning you need an extra digit of storage which you dont have

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

What effect does a binary shift have on the result and why might it not be accurate

A

Divides by 2 every shift

If you shift but get rid of a 1 (ie: when shifting backwards you lose a 1 that was in the 1s column) then you won’t get an exact result. It will be an integer but the real result will be decimal

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

How do we calculate check digits

A

Give the weight of each ISBN number on the check with “131313..”

Multiply each IBSN number with the weight attached

Add all the numbers

Find the remainder when divided by 10

subtract that from 10

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

How is each character represented in binary

A

each character is represented by an 7 digit binary number, with uppercase, lowercase and punctuation and symbols all having different numbers

This is called the ASCII code

An eighth character is sometimes used for 128 extra characters (mostly special characters)

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

What is a character set

A

A defined list of characters that are recognised and can be stored in a computer system

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

what is unicode

A

A separate character set that uses 16 bits to display characters of every language + special characters

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

A bitmap graphic is made up of

A

Individual pixels

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

Each pixel is made up of

A

Binary

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

The more bits in an image the more _____

17
Q

Formula for number of colours available in an image (colour bit depth) and what is the effect of this

A

2^num of bits

higher bit depth means greater range of colour hence better quality

18
Q

What is image metadata and what can it contain for images

A

Data about data: Information about the data shown

For an image this may contain:
Colour depth
resolution
Date created
Author

19
Q

How do we calculate image file size in bytes

A

bit depth * resolution (height*width) / 8 = size in bytes

20
Q

How is sounds sampled (turned from analogue to digital)

A

1) The analogue wave is put in a sampler
2) Amplitude of wave is measured at different time intervals
3) Each sample/measurement is stored as a binary digit
4) The binary number for each sample is stored sequentially

21
Q

The audio bit depth is known as the ___ ___ and it is measured by…

A

sample resolution

take a 4 bit resolution. The sample resolution will go to 15 as the formula is 2^number of bits. 2^4 is 16 so there are 16 different digits (0-15)

22
Q

What is the sample rate

A

The number of samples per second. The higher frequency of samples means the closer it will get to the original analogue sound

measured in hz

23
Q

How do we calculate sound file sizes

A

sample rate * resolution * seconds

24
Q

What is lossy compression

A

Permanently removes some data
Recreates the file with remaining data and algorithms which guess the missing parts
Won’t be the exact same as original

Much smaller file size

25
What is lossy compression: Sound
Removes some of the sounds in certain frequency ranges that we can't easily hear so it sounds almost exact
26
What is lossless compression
leaves out repeated data and instead makes a note on how many times the data is repeated when data is uncompressed, it restores it exactly as it was