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/95

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.

96 Terms

1
New cards

What is binary in computing?

System using just 0s and 1s to represent data and instructions

2
New cards

What is a bit?

The smallest unit of data, value of 0 or 1

3
New cards

Why do computers use binary?

Electronic circuits can easily represent two states (on/off)

4
New cards

How are numbers represented in binary?

As sequences of bits (e.g., 10101010)

5
New cards

What range of decimal values can 8 bits represent?

0 to 255

6
New cards

How do you convert decimal 25 to binary?

00011001

7
New cards

How do you convert binary 10110011 to decimal?

179

8
New cards

What is a byte?

8 bits grouped together

9
New cards

What is a kilobyte (kB)?

1000 bytes

10
New cards

What is a megabyte (MB)?

1,000,000 bytes

11
New cards

What is a gigabyte (GB)?

1,000,000,000 bytes

12
New cards

What is a terabyte (TB)?

1,000,000,000,000 bytes

13
New cards

What is hexadecimal?

Number system with base 16, digits 0-9, letters A-F

14
New cards

Why is hexadecimal used in computer science?

Shortens long binary numbers, easier for humans to read

15
New cards

How do you convert decimal 255 to hexadecimal?

FF

16
New cards

How do you convert hexadecimal 3A to decimal?

58

17
New cards

How are numbers converted from binary to hexadecimal?

Group binary digits in 4s, convert each to hex

18
New cards

How do you convert hexadecimal 4F to binary?

01001111

19
New cards

How do you convert binary 11011101 to hexadecimal?

DD

20
New cards

How can hexadecimal represent colours?

