Which extension denotes a lossless image format widely used for web graphics with transparency support?

Prepare for the CodeHS AP Computer Science Principles Exam with multiple choice questions, detailed explanations, and helpful hints. Boost your confidence and get ready for your exam!

Multiple Choice

Which extension denotes a lossless image format widely used for web graphics with transparency support?

Explanation:
The main idea here is finding a format that preserves image quality (lossless compression) while also providing transparency for web graphics. PNG fits both needs: it uses lossless compression, so saving and editing keeps every detail intact, and it supports an alpha channel, giving per-pixel transparency for smooth edges against any background. That combination is why PNG is the go-to choice for logos, icons, and graphics that need transparent backgrounds on the web. Other formats don’t align as well. GIF can handle transparency, but only as a binary mask with a very limited color palette, which can lead to rough edges and color banding on more complex images. BMP is typically not used on the web due to larger file sizes and lack of optimized web performance. JPEG is lossy, meaning it sacrifices some image detail to shrink files, and it cannot handle transparency at all, making it unsuitable when transparent backgrounds are required.

The main idea here is finding a format that preserves image quality (lossless compression) while also providing transparency for web graphics. PNG fits both needs: it uses lossless compression, so saving and editing keeps every detail intact, and it supports an alpha channel, giving per-pixel transparency for smooth edges against any background. That combination is why PNG is the go-to choice for logos, icons, and graphics that need transparent backgrounds on the web.

Other formats don’t align as well. GIF can handle transparency, but only as a binary mask with a very limited color palette, which can lead to rough edges and color banding on more complex images. BMP is typically not used on the web due to larger file sizes and lack of optimized web performance. JPEG is lossy, meaning it sacrifices some image detail to shrink files, and it cannot handle transparency at all, making it unsuitable when transparent backgrounds are required.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy