Web Technology Basics

Which of the following is an appropriate pairing of an image format for web pages with its typical use?

  1. AA logo with a transparent background: JPEG. It can store transparent areas as they are
  2. BA landscape photo: PNG. Because it is lossless, it is always smaller than JPEG for photos
  3. CA company logo or icons: SVG. Because it describes shapes with coordinates and formulas, it does not blur when enlarged
Show answer and explanation

Answer: C. A company logo or icons: SVG. Because it describes shapes with coordinates and formulas, it does not blur when enlarged

JPEG uses lossy compression and can make photos small, but it cannot handle transparent areas. PNG uses lossless compression and can handle transparency, and suits images with crisp text and lines, but for photos it is generally much larger than JPEG. SVG is a vector format that describes shapes as XML text, so it displays smoothly at any size and suits logos and icons. WebP and AVIF support both lossy and lossless compression and transparency, and can generally be smaller than JPEG or PNG at the same quality.

  • A. JPEG cannot handle transparent areas. When transparency is needed, PNG, WebP, SVG or the like is used.
  • B. PNG is lossless, so for photos it is generally larger than JPEG.
  • C. Correct. SVG is a vector format, so it does not blur however much it is enlarged.
Practice this topic Back to topic

Books on Web Technology Basics Ad

As an Amazon Associate I earn from qualifying purchases.

More Web Technology Basics questions

  1. 3,000 bytes of image data are encoded with Base64 and embedded in HTML. If no line breaks are inserted, which of the following is the number of characters after encoding?
  2. A web system is built in three tiers: a web server, an application server and a database server. Which of the following is the processing that the application server mainly handles?
  3. Which of the following correctly describes a reverse proxy?
  4. With CGI, the web server starts the program as a new process every time it receives a request, and the process ends when processing is finished. Which of the following is the main reason that FastCGI and application-server approaches can handle many requests more efficiently than CGI?
  5. Among the ways of producing the pages of a website, which of the following generates the HTML files of all pages in advance at the build stage and returns those files as they are in response to requests?