It is known that the video memory of a computer is 512 Kbytes. The screen resolution is 640 by 200 pixels
It is known that the video memory of a computer is 512 Kbytes. The screen resolution is 640 by 200 pixels. How many screen pages can be simultaneously placed in video memory with a palette: a) of 8 colors; b) 16 colors; c) 256 colors?
Let’s translate into bits: 512 KB = 512 * 1024 bytes = 512 * 1024 * 8 bits
A) Let’s count how many bits are required for 8 colors: log (2) 8 = 3 bits
Now let’s calculate how many pages of the screen will simultaneously fit in the video memory: 512 * 1024 * 8 / (640 * 200 * 3) = 10
B) Let’s count how many bits are required for 16 colors: log (2) 16 = 4 bits
Now let’s calculate how many screen pages will simultaneously fit in video memory: 512 * 1024 * 8 / (640 * 200 * 4) = 8
C) Let’s count how many bits are required for 256 colors: log (2) 256 = 8 bits
Now let’s calculate how many screen pages will simultaneously fit in video memory: 512 * 1024 * 8 / (640 * 200 * 8) = 4