Chapter 1 Computer science

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

1/64

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 8:24 AM on 4/12/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

65 Terms

1
New cards

Lossless Compression

Loss less compression is when data is encoded to reduce file size + lossless compression is reversible + Reduce file size but not dramatic + Used when data lost is unsuitable like a full document or coding lines + Encodes pattern and repition ๐Ÿ”„

2
New cards

Binary Use - Digits

+ Data in computers are processed with logic gates which only have states 0/1 ๐Ÿค–

+ Computers is consist of millions of tiny switches with two logic gates -> It has two possible values only (0 [OFF] and 1 [ON]) ๐Ÿ”Œ

+ The binary system only has two digits 1/0 which means each digit can represents different state 0๏ธโƒฃ1๏ธโƒฃ

3
New cards

Denary

Base 10 number system ๐Ÿ”Ÿ

4
New cards

Denary Conversions

Subtracting by the binary board of number made by 2^n for denary

<p>Subtracting by the binary board of number made by 2^n for denary</p>
5
New cards

Hexadecimal

It is a base 16 system. ๐Ÿ” 

6
New cards

Why use hexadecimal

+ Often perferred to be use with large values

-> Fewer digits needed to represent given value

+ Easy to read by humans

+ Less prone to error when trying to input

7
New cards

Hexadecimal examples

E.g

+ MAC address

+ Colour codes

+ URL's ๐Ÿ”ฃ

8
New cards

Binary addition

is the process of adding together two integer binary bits of 8 bits

-Rule of thumb

0+0 = 0

1+0 = 1

1+1 = 0 (remember 1)

1+1+1 = 1 (rem 1)

9
New cards

Overflow error (Addition)

could happen when the results of a binary addition exceeds the maximum bits operable in the computer โš ๏ธ

10
New cards

Binary Shifts

is how a computer perform multiplication and division on numbers โœ–๏ธโž—

11
New cards

Left shift

Moved left ( Left shift): Multiply that number by 2 and doubles the number value โฌ…๏ธ

12
New cards

Right shift

Moved right (Right shift): Divides a number by 2 and halves the number by 2 โžก๏ธ

13
New cards

Binary Shift Increments

The number can keep moving and with an increment to multiply or divide by two ๐Ÿ“ˆ

14
New cards

Overflow error (Shifts)

An Overflow error can happen when a 1 is shifted out of the MSB on the left in a logical shift This means that important data will be lost and damage number value ๐Ÿšซ

15
New cards

Two's complement

is the "computer way" of using positive and negative values โž•โž–

16
New cards

Two's complement Rule 1

In two's complement the LSB is designed as MSB ๐Ÿฅ‡

17
New cards

Two's complement Rule 2

MSB = -128 ๐Ÿ”ข

18
New cards

Two's complement Steps

Step 1: Workout the positive version of number Step 2: Invert all the bits Step 3: Add 1 in LSB ๐Ÿชœ

19
New cards

Text

Text is converted to binary to be processed by a computer ๐Ÿ”ค

20
New cards

Character set

A standardized list use by computer using binary values to represent character and symbols ๐Ÿ“‹

21
New cards

ASCII

A standard character set accepted to represent english characters and math symbols and notations ๐Ÿ‡บ๐Ÿ‡ธ

22
New cards

ASCII

+ A standard character set accepted to represent english characters and math symbols and notations

+ ASCII uses 7 bits or a maximum of 128 characters

23
New cards

Extended ASCII

an extended character set using 8 bits which is 256 unique codes and add essential characters with math operations and recent symbols

24
New cards

ASCII Limitations - Characters

Limited number of characters only represent English alphabet and some number and some special characters ๐Ÿ“‰

25
New cards

ASCII Limitations - Languages

Cannot other languages and does not include modern symbols or emojis too โŒ

26
New cards

UNICODE

A characters set with a minimum of 16 bits which is over 65,536 characters it can represent ๐ŸŒ

27
New cards

UNICODE Advantages

UNICODE can represent a wide range of characters from many major languages and a range of recent emojis and symbols โœจ

28
New cards

UNICODE Disadvantages

But UNICODE required more bits per character than ASCII -> More storage space required ๐Ÿ’พ

29
New cards

Sound

Sound waves are captured as an analouge version -> convert to digital form with measurements of amplitude and in binary values. This is called Analogue to Digital conversion (ADC) ๐ŸŽค

30
New cards

Sample Rate

Amount of samples taken per second of the analouge wave โฑ๏ธ

31
New cards

Sample resolution

Number of bits stored per sample ๐Ÿ“

32
New cards

Sample Rate Relationship

As Sample Rate increase, quality and accuracy of sound increases, but file size increase ๐Ÿ“ˆ

33
New cards

Sample Resolution Relationship

As Sample resolution increase, quality and accuracy of sound increases, but file size increase ๐Ÿ“Š

34
New cards

Sound file size calculation

Sample rate x duration x sample resolution ๐Ÿงฎ

35
New cards

Images

Images are represent by computer as bitmaps that stores a specific binary values for each pixel with each picture have different size resolution and colour variety ๐Ÿ“ธ

36
New cards

Pixel

Smallest element of a bitmap image โฌ›

37
New cards

Resolution

Total amount of pixels in an image -> Height x Width ๐Ÿ“

38
New cards

Colour depth

Number of bits used to represent every colour ๐ŸŽจ

39
New cards

Amount of colours calculation

The amount of colours can be calculated as 2^n (n = colour depth) ๐Ÿงฎ

40
New cards

Image File Size calculation

colour depth x resolution (width x height) ๐Ÿ’พ

41
New cards

File Size vs Resolution/Colour Depth

As the resolution and/or colour depth increases, the bigger the size of the file becomes on secondary storage ๐Ÿ“ˆ

42
New cards

Resolution vs Bits

The higher the resolution, the more pixels are in the image, the more bits are stored โฌ†๏ธ

43
New cards

Colour Depth vs Bits

The higher the colour depth, the more bits per pixel are stored ๐ŸŒˆ

44
New cards

Bit

1 or 0 1๏ธโƒฃ

45
New cards

Nibble

4 Bits ๐Ÿง€

46
New cards

Byte B

8 Bits ๐Ÿ—ƒ๏ธ

47
New cards

Kibibyte KiB

1,024 B (2^10) ๐Ÿ“ฆ

48
New cards

Mebibyte MiB

1,024 KiB (2^20) ๐Ÿ“š

49
New cards

Gibibyte GiB

1.024 MiB (2^30) ๐Ÿ—„๏ธ

50
New cards

Tebibyte TiB

1,024 GiB (2^40) ๐Ÿข

51
New cards

Pebibyte PiB

1,024 TiB (2^50) ๐Ÿ™๏ธ

52
New cards

Exbibyte EiB

1,024 PiB (2^60) ๐ŸŒŽ

53
New cards

Conversion Tips

Tips - Multiply by 1024 to convert the units โœ–๏ธ

54
New cards

Data Compresssion

Reduce size of files so that it takes up less space and secondary storage ๐Ÿ—œ๏ธ

55
New cards

Data Compression Benefits

+ Less storage space needed

+ Less bandwidth required

+ Shorter transmission time โœ…

56
New cards

Lossy Compression

Lossy compression is when data is Lost in order to reduce fie size ๐Ÿ“‰

57
New cards

Lossy Compression Characteristics

+ Lossy compression are irreversible

+ Reduce file size greatly -> more than lossless

+ Use when Reducing quality is acceptable

-> e.g: images, video, sound ๐Ÿ—‘๏ธ

58
New cards

Lossy Sound (MP3)

-> Reduce file size by 90% -> Removes sounds outside human ear range -> Eliminates soft sound by perceptual music shaping ๐ŸŽต

59
New cards

Lossy Video (MP4)

-> Reduce multimedia file size -> Allows movies to stream across web servers ๐ŸŽฌ

60
New cards

Lossy Picture (JPEG)

-> Reduce file size of an image -> Human eyes cannot detect diffrences ๐Ÿ–ผ๏ธ

61
New cards

Lossless Compression

Loss less compression is when data is encoded to reduce file size ๐Ÿ“ฆ

62
New cards

Lossless Compression Characteristics

+ lossless compression is reversible

+ Reduce file size but not dramatic

+ Used when data lost is unsuitable like a full document or coding lines

+ Encodes pattern and repition ๐Ÿ”„

63
New cards

RLE (Run Length Encoding)

example of lossless compression

+ Reduce string of adjacent, identical items

64
New cards

RLE First Value

First value represent numbers of identical data 1๏ธโƒฃ

65
New cards

RLE Second Value

Second value represent ASCII of data item 2๏ธโƒฃ