Fundamentals of data representation

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/149

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

150 Terms

1
New cards

What is data?

Raw facts and figures without context

2
New cards

What is information?

Processed data that has meaning

3
New cards

What is a bit?

Smallest unit of data (binary digit: 0 or 1)

4
New cards

What is a byte?

8 bits

5
New cards

What is a nibble?

4 bits (half a byte)

6
New cards

What is a kilobyte (KB)?

1,024 bytes

7
New cards

What is a megabyte (MB)?

1,024 kilobytes

8
New cards

What is a gigabyte (GB)?

1,024 megabytes

9
New cards

What is a terabyte (TB)?

1,024 gigabytes

10
New cards

Why use 1024 instead of 1000?

Computers use binary (powers of 2: 2^10 = 1024)

11
New cards

What is binary?

Number system using only 0 and 1

12
New cards

What is denary?

Number system using 0-9 (decimal, base 10)

13
New cards

What is hexadecimal?

Number system using 0-9 and A-F (base 16)

14
New cards

Why do computers use binary?

Electronic circuits have two states: on (1) and off (0)

15
New cards

What is a binary digit called?

Bit

16
New cards

What does the rightmost bit represent in binary?

1 (2^0)

17
New cards

What is the place value of the second bit from right?

2 (2^1)

18
New cards

What is the place value of the third bit from right?

4 (2^2)

19
New cards

What is the place value of the fourth bit from right?

8 (2^3)

20
New cards

Convert binary 1011 to denary.

11 (8+0+2+1)

21
New cards

Convert binary 11111111 to denary.

255

22
New cards

Convert denary 13 to binary.

1101

23
New cards

Convert denary 255 to binary.

11111111

24
New cards

What is the largest number in 8 bits?

255

25
New cards

How many different values in 8 bits?

256 (0-255)

26
New cards

Formula for number of values with n bits?

2^n

27
New cards

How many values with 4 bits?

16 (2^4)

28
New cards

What is binary addition rule for 0+0?

0

29
New cards

What is binary addition rule for 0+1?

1

30
New cards

What is binary addition rule for 1+0?

1

31
New cards

What is binary addition rule for 1+1?

0, carry 1

32
New cards

What is binary addition rule for 1+1+1 (with carry)?

1, carry 1

33
New cards

What is overflow?

When result is too large for available bits

34
New cards

Example of overflow in 8-bit?

11111111 + 1 cannot be stored in 8 bits

35
New cards

What is a binary shift?

Moving bits left or right

36
New cards

What does left shift do?

Multiplies by 2 for each position

37
New cards

What does right shift do?

Divides by 2 for each position

38
New cards

What is 0101 shifted left once?

1010

39
New cards

What is 1000 shifted right once?

0100

40
New cards

What happens to bits shifted off the end?

They are lost

41
New cards

What is hexadecimal used for?

Shorter representation of binary, easier for humans

42
New cards

How many bits does one hex digit represent?

4 bits (one nibble)

43
New cards

What are hex digits 0-9?

Same as denary 0-9

44
New cards

What are hex digits A-F?

A=10, B=11, C=12, D=13, E=14, F=15

45
New cards

Convert hex F to denary.

15

46
New cards

Convert hex 1A to denary.

26 (1×16 + 10)

47
New cards

Convert denary 255 to hex.

FF

48
New cards

Convert binary 11111111 to hex.

FF

49
New cards

Why is hex useful for color codes?

Each color (RGB) uses 8 bits = 2 hex digits

50
New cards

Example of hex color code?

FF0000 (red)

51
New cards

What does #FFFFFF represent?

White

52
New cards

What does #000000 represent?

Black

53
New cards

What is a character?

Single letter, digit, or symbol

54
New cards

What is a character set?

Collection of characters a computer can represent

55
New cards

What is ASCII?

American Standard Code for Information Interchange

56
New cards

How many bits does ASCII use?

7 bits (extended ASCII uses 8)

57
New cards

How many characters in standard ASCII?

128

58
New cards

How many characters in extended ASCII?

256

59
New cards

What is Unicode?

Modern character set supporting all languages

60
New cards

How many bits does Unicode typically use?

16 or 32 bits

61
New cards

How many characters can Unicode represent?

Over 1 million

62
New cards

Why is Unicode better than ASCII?

Supports more languages, symbols, emojis

63
New cards

What is the ASCII code for 'A'?

65

64
New cards

What is the ASCII code for 'a'?

97

65
New cards

What is the ASCII code for '0'?

48

66
New cards

What is the ASCII code for space?

32

67
New cards

How are characters stored in computer?

As binary numbers using character set codes

68
New cards

What is an image made of?

Pixels (picture elements)

69
New cards

What is a pixel?

Smallest element of an image

70
New cards

What is resolution?

Number of pixels in an image (width × height)

71
New cards

What is color depth?

Number of bits used per pixel

72
New cards

What does 1-bit color depth give?

2 colors (black and white)

73
New cards

What does 8-bit color depth give?

256 colors

74
New cards

What does 24-bit color depth give?

16.7 million colors (true color)

75
New cards

How is 24-bit color depth split?

8 bits each for red, green, blue (RGB)

76
New cards

What is image file size formula?

Width × Height × Color depth

77
New cards

Calculate file size: 100×100 pixels, 24-bit color.

100 × 100 × 24 = 240,000 bits = 30,000 bytes = 29.3 KB

78
New cards

What is metadata?

Data about data

79
New cards

Examples of image metadata?

Width, height, color depth, date created

80
New cards

What is a bitmap image?

Image made of pixels

81
New cards

What happens when you enlarge bitmap?

Becomes pixelated (blocky)

82
New cards

What is image compression?

Reducing file size

83
New cards

What is lossy compression?

Compression that loses some data

84
New cards

Example of lossy format?

JPEG

85
New cards

What is lossless compression?

Compression without losing data

86
New cards

Example of lossless format?

PNG

87
New cards

When to use lossy compression?

Photos where small quality loss acceptable

88
New cards

When to use lossless compression?

Graphics, logos where quality critical

89
New cards

What is sound recorded as?

Analogue waves

90
New cards

What is sampling?

Taking measurements of sound wave at intervals

91
New cards

What is sample rate?

Number of samples per second

92
New cards

What is sample rate measured in?

Hertz (Hz)

93
New cards

What is CD quality sample rate?

44,100 Hz (44.1 kHz)

94
New cards

What is sample resolution/bit depth?

Number of bits per sample

95
New cards

What is CD quality bit depth?

16 bits

96
New cards

What is sound file size formula?

Sample rate × bit depth × duration × channels

97
New cards

Calculate: 1 second, 44.1kHz, 16-bit, mono.

44,100 × 16 × 1 = 705,600 bits = 88,200 bytes ≈ 86 KB

98
New cards

What are channels in audio?

Mono (1) or stereo (2)

99
New cards

How does higher sample rate affect quality?

Better quality, more detail

100
New cards

How does higher sample rate affect file size?

Larger file size