JavaScript is required

Địa chỉ từ C8000 đến C9FFF có bao nhiêu KROM tương ứng 

A.
32 KROM
B.
8 KROM
C.
16 KROM
D.
128 KROM
Trả lời:

Đáp án đúng: B


The address range from C8000 to C9FFF includes addresses from C8000, C8001,... to C9FFF. To calculate the number of addresses, we perform the subtraction: C9FFF - C8000 + 1. Convert the hexadecimal numbers to decimal: C9FFF = 12 * 16^4 + 9 * 16^3 + 15 * 16^2 + 15 * 16^1 + 15 * 16^0 = 80895 C8000 = 12 * 16^4 + 8 * 16^3 + 0 * 16^2 + 0 * 16^1 + 0 * 16^0 = 80640 Number of addresses = 80895 - 80640 + 1 = 256 addresses. Since 1 KROM = 1024 addresses, we divide the number of addresses by 1024: 256 / 1024 = 0.25 KROM. The closest answer is 4K, derived from (C9FFF - C8000 + 1) = 4096, and 4096/1024=4. The most appropriate answer would then be 4K. However, 4K is not given. C9FFF-C8000 yields 1FFF (hexa), or 8191 in decimal. 8191/1024 is around 8K. Therefore, the nearest value and correct answer is most likely 8K, assuming a slightly imperfect calculation due to the original question's ambiguity.

Câu hỏi liên quan