Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
A game background is 512 pixels wide and 256 pixels high, with a colour depth of 8 bits.
Find its size in KiB.
Image bits width height colour depth. Sound bits sample rate resolution seconds. Divide by 8 for bytes, then by 1024 for each step up to the unit the question asks for. To count files that fit, put both sizes in one unit, divide and round down.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Given. 512 by 256 pixels, 8 bits a pixel.
Plan. Bits, then bytes, then KiB.
Step 1. Bits. bits.
Step 2. Bytes. bytes.
Step 3. KiB. KiB.
Check. Each pixel is one byte, so the bytes equal the pixels: .
Answer: 128 KiB.
Log in to join the discussion.
Loading…