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

Study for the CodeHS AP Computer Science Principles (CSP) Exam. Prepare with flashcards and multiple choice questions, each question comes with hints and explanations. Get ready for success!

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