Which file extension is commonly used for a lossy image format designed for photographs?

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 file extension is commonly used for a lossy image format designed for photographs?

Explanation:
This question tests knowledge of image formats and how their compression affects photographs. JPEG uses lossy compression, meaning it reduces file size by discarding some image data, which works well for photographs where subtle color variations can still look good after compression. That’s why JPEG is commonly used for photos on the web. The file extension for this format is .jpeg (often seen as .jpg as well), designed specifically for efficient photographic images. In contrast, PNG is lossless, preserving every pixel and best for graphics with sharp edges or transparency; GIF has a limited color palette and can support animation; BMP is typically uncompressed and results in larger files.

This question tests knowledge of image formats and how their compression affects photographs. JPEG uses lossy compression, meaning it reduces file size by discarding some image data, which works well for photographs where subtle color variations can still look good after compression. That’s why JPEG is commonly used for photos on the web. The file extension for this format is .jpeg (often seen as .jpg as well), designed specifically for efficient photographic images.

In contrast, PNG is lossless, preserving every pixel and best for graphics with sharp edges or transparency; GIF has a limited color palette and can support animation; BMP is typically uncompressed and results in larger files.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy