Types of compression A. Lossless B. Lossy C. Both A and B D. None of the above

[amp_mcq option1=”Lossless” option2=”Lossy” option3=”Both A and B” option4=”None of the above” correct=”option2″]

The correct answer is: Both A and B.

Lossless compression is a data compression method where no information is lost from the original data. This means that the original data can be perfectly reconstructed from the compressed data. Lossless compression is often used for data that needs to be stored or transmitted without any loss of quality, such as text, images, and audio.

Lossy compression is a data compression method where some information is lost from the original data. This means that the original data cannot be perfectly reconstructed from the compressed data. Lossy compression is often used for data that does not need to be stored or transmitted with perfect quality, such as music and video.

Here are some examples of lossless compression algorithms:

  • Huffman coding
  • Lempel-Ziv coding
  • Run-length encoding

Here are some examples of lossy compression algorithms:

  • JPEG
  • MP3
  • MPEG-4

I hope this helps! Let me know if you have any other questions.