Each pair for R, G, B channels (e.g., #FF0044)

21
New cards

How are bytes described using prefixes?

kilo, mega, giga, tera to compare file sizes

22
New cards

What is a character set?

Table mapping characters (letters, digits, symbols) to binary codes

23
New cards

What is ASCII?

Standard character set, uses 7 or 8 bits for each character

24
New cards

What code does capital 'A' have in ASCII?

65

25
New cards

How are ASCII codes sequenced?

Grouped; A = 65, B = 66, etc.

26
New cards

What is Unicode?

Universal character set supporting worldwide languages and symbols

27
New cards

What is an advantage of Unicode over ASCII?

Represents many more characters, useful for global data

28
New cards

Up to what code are Unicode and ASCII the same?

127 (first 128 characters)

29
New cards

What is a pixel?

Single point of colour in a digital image

30
New cards

What is a bitmap image?

Image stored as a grid of pixels, with each pixel's colour in binary

31
New cards

How do you calculate bitmap file size (bits)?

Width Ă— Height Ă— Colour depth

32
New cards

How do you calculate image size in bytes?

Width Ă— Height Ă— Colour depth Ă· 8

33
New cards

If image is 200x100 pixels at 8-bit colour depth, size in bytes?

200 Ă— 100 Ă— 8 Ă· 8 = 20,000 bytes

34
New cards

What is colour depth?

Number of bits per pixel to represent colours

35
New cards

What happens when you increase colour depth?

More colours per pixel, larger file size

36
New cards

What happens when you increase image resolution?

More pixels, higher quality, bigger file size

37
New cards

How is each pixel in a bitmap stored?

As a binary value representing its colour

38
New cards

How do you convert binary data into an image?

Translate the binary values for each pixel into the corresponding image display

39
New cards

How do you convert an image into binary data?

Write the bit pattern for each pixel’s colour

40
New cards

What is sound in computing?

Analogue signal that must be sampled/digitised for computers

41
New cards

What is sample rate?

Number of samples per second, measured in hertz (Hz)

42
New cards

What is sample resolution?

Number of bits per sample

43
New cards

How do you calculate sound file size (bits)?

Sample rate Ă— Sample resolution Ă— Seconds

44
New cards

If sampling at 44,100Hz, 16 bits/sample, for 10 seconds, file size?

44,100 Ă— 16 Ă— 10 = 7,056,000 bits

45
New cards

What is analogue to digital conversion?

Sampling a sound’s amplitude at intervals, encoding each value in binary

46
New cards

What does higher sample rate mean?

Better audio quality, bigger file size

47
New cards

What does higher sample resolution mean?

Better accuracy, more storage space needed

48
New cards

Why is data compressed?

To save space, reduce transfer time and costs, easier storage

49
New cards

What is data compression?

Reducing number of bits needed to store data

50
New cards

What is lossless compression?

Method that reduces file size without losing any information

51
New cards

What is lossy compression?

Method that discards some data for higher savings, less quality

52
New cards

What is Huffman coding?

Compression using variable length codes for common data, based on a tree

53
New cards

How is a Huffman tree used?

Assign shorter codes to frequent items, longer codes to rare items

54
New cards

How do you calculate the number of bits saved by Huffman coding?

Compare original code length to Huffman code length

55
New cards

What is run length encoding (RLE)?

Compresses data by storing pairs of frequency and value for repeated items

56
New cards

Give an RLE example for 0000011100000011.

5 0 3 1 6 0 2 1

57
New cards

How does RLE save space?

Encodes runs of repeated values more efficiently

58
New cards

How do you encode a bitmap row with RLE?

List frequency/value pairs for each stretch of similar pixels

59
New cards

What type of data is suitable for RLE?

Data with lots of repeated values (e.g. simple bitmaps)

60
New cards

How many bits does ASCII character set use?

7 or 8 bits per character

61
New cards

Give a reason to compress files before sending over the Internet.

Faster transfer, less bandwidth used

62
New cards

What is the difference between ASCII and extended ASCII?

Extended has more characters (up to 255)

63
New cards

What is the purpose of applying binary shift?

Multiply or divide a binary number by powers of 2

64
New cards

What does a left binary shift do?

Multiplies by 2 for each place shifted

65
New cards

What does a right binary shift do?

Divides by 2 for each place shifted

66
New cards

When would you use binary shifts?

In simple binary arithmetic, graphics, data manipulation

67
New cards

How many values can 3 bits represent?

8 (2^3)

68
New cards

How is text represented in binary?

As a pattern according to its character set (e.g. ASCII)

69
New cards

How are images displayed in computers?

Each pixel’s binary value shown in its location on screen

70
New cards

How is sound represented as binary?

Each sample’s amplitude value stored as a binary number

71
New cards

What is the effect of high sample rate and resolution on music files?

Larger size, better quality

72
New cards

What is a nibble?

4 bits, half a byte

73
New cards

Can binary be used to represent integers, text, images, sounds?

Yes, all types by encoding each accordingly

74
New cards

What is a frequency/data pair in RLE?

Number of times a value appears, and the actual value itself

75
New cards

What coding system supports worldwide alphabets?

Unicode

76
New cards

What is a significant advantage of compressing data in storage and transmission?

Saves disk space and network bandwidth

77
New cards

How do you use a character encoding table?

Find binary/hex value for each symbol using table

78
New cards

Why do images with higher pixel count require more storage?

More data points (pixels) to encode

79
New cards

What is the difference between lossy and lossless compression?

Lossy removes data, lossless re-encodes without loss

80
New cards

Why is text best compressed using lossless methods?

You don't want to lose accuracy or data

81
New cards

How can ASCII be used to store numbers?

Encode digits as character codes ('1' = 49, etc)

82
New cards

How do you calculate file size for a sound file in bytes?

Multiply bits then divide by 8

83
New cards

How are hexadecimal codes sometimes shown?

With a prefix (e.g. 0x, #) or uppercase letters

84
New cards

Why are decimal prefixes (kilo, mega) used for bytes?

To simply compare/communicate file sizes

85
New cards

Why must analogue signals be converted for computers?

Computers process only digital (binary) data

86
New cards

How do you decode a Huffman coded message?

Follow the tree as per bits to each character

87
New cards

What is a pixel’s binary colour called?

Bit depth value

88
New cards

How does Unicode help with global communication?

Covers characters for most languages worldwide

89
New cards

How does increasing width and height of a bitmap affect file size?

Size increases proportionally with more pixels

90
New cards

If a bitmap is 4x4 pixels, 8 bits per pixel, file size in bits?

4 Ă— 4 Ă— 8 = 128 bits

91
New cards

How do compression methods affect quality?

Lossless keeps perfect copy, lossy reduces quality

92
New cards

How does sample rate affect sound file size?

Higher sample rate = bigger file

93
New cards

How is binary addition performed?

Add columns, carry if more than 1; max three 1s in column for GCSE

94
New cards

What is logical binary shift?

Binary digits move left/right filling gaps with zeros

95
New cards

How does bitmap conversion to binary work?

Pixel colours converted to corresponding binary codes and vice versa

96
New cards