Bird
0
0

If a 10MB text file is compressed using gzip and the compression ratio is 50%, what will be the approximate size of the compressed file?

medium📝 Command Output Q4 of 15
Linux CLI - Archiving and Compression
If a 10MB text file is compressed using gzip and the compression ratio is 50%, what will be the approximate size of the compressed file?
A5MB
B15MB
C10MB
D20MB
Step-by-Step Solution
Solution:
  1. Step 1: Understand compression ratio meaning

    A 50% compression ratio means the file size is reduced to half.
  2. Step 2: Calculate compressed size

    Half of 10MB is 5MB, so the compressed file size is about 5MB.
  3. Final Answer:

    5MB -> Option A
  4. Quick Check:

    Compression ratio 50% means half size = D [OK]
Quick Trick: Compression ratio 50% halves the file size [OK]
Common Mistakes:
  • Adding instead of reducing size
  • Confusing ratio with percentage saved
  • Choosing original size as compressed size

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes