Topic 2 : Data

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/50

encourage image

There's no tags or description

Looks like no tags are added yet.

51 Terms

1
New cards

What is formula for finding the number of unique values that can be represented by a given number of bits?

n = number of bits

2ⁿ

2
New cards

Describe the two processes of converting a binary number to two’s complement

  1. Flip all the bits and add 1

  2. Copy/keep all the 0s from the right/LSB, up to and including the first 1 (1), then flip the remaining bits


3
New cards

Explain what an overflow error is

An error that has occurred due to their not being a sufficient number of bits to store the result

4
New cards

10 - 15 (Hexadecimal)

A - F

5
New cards

What are the 4 types of binary shifts?

  1. Logical left shift

  2. Logical right shift

  3. Arithmetic right shift


6
New cards

What does a logical left shift do?

Multiplication

7
New cards

How do you perform a logical left shift?

  • The leftmost bit is discarded

  • All of the remaining bits move one place to the left

  • A 0,0 will fill the empty place on the right

(Single shift) → multiplies binary number by 2 to the power 1


<ul><li><p>The leftmost bit is discarded</p></li><li><p>All of the remaining bits move one place to the left</p></li><li><p>A <span style="font-family: KaTeX_Main, &quot;Times New Roman&quot;, serif; line-height: 1.2; font-size: 1.1em;">0,0</span> will fill the empty place on the right</p></li></ul><p>(Single shift) → multiplies binary number by <span style="font-family: KaTeX_Main, &quot;Times New Roman&quot;, serif; line-height: 1.2; font-size: 1.1em;">2 to the power 1 </span><br></p><p></p>
8
New cards

What does a logical right shift do?

Division

9
New cards

How do you perform a logical right shift?

  • The rightmost bit is discarded

  • All the remaining bits move one place to the right

  • A 0,0 will fill the empty place on the left

Dividing a binary number by 2 to the power 1


<ul><li><p>The rightmost bit is discarded</p></li><li><p>All the remaining bits move one place to the right</p></li><li><p>A <span style="font-family: KaTeX_Main, &quot;Times New Roman&quot;, serif; line-height: 1.2; font-size: 1.1em;">0,0</span> will fill the empty place on the left</p></li></ul><p>Dividing a binary number by<em> 2 to the power 1</em></p><p></p>
10
New cards

What type of shift should be used when workign with signed integers?

Arithmetic right shift

11
New cards

How do you perform an arithmetic right shift?

Shifts all bits to the right, replicating the leftmost bit (sign bit) into the vacated positions. (n represents number of shifts)

<p><span>Shifts all bits to the right, replicating the leftmost bit (sign bit) into the vacated positions. (n represents number of shifts)</span></p>
12
New cards

Why is hexadecimal notation used over binary notation?

  1. It is easier to read and interpret

  2. It uses fewer digits to represent the same value

  3. Compared to binary, it is less likley the digit will be written down incorrectly


<ol><li><p>It is easier to read and interpret</p></li><li><p>It uses fewer digits to represent the same value</p></li><li><p>Compared to binary, it is less likley the digit will be written down incorrectly</p></li></ol><p></p>
13
New cards

What is a character set?

A defined list of characters recognised by a computer system, where each character is mapped to a unique binary code

14
New cards

What does ASCII stand for?

American standard code for information interchange

15
New cards

During representation, how are characters represented?

  1. Simple

  2. Capital


<ol><li><p>Simple</p></li><li><p>Capital</p></li></ol><p></p>
16
New cards

Compare ASCII and Unicode

  • ASCII: Uses 7 bits (128 characters) or 8 bits for Extended ASCII (256 characters). Limited to English characters, digits, and basic symbols.

  • Unicode: Uses 16 or 32 bits (millions of characters). Represents all world languages, technical symbols, and emojis, but requires more storage space per character.


17
New cards

How are bitmap images represented in binary?

As a grid of individual pixels, where each pixel’s colour is stored as a unique binary number

18
New cards

What does pixel stand for?

Picture element

19
New cards

Define colour depth

