Fundamentals of Data Representation

0.0(0)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/64

flashcard set

Earn XP

Description and Tags

Flashcards made from the AQA GCSE Computer Science (8525) specification - section 3.3 (Fundamentals of data representation) Skills: ★ Number bases inc. bit shifts ★ RLE (Run Length Encoding) ★ Huffman encoding

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

65 Terms

1
New cards

What base is decimal?

Decimal is base 10

2
New cards

What base is binary?

Binary is base 2

3
New cards

What base is hexadecimal?

Hexadecimal is base 16

4
New cards

How do we represent number 10-15 in hexadecimal?

We represent number 10-15 in hexadecimal using letters

5
New cards

What does a bit shift to the left/right do?

★ Bit shift to the left: multiplies number by 2 ★ Bit shift to the right: divides number by 2

6
New cards

What are the advantages of hexadecimal over binary?

★ Simpler to remember large HEX numbers than binary numbers ★ HEX numbers are shorter ➜ Fewer input errors than binary numbers

7
New cards

What is a bit?

A bit is the fundamental unit of information

8
New cards

How do we represent a bit?

We represent a bit with 'b'

9
New cards

What's a byte?

A byte is a group of 8 bits

10
New cards

How do we represent a byte?

We represent a byte using 'B'

11
New cards

How much is a nibble?

A nibble is 4 bits (1/2 a byte)

12
New cards

What's a kilobyte?

A Kilobyte is 1000 bytes

13
New cards

What's a megabyte?

A megabyte is 1000 kilobytes

14
New cards

What's a gigabyte?

A gigabyte is 1000 megabytes

15
New cards

What's a terabyte?

A terabyte is 1000 gigabytes

16
New cards

What can be stored by a byte?

A single ASCII character can be stored by a byte

17
New cards

Wha can be stored by a kilobyte/megabyte?

★ Songs ★ Pictures ★ Documents can all be stored with KB

18
New cards

What can be stored by a gigabyte?

★ High definition videos ★ Complex applications can be stored by gigabytes

19
New cards

How do we abbreviate units of information (e.g. bytes)?

★ We abbreviates units of information using the first letter of the prefix +B ★ E.g. KiloByte —> kB

20
New cards

What is an advantage of ASCII?

An advantage of ASCII is it has all standard American letters in just 7 bits

21
New cards

What is a disadvantage of ASCII?

A disadvantage of ASCII is can't display different alphabets and special characters

22
New cards

What are the first 127 Unicode characters?

The first 127 Unicode characters are the corresponding ASCII characters

23
New cards

What is an advantage of Unicode over ASCII?

An advantage of Unicode over ASCII is it can represent different alphabets and special characters

24
New cards

What is a disadvantage of Unicode?

Unicode uses more storage space per character than ASCII

25
New cards

Given 'A' in ASCII is 65, what is 'D'

Given 'A' in ASCII is 65, D is 68

26
New cards

What is a character set?

Character sets are collections of characters that a computer recognises from their binary representation.

27
New cards

What are alphanumeric characters?

Alphanumeric characters include: ★ Uppercase and lowercase characters ★ Numbers/digits ★ Symbols

28
New cards

What are special commands?

Special commands are commands that do certain commands e.g.: ★ Space ★ Enter ★ Delete

29
New cards

What do character sets contain?

Character sets contain: ★ Alphanumeric characters ★ Special commands e.g. space

30
New cards

What is a pixel?

★ A pixel is short for picture element ★ A dot on the screen (smallest indivisible unit for pictures)

31
New cards

What does bitmap mean?

A bitmap is a grid of pixels (map of bits)

32
New cards

What is resolution in computing? [Images]

The resolution is the width and height of the image

33
New cards

What's colour depth?

Colour depth is the amount of bits of colour allowed for each pixel on the image

34
New cards

What's image size?

Image size is the amount of pixels an image contains

35
New cards

What is the formula for image size?

The formula for image size is: Size = width x height x colour depth

36
New cards

How is white and black displayed in images?

0 - is displayed as black on images 1 - is displayed as white on images

