Lossless text compression
Which sequences could be replaced to compress the text?
Choose all answers that apply:
AP CS Principal : 2.2 Data Compression
Quiz
•
Computers
•
11th Grade
•
Easy
Hicabi Yeniay
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
3 mins • 10 pts
Which sequences could be replaced to compress the text?
Choose all answers that apply:
am
like
you
sam
eggs
2.
MULTIPLE CHOICE QUESTION
3 mins • 10 pts
0011110001111000
How would that row be represented in RLE?
Choose 1 answer
0,2,5,3,5,3
0,2,5,4,5,3
2,4,3,4,3
0,2,5,3,5,3
0,2,4,3,4,3
3.
MULTIPLE CHOICE QUESTION
3 mins • 10 pts
The following is a compression of a 6x6 black and white icon, using RLE
2,2,2
2,2,2
0,6
0,6
2,2,2
2,2,2
What mathematical symbol does that icon resemble?
+
-
/
X
4.
MULTIPLE CHOICE QUESTION
3 mins • 10 pts
Decode the following bits using the optimized binary codes.
111001
tgtct
tttct
ttcta
ttcat
5.
MULTIPLE CHOICE QUESTION
3 mins • 10 pts
Compression algorithms vary in how much they can reduce the size of an image.
Which of the following would likely be the easiest to compress?
Choose 1 answer:
6.
MULTIPLE CHOICE QUESTION
3 mins • 10 pts
Byte pair encoding is a compression algorithm that replaces repeated pairs of characters in a string with a character that isn't in the data, and creates a table of replacement mappings.
Here's a quote from Dr. Seuss:
"Think left and think right and think low and think high. Oh, the thinks you can think up if only you try!"
Which of the following character pairs would the algorithm replace?
Choose 2 answers:
nl
ft
th
in
7.
MULTIPLE CHOICE QUESTION
3 mins • 10 pts
Tess is creating an alarm clock using an LCD (liquid-crystal display) that looks like in the picture:
Each digit will be 5 pixels wide and 7 pixels tall. She decides to save space by storing the pixels for each digit using run-length encoding (RLE).
RLE is a data compression technique that replaces "runs" (sequences of bits with the same value) with a number representing the length of the run.
Here's the RLE for one of the digits:
1,3,1
0,1,3,1
0,1,3,1
1,3,1
0,1,3,1
0,1,3,1
1,3,1
9
0
8
3
12 questions
Warm Up Data Representation
Quiz
•
9th - 12th Grade
14 questions
Year 11 compression
Quiz
•
10th - 11th Grade
15 questions
Code.org CSP Unit 1 Review
Quiz
•
9th - 12th Grade
15 questions
CSP Unit 1 Review
Quiz
•
9th - 12th Grade
12 questions
U1 Digital Information Vocab
Quiz
•
9th - 12th Grade
15 questions
AQA Data Representation
Quiz
•
10th - 11th Grade
12 questions
Pearson 1CP2 - 2.3 - Units of storage and Compression
Quiz
•
9th - 12th Grade
14 questions
Code.org Unit 2
Quiz
•
9th - 12th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University