Suppose you have eight black-and-white images taken with a 1-megapixel camera and one 8-colour image taken with an 8-megapixel camera. How much hard disk space in total do you need to store these images?
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: B. 4 MB
Explanation
Black-and-white needs 1 bit per pixel: 8 images × 1 Mbit = 8 Mbit = 1 MB. An 8-colour image needs 3 bits per pixel: 8 M × 3 bits = 24 Mbit = 3 MB. Total = 4 MB.
More Programming Languages and Computer Graphics questions
- Which of the statements given below are correct? The midpoint (or Bresenham) algorithm for rasterizing lines is optimized relative to DDA a…
- What is the transformation matrix that transforms the square with vertices (1, 1), (−1, 1), (−1, −1), (1, −1) into the parallelogram with c…
- A Bezier curve P(t) is defined by four control points P0 = (−2, 0), P1 = (−2, 4), P2 = (2, 4), P3 = (2, 0). Which statements are correct? A…
- Given below are two statements Statement I: The maximum number of sides that a triangle might have when clipped to a rectangular viewport i…
- With 1-byte chars, 2-byte shorts, 4-byte ints and 8-byte doubles, each aligned to its size, no field reordering, and padding for alignment,…
- Consider the Java function: public static float f(long m, long n) { float result = (float)m / (float)n; if (m < 0 || n < 0) return 0.0f; el…