Data representation (Paper 1) Flashcards

(54 cards)

1
Q

What is a bit(b)?

A

0 or 1 (binary)

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

What is a nibble?

A

4 bits

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

What is a byte (B)?

A

8 bits

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

What is a kibibyte (KiB)?

A

1024 bytes

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

What is a mebibyte(MiB)?

A

1024 KiB

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

What is a Gibibyte (GiB)?

A

1024 MiB

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

What is a tebibyte (TiB)?

A

1024 GiB

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

What is a pebibyte(PiB)?

A

1024 TiB

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

What is an exbibyte (EiB)?

A

1024 PiB

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

What is the most significant bit in binary?

A

The largest number
On a byte it would be 128

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

What is the least significant bit in binary?

A

The smallest number
On a byte it would be 1

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

What are the numbers 10-15 represented by in hexadecimal?

A

A-F

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

How would you convert a binary byte into hexadecimal?

A

.Firstly split the byte into two nibbles
.Then convert each nibble separately and join the results

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

How would you convert hexadecimal into denary?

A

.Remember that hex is in base 16
.Multiply the hexadecimal value by its place value and add the results

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

Where is hexadecimal used in real life?

A

.Color values in photo editing software’s and web design
.IPv6 addresses
.Unicode

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

Why is hexadecimal used rather than biary?

A

Hexadecimal is easier for programmers to remember rather than the binary equivalent

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

What are the rules of binary addition?

A

0 + 0 = 0
0 + 1 or 1 + 0 = 1
1 + 1 = 0 carry a 1
1 + 1 + 1 = 1 carry a 1

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

When would an overflow occur when adding binary numbers?

A

-An overflow occurs when the result of adding two binary numbers is greater than the number of bits allowed
-If the number falls out of the limit an overflow error is returned

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

Explain the effect on performing a binary right shift of two places on the number 11010110

A

-Each right shift will divide the number by 2
-so a two place right shift will divide the number by 4
-However, if the shift results in one more 1’s being lost at the right end the results will lose precision

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

How would you convert a negative denary number to binary?

A

.Convert the number into binary like it was positive
.Flip the bits
.Add one
.Convert

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

How would you convert a negative two’s complement binary number to denary?

A

.Flip the bits
.Add one

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

What is a signed representation of a binary number?

A

A signed integer can represent both positive and negative

23
Q

What is an unsigned representation of a binary number?

A

Unsigned means it can only represent a positive integer

24
Q

What is a character set?

A

A set of digits, symbols and letters that can be represented by a computer

25
How many characters can be represented by a 7 bit ASCII character set?
128
26
State was is meant by extended ASCII
Extended ASCII uses 8 bits rather than 7. this allows up to 256 characters to be represented
27
What is unicode?
Unicode uses 16 bits per character and can represent 65,536 different characters
28
What is the sample rate?
The number of samples taken per second in hertz
29
What is sample resolution
-The number of bits per sample -A higher sample resolution enables more accuracy however a bigger file size
30
What is the formula for the sound file size?
Sound file size (bits) = Sample rate x sample resolution x seconds
31
What is a pixel?
The smallest identifiable area of an image each appearing as a square of a single colour
32
What is image resolution?
The number of pixels in the image
33
What is the colour depth when there are 2 colours?
1 bit per pixel required
34
What is the colour depth when there are 4 colours?
2 bits per pixel required
35
What is the colour depth when there are 8 colours?
3 bits per pixel required
36
What is the colour depth when there are 16 colours?
4 bits per pixel required
37
What is the formular for image size?
(Height x width x colour depth) ÷ 8 bits = file size in bytes
38
What is file compression and why is it used?
.File compression uses algorithms to remove repeated and unnecessary data .This is so that the file size can be reduced
39
Which formats are Lossy compression?
JPG, MP3, WMV, MPG
40
What are the examples of lossy compression?
.Smallest file sizes which reduce transmission time .Reduces internet traffic and collisions
41
What are the disadvantages of lossy compression?
Detail is permanently lost by reducing colour depth, resolution or sample rate
42
What are some generic examples of lossy compression?
Music streaming Online images and videos Image libraries on devices in the cloud
43
What are the formats of lossless compression?
TIF, PDF, GIF, PNG, ZIP
44
What are the advantages of lossless compression?
Original quality is preserved No data or information is lost
45
What are the disadvantages of lossless compression?
Less significant reduction in the file size
46
What is the maximum range in twos complement with 8 bits
-128 to 127
47
How many possible combinations are there in a binary byte?
256
48
Why do computers use binary?
As all data that the computer systems transfer is sent by electrical signals which can be in 2 states on or off. As there are only 2 states it is all used as binary data
49
Why might a programmer prefer to use hexadecimal?
As each hexadecimal digit is 4 binary digits therefore making it easier to understand
50
What is unicode?
Code that uses 16 bits per character and can represent 65,536 different characters
51
What is extended ASCII?
Uses 8 bits rather than 7 which allows up to 156 characters to be represented
52
What happens when you increase the colour depth or bit depth on an image?
The quality increases aswell as the file size
53
Why is compression neccesary?
To reduce the size of the file
54
How does lossless compression compress data?
-By using run length encoding and frequency pairs to encode each run length of the same coloured pixel