Computer Science - 3 Data Representation

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

1/108

flashcard set

Earn XP

Description and Tags

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

109 Terms

1
New cards

1 bit

a single 1 or 0

2
New cards

1 byte

8 bits

3
New cards

1 nibble

4 bits / 1/2 byte

4
New cards

Order of prefixes [4]:

- kilo
- mega
- giga
- tera

5
New cards

One character of text:

1 byte

6
New cards

A full page of text:

30 kB

7
New cards

One small digital colour photograph:

3 MB

8
New cards

Music CD capacity:

650 MB

9
New cards

DVD capacity:

4.5 GB

10
New cards

Hard disc capacity:

1 TB

11
New cards

Most significant bit (MSB)

the leftmost bit in a binary number - which has the highest value

12
New cards

Least significant bit (LSB)

the rightmost bit in a binary number - which has the lowest value

13
New cards

The number of combinations from n bits =

2ⁿ

14
New cards

Hexadecimal

a number system that uses base 16

15
New cards

0 - 15 in hexadecimal =

0 - 9 and A - F

16
New cards

Hexadecimal to decimal conversion [2]:

- multiply value of left digit by 16
- add value of right digit

17
New cards

Decimal to hexadecimal conversion [2]:

- divide using integer division by 16 (value = left digit)
- remainder = right digit

18
New cards

Binary to hexadecimal conversion [3]:

- divide 1 byte into two nibbles (left and right)
- convert the value of each nibble to hexadecimal digits
- combine the two

19
New cards

Hexadecimal to binary conversion [2]:

- represent each digit in turn as 4-bit numbers
- combine them

20
New cards

Advantages of hexadecimal [4]:

- simpler to remember
- quicker to write or type
- less likely to make error
- easy to convert between hex and binary

21
New cards

Rules of binary addition:

- 0 + 0 = 1
- 0 + 1 = 1
- 1 + 0 = 1
- 1 + 1 = 0 (carry 1)
- 1 + 1 + 1 = 1 (carry 1)

22
New cards

1 + 1 + 1 + 1 = ? [3]

- 4
- 100
- 1 carried over by 2

23
New cards

Overflow error

error from attempting to represent a number that is too large.

24
New cards

A right logical shift causes:

a division by 2 (if float, round down)

25
New cards

A left logical shift causes:

a multiplication by 2

26
New cards

Number of unique characters on a keyboard

98

27
New cards

What are characters on a keyboard represented by?

a binary value

28
New cards

Character set

the group of symbols used to render text on a page

29
New cards

What are the two major character sets? [2]

- ASCII
- Unicode

30
New cards

ASCII is usually ...-bit but can be ...-bit

7, 8

31
New cards

Unicode is ...-bit and extended Unicode is ...-bit

16, 32

32
New cards

What does ASCII stand for?

American Standard Code for Information Interchange

33
New cards

In ASCII, 'A' begins at ... and ends at ...

65, 90

34
New cards

In ASCII, 'a' begins at ... and ends at ...

97, 122

35
New cards

In ASCII, 0-9 are ...

48-57

36
New cards

In ASCII, a space is ...

32

37
New cards

Concatenate

chain together

38
New cards

Concatenate strings in Python ("Help ", "me!": string1, string2):

string1 = "Help "
string2 = "me!"
concatenated = string1 + string2
print(concatenated)

#output: "Help me!"

39
New cards

Convert character to ASCII in pseudocode [2]:

- CHAR_TO_ASCII
- CHAR_TO_CODE

40
New cards

Unicode, as well as English characters, is used to store... [2]:

- characters from other languages
- emojis

41
New cards

Bitmap/raster image

digital image divided into a grid of dots (pixels)

42
New cards

Bitmap images are made of ... or ...

PICture ELements, pixels

43
New cards

Pixel

the smallest identifiable area of an image

44
New cards

A pixel is [2]:

- one solid colour
- given a binary code to represent that colour

45
New cards

Bitmap image file formats [5]:

- BMP
- JPG
- GIF
- PNG
- TIFF

46
New cards

