Which of the following compression algorithms is used to generate a .png file?

2015

Which of the following compression algorithms is used to generate a .png file?

Answer: B. DeflateThe PNG file format specification explicitly defines the use of the DEFLATE compression algorithm for compressing image data streams. While Huffman coding is…

  1. A.

    LZ78

  2. B.

    Deflate

  3. C.

    LZW

  4. D.

    Huffman

Attempted by 526 students.

Show answer & explanation

Correct answer: B

The PNG file format specification explicitly defines the use of the DEFLATE compression algorithm for compressing image data streams. While Huffman coding is a component within Deflate, the standard identifier for the algorithm used in PNGs is specifically Deflate. LZW compression is primarily associated with GIF files rather than PNG images.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Iocl Engineers Officers Grade A Paper 2

Loading lesson…