Operating Systems Concepts - Engineering

Q1:

If the number of bits in a virtual address of a program is 16 and the page size is 0.5 K bytes, the number of pages in the virtual address space is

A 16

B 32

C 64

D 128

E None of the above

ANS:D - 128

Total no.of address is 65536 address.
Page size is 0.5KB means each page store 512 address.
To store 2^16 address in memory we need 65536/512 = 128 pages.