Practice Questions of Page Replacement Numerical
Practice Questions of Page Replacement Numerical
1. Basic: Given the reference string [7, 0, 1, 2, 0, 3, 0, 4] and a frame size of 3, calculate the
page fault rate using FIFO.
2. Basic: Given the reference string [1, 2, 3, 4, 1, 2, 3, 4] and a frame size of 3, calculate the
page fault rate using FIFO.
4. Intermediate: Given the reference string [1, 2, 3, 4, 1, 2, 3, 4] and a frame size of 4, calculate
the page fault rate using FIFO.
6. Intermediate: Given the reference string [5, 6, 7, 5, 6, 7, 8] and a frame size of 3, calculate
the page fault rate using FIFO.
7. Advanced: Given the reference string [0, 1, 2, 3, 0, 4, 0, 1, 2] and a frame size of 3, calculate
the page fault rate using FIFO.
9. Advanced: Given the reference string [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] and a frame size of 3,
calculate the page fault rate using FIFO.
10. Advanced: Given the reference string [1, 2, 3, 1, 2, 4, 5, 1] and a frame size of 3, calculate the
page fault rate using FIFO.
2. Optimal Page Replacement Algorithm:
1. Basic: Given the reference string [7, 0, 1, 2, 0, 3, 0, 4] and a frame size of 3, calculate the
page fault rate using the Optimal algorithm.
2. Basic: Given the reference string [1, 2, 3, 4, 1, 2, 3, 4] and a frame size of 3, calculate the
page fault rate using the Optimal algorithm.
4. Intermediate: Given the reference string [1, 2, 3, 4, 1, 2, 3, 4] and a frame size of 4, calculate
the page fault rate using the Optimal algorithm.
6. Intermediate: Given the reference string [5, 6, 7, 5, 6, 7, 8] and a frame size of 3, calculate
the page fault rate using the Optimal algorithm.
7. Advanced: Given the reference string [0, 1, 2, 3, 0, 4, 0, 1, 2] and a frame size of 3, calculate
the page fault rate using the Optimal algorithm.
9. Advanced: Given the reference string [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] and a frame size of 3,
calculate the page fault rate using the Optimal algorithm.
10. Advanced: Given the reference string [1, 2, 3, 1, 2, 4, 5, 1] and a frame size of 3, calculate the
page fault rate using the Optimal algorithm.
3. LRU (Least Recently Used) Page Replacement Algorithm:
1. Basic: Given the reference string [7, 0, 1, 2, 0, 3, 0, 4] and a frame size of 3, calculate the
page fault rate using LRU.
2. Basic: Given the reference string [1, 2, 3, 4, 1, 2, 3, 4] and a frame size of 3, calculate the
page fault rate using LRU.
4. Intermediate: Given the reference string [1, 2, 3, 4, 1, 2, 3, 4] and a frame size of 4, calculate
the page fault rate using LRU.
6. Intermediate: Given the reference string [5, 6, 7, 5, 6, 7, 8] and a frame size of 3, calculate
the page fault rate using LRU.
7. Advanced: Given the reference string [0, 1, 2, 3, 0, 4, 0, 1, 2] and a frame size of 3, calculate
the page fault rate using LRU.
9. Advanced: Given the reference string [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] and a frame size of 3,
calculate the page fault rate using LRU.
10. Advanced: Given the reference string [1, 2, 3, 1, 2, 4, 5, 1] and a frame size of 3, calculate the
page fault rate using LRU.