Calculate the physical address of number bit 5 of program in main memory,where size of program is 8 KB and size of main memory is 32kb. Page table entries are like this..P0-f2,P1-f4,P3-f5& P4-f13 and page size and frame are 2 kb.
Answers
Answer:
REPRESENTING INTEGERS IN THE BINARY SYSTEM
Base b Positional Number System: Each digit is assigned a weight according to
its position. A weight is a power of the base b. Compute each digit times its
weight and sum the results to get the value of the number.
Base 10: ordinary
Base 2: binary system
Base 10 Base 2 Some Powers of 2
======================= ================
0 0 2 ** 0 = 1
1 1 2 ** 1 = 2
2 10 2 ** 2 = 4
3 11 2 ** 3 = 8
4 100 2 ** 4 = 16
5 101 2 ** 5 = 32
6 110 2 ** 6 = 64
7 111 2 ** 7 = 128
8 1000 2 ** 8 = 256
9 1001 2 ** 9 = 512
10 1010 2 ** 10 = 1K = 1024
11 1011 2 ** 20 = 1M = ~1 million
12 1100 2 ** 30 = 1G = ~1 billion
13 1101 2 ** 32 = 4G = ~4 billion
14 1110 2 ** 40 = 1T = ~1 tillion
15 1111 2 ** 50 = 1P = ~1 quadrillion
16 10000 2 ** 60 = 1X = ~1 quintillion
Explanation: