Computer Science: Data Encoding, Compression, and Python Basics

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

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.

28 Terms

1
New cards

All data is represented by...

Numbers

2
New cards

Encoding

The process of assigning numbers to data

3
New cards

Compression

Methods used to reduce data size

4
New cards

Lossless compression

No data is lost; original can be perfectly reconstructed

5
New cards

Lossy compression

Some data is lost to make the file smaller

6
New cards

Run-Length Encoding (RLE)

A lossless compression method that stores repeated values as value + count

7
New cards

ASCII

A standard numerical encoding for letters and symbols

8
New cards

RGB color model

Colors are assigned using Red, Green, and Blue values

9
New cards

JPEG

A lossy image compression format

10
New cards

PNG

A lossless image compression format

11
New cards

BMP

A basic uncompressed image format

12
New cards

Metadata

Data about data (e.g., creation date, file size)

13
New cards

Steganography

Hiding information inside another file, like an image

14
New cards

Parity

The evenness or oddness of the number of 1s in binary

15
New cards

Parity bit

A bit added to data to make the total number of 1s even or odd

16
New cards

Even parity

The total number of 1s must be even

17
New cards

Odd parity

The total number of 1s must be odd

18
New cards

What parity bits are used for

Error detection

19
New cards

Steps to developing code

Design → Code → Test → Debug → Refine

20
New cards

Python input command

`input()`

21
New cards

Python output command

`print()`

22
New cards

Variable

A name that stores a value in memory

23
New cards

Guidelines for naming variables

No spaces, descriptive names, start with a letter

24
New cards

Assigning a variable

`x = 5`

25
New cards

Arithmetic operators

`+ - / // % *`

26
New cards

Comparison operators

`== != > < >= <=`

27
New cards

Logical operators

`and or not`

28
New cards

If statement syntax

...