The number of bits used to encode the colour of each pixel

20
New cards

Define resolution

Resolution describes the number of pixels per unit area

21
New cards

What is the formula to calculate the uncompressed file size of a bitmap image in bits?

File size (bits) = Width (pixels) × Height (pixels) × Colour depth (bits)

22
New cards

Why must analogue sound be converted into digital data, and what is this process called?

Real world sound waves are continuous, whereas computers can only process discrete binary values. Converting it is known as sampling

23
New cards

What is the sample rate?

Number of samples taken per second (measured in Hz)

24
New cards

What is the bit depth?

Number of bits used to store the amplitude of each individual sample

25
New cards

How does increasing sample rate and bit depth affect the audio recording?

Both make the digital audio a more accurate reproduction of the original analouge wave.

However, both also increase file size

26
New cards

What is the formula for calculating audio file size?

file size (bits) = sample rate x bit depth x recording length (seconds)

27
New cards

What are the main limitations of representing data in binary?

  1. Number of bits available to store data is limited

  2. Range of values that can be represented by the amount of bits is limited

  3. Very large or precise numbers suffer from overflow errors or rounding/ precision errors


28
New cards

Recite the binary unit scale

  1. Bit

  2. Byte

  3. Kilobyte

  4. Megabyte

  5. Gigabyte

  6. Terabyte


29
New cards

How many bits are in one byte?

8

30
New cards

How many bytes are in one kilobyte?

knowt flashcard image
31
New cards

How many bytes are in megabyte?

knowt flashcard image
32
New cards

How many bytes are in 1 gigabyte?

knowt flashcard image
33
New cards

How many bytes are in one terabyte?

knowt flashcard image
34
New cards

Recite the hex scale (base 2)

  1. Byte

  2. Kibibyte

  3. Mebibyte

  4. Gibibyte

  5. Tebibyte


35
New cards

How many bytes is one kibibyte? (KiB)

1024 bytes

36
New cards

How many bytes is one mebibyte? (MiB)

1024² bytes

37
New cards

How many bytes is one Gibibyte? (GiB)

1024³ bytes

38
New cards

How many bytes is one tebibyte? (TiB)

1024^4

39
New cards

What is data compression?

A technique that reduces file size

40
New cards

What two types of data compression?

  1. Lossy

  2. Lossless


41
New cards

What does lossy compression do?

Reduces file size by deleting some data, where the original can never be reconstituted and has been irreversibly changed

42
New cards

What does lossless compression do?

Reduces file size without deleting any data. Nothing is lost (also has highest return in file size reductions)

43
New cards

How does lossy compression compress data in image files?

Algorithms analyse the image and find area where there are only slight differences. These are given the same value and the file is written using fewer bits

44
New cards

How does lossy compression compress data in digital sound files/ recordings?

Very small variations in frequency and volume are removed to reduce file size as the human ear cannot detect these small differences

45
New cards

How does lossless compression compress files?

Looks for redundancy where the same data is stored many times and groups this data into one reference

46
New cards

What are 2 examples of lossy compression?

  1. MP3 audio files

  2. JPG image files


47
New cards

What are 4 examples of lossless compression?

  1. GIF and PNG image files

  2. FLAC and ALAC audio files


48
New cards

What are the ideal uses of lossy compression?

  1. Image files

  2. Digital sound recordings


49
New cards

What are some uses of lossless compression?

  1. Text files

  2. Graphic files with a low colour depth


50
New cards

What are some less successful uses of lossless compression?

  1. Audio files

  2. 24-bit colour files


51
New cards

Compare lossy and lossless compression

Lossy compression:

  • Some of the data is lost and cannot be recovered.

  • Greatly reduces the file size.

  • Reduces the quality of the image/sound.

  • Suitable for images, sound and video.

  • Cannot be used on text and executable files.

Lossless compression:

  • None of the data is lost, it is encoded differently.

  • Can be turned back into original format.

  • Can be used on all types of data.

  • Is usually less effective than lossy compression at reducing the file size.

  • Most suitable for documents and executable files.