37
New cards

What is the formula for number of colours available given the colour depth?

Number of colour = 2ᵇ b = number of bits

38
New cards

What is metadata?

Metadata is a set of data that describes and gives information about other data.

39
New cards

What is analogue data?

Analogue data is continuous and there are no limits to the values that the data can take.

40
New cards

What is digital data?

Data that changes discreetly through a finite set of possible values

41
New cards

Is sound an analogue or digital piece of data?

Sound, which is made up of sound waves, are an analogue piece of data

42
New cards

How does a computer interpret sound despite it being analogue?

To understand sound, a computer makes the analogue data digital data by taking measurements at specific intervals

43
New cards

What is sampling rate?

Sampling rate is how often the data is being measured

44
New cards

What unit is sampling rate measured in?

Sampling rate is measured in Hz (s⁻¹)

45
New cards

What is bit rate?

Bit rate is the number of bits used per second of audio

46
New cards

What is the formula for bitrate?

Bitrate = recs x res

47
New cards

How is sound recorded?

Sound is recorded by converting sound waves into electronic signals that can be processed and stored. Sound is reproduced by converting electronic signals back into sound waves.

48
New cards

What is sampling resolution?

Sampling resolution is the number of bits per sample

49
New cards

What is the advantage of a higher sampling resolution?

A higher sampling resolution is that it will pick up on quieter sounds in the presence of louder sounds

50
New cards

What is the formula for calculating file size for sound?

The formula for calculating file size for sound is: File size (bits) = rate x res x secs ★ Rate - Sampling rate (Hz) ★ Res - Sampling resolution (bits) ★ Secs - seconds (s)

51
New cards

What are 2 advantages of compression?

The advantages of compression include: ★ Less file size ★ Faster download speeds ✔︎ This is because it takes up less bandwidth

52
New cards

What is lossy compression?

Lossy compression is compression where some of the information is permanently eliminated

53
New cards

When would we use lossy compression?

We would use lossy compression when losing some data only means a drop in quality e.g. images,sound

54
New cards

What are 3 examples of lossy compression?

Two examples of lossy compression are: ★ JPEG (for images) ★ MP3/AAC (for sound)

55
New cards

What are 3 advantages to lossy compression?

Advantages of lossy compression include: ★ File takes up a lot less space (also compared to lossless) ➜ Files can be transmitted quicker ✔︎ Takes up less bandwidth ★ Commonly used (lots of software can read it)

56
New cards

What are 3 disadvantages to lossy compression?

Disadvantages to lossy compression include: ★ Worse quality and resolution ★ Can't be used on text or software files where all info is important ★ Cannot restore to original state (loses data)

57
New cards

What is lossless compression?

Lossless compression is compression where all the original data can be recovered when the file is decompressed

58
New cards

When is lossless compression used?

Lossless compressions is typically used when all the data is important (e.g. text files, code)

59
New cards

What are 4 examples of lossless compression?

Examples of lossless compression include: ★ Text files ★ PNGs (images) ★ ZIP (files and folders) ★ FLAC (audio)

60
New cards

What are 3 advantages to lossless compression?

Advantages of lossless compression include: ★ Data is only removed temporarily so there is no reduction in quality, the compressed file should look or sound like the original ★ Lossless files can be decompressed ★ Lossless compression can be used on text and software files

61
New cards

What are 2 disadvantages to lossless compression?

★ File takes up a lot more space ➜ Files cannot be transmitted as quickly ✔︎ Takes up more bandwidth

62
New cards

How do run length encoding (RLE) work?

★ Run length encoding (RLE) works by grouping data by the frequency and the character

63
New cards

When is RLE useful?

Run length encoding (RLE) is useful when lots of pieces of data are repeated e.g. pppprrrr9999

64
New cards

What are two GCSE examples of lossless compression algorithms?

Two examples of lossless compression algorithms include: ★ Huffman encoding ★ Run length encoding (RLE)

65
New cards

How do you interpret Huffman trees?

To interpret Huffman trees, go down the branches and read the 1s and 0s until you reach the character