Free amount of computer RAM is 640 KB. How many pages of the book can fit in it if the page contains
Free amount of computer RAM is 640 KB. How many pages of the book can fit in it if the page contains 16 lines with 64 characters per line (character encoding is in unicode)?
The task contains a clarification about the type of encoding. Namely: it is the Unicode encoding that is used.
We know that for her, each character is 16 bits or 2 bytes.
Let’s find how many characters are on one page:
16 * 64 = 1024.
In the usual Ansii encoding, one byte is needed for one character, and for our encoding – 2. That is, for 1024 characters, you need 1024 * 2 = 2048 bytes.
We have a memory size in kilobytes, which is 640, which means we need to translate them into bytes:
640 * 1024 = 655 360 (bytes).
Let’s find how many entire pages can fit:
655 360: 2048 = 320 (pages).
ANSWER: 320 pages.