Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Suppose we have a 16 bit virtual address space with 64 pages. A virtual addre

ID: 3589448 • Letter: 1

Question

1. Suppose we have a 16 bit virtual address space with 64 pages. A virtual address then has _____ bits for the virtual page number and _____ bits for the offset.

2. In address translation with paging, how is the offset of the virtual address modified? a) according to the page table, b) it is zeroed, c) it is not changed. True or false: Fragmentation can occur with paging if the page tables are frequently modified.

3. Suppose we have a 32 bit virtual address space with pages that are 4 KB in size. How many entries will there be in the page table? Yes or no:

4. Can permissions be assigned to different pages in a virtual address space, for example to prohibit writing to certain pages?

Explanation / Answer

1. Suppose we have a 16 bit virtual address space with 64 pages. A virtual address then has 6 bits for the virtual page number and 10 bits for the offset.

Explanation:
For page number it will be 26 = 64 i.e 6 bits for page number
bits for the offset. = . 16 - 6 . = 10 bits for offset

2. In address translation with paging, how is the offset of the virtual address modified?
a) according to the page table, , OFFSET + SIZE WILL SEE IF ITS BEYOND the access area of not
b) it is zeroed,
c) it is not changed.
True or false: Fragmentation can occur with paging if the page tables are frequently modified.
True, as there will be lot of swap in AND SWAP OUT

3. Suppose we have a 32 bit virtual address space with pages that are 4 KB in size. How many entries will there be in the page table?
Page size = 22 x 210 = . 212
Number of enteries = 232- 10 = 222 is the numer of enteries

4. Can permissions be assigned to different pages in a virtual address space, for example to prohibit writing to certain pages?
True, we can assign permission to different pages