Vector image file format:

SVG

47
New cards

Image resolution

the concentration of pixels in a specific area

48
New cards

PPI

pixels per inch (screen)

49
New cards

DPI

dots per inch (printing)

50
New cards

Colour/bit depth

the number of bits used for each pixel in an image file

51
New cards

File size (bits) =

height x width x bit depth

52
New cards

If you increase the file size but not the number of pixels...

the pixel concentration decreases as well as the resolution

53
New cards

Portable bitmap image (PBM) [3]

- uses 1s and 0s to store pixels
- image dimensions given in 1st row
- image details given after

54
New cards

Each pixel has a proportion of ..., ... and ..., called its ... value

red, green, blue, RGB

55
New cards

RGB

uses varying intensities of red, green, and blue light are added together to reproduce a broad array of colors

56
New cards

Why are hexadecimal and decimal values used for RGB?

colour pickers are used by designers and developers and these forms are easier to remember than binary

57
New cards

Each colour value (R, G, B) requires:

8 bits

58
New cards

Each pixel requires:

24-32 bits

59
New cards

In 32-bis per pixel 8 bits are given to a ...

transparency channel

60
New cards

Metadata

data about data

61
New cards

What metadata may be present in an image file? [4]

- colour depth in bits per pixel
- resolution (height and width in pixels)
- date created
- author

62
New cards

Why might file sizes not add up?

metadata

63
New cards

Analogue sound signal

continuous wave

64
New cards

Digital sound signal

discrete - wave sampled at regular intervals

65
New cards

How is sound digitised?

by repeatedly measuring and recording the sound wave

66
New cards

ADC

analogue to digital converter

67
New cards

What is an ADC used for?

convert inputs to digital sounds

68
New cards

DAC

digital to analogue converter

69
New cards

What is a DAC used for?

convert digital sounds to outputs

70
New cards

Sound sample

a measure of amplitude at a point in time

71
New cards

Sampling resolution

number of bits used to represent sound amplitude

72
New cards

Sampling resolution is also called...

bit depth

73
New cards

Sampling rate

the number of samples taken per second

74
New cards

What is sampling rate measured in?

Hertz (Hz)

75
New cards

The higher the bit depth/sampling resolution...

the more accurate the amplitude value

76
New cards

What is the sampling rate for a CD?

44.1 kHz

77
New cards

File size (bits) =

sampling rate x resolution x duration

78
New cards

What improves recording quality? [2]

- sound sampled more frequently
- wave height recorded more accurately

79
New cards

Lossy compression

removes sound that we can't easily hear or that least affect playback quality - this is irreversible

80
New cards

What is lossy compression useful for in music?

downloading and streaming music

81
New cards

Examples of lossy compression sound file formats [2]:

- MP3
- AAC

82
New cards

MP3

MPEG-1 Audio layer 3

83
New cards

AAC

Advanced Audio Coding

84
New cards

Lossless compression

data compression technique where no data is lost

85
New cards

Examples of lossless compression sound file formats [3]:

- FLAC
- ALAC
- WMA Lossless

86
New cards

FLAC

Free Lossless Audio Codec

87
New cards

ALAC

Apple Lossless Audio Codec

88
New cards

WMA Lossless

Windows Media Audio

89
New cards

Examples of uncompressed sound file formats [2]:

- WAV
- AIFF

90
New cards

WAV

Waveform Audio File Format

91
New cards

AIFF

Audio Interchange File Format

92
New cards

Compression algorithm

an algorithm that compresses file size

93
New cards

Decompression

returning compressed data to its original format

94
New cards

With lossy compression, data is...

lost permanently

95
New cards

With lossless compression, data is...

not lost, and the file can be decompressed

96
New cards

Digital artefact

small mistakes in image and video as a result of lossy compression

97
New cards

Which type of compression reduces file size more?

lossy compression

98
New cards

Run length encoding

replacing a long series of a repeated character with a count of the repetition

99
New cards

(RLE) 1111000 =

4 1 3 0

100
New cards

Examples of lossy compression image file formats [1]:

- JPG