Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  A system uses FIFO policy for page replacemen... Start Learning for Free
A system uses FIFO policy for page replacement. It has 4 page frames with no pages loaded to begin with. The system first accesses 100 distinct pages in some order and then accesses the same 100 pages but now in the reverse order. How many page faults will occur?
  • a)
    196
  • b)
    192
  • c)
    197
  • d)
    195
Correct answer is option 'A'. Can you explain this answer?
Verified Answer
A system uses FIFO policy for page replacement. It has 4 page frames w...
Given that page frame size = 4
As there are 100 distinct pages which are first accessed → 100 page faults
when it accesses the same 100 pages but now in the reverse order → (100-4)
Because page frame size is four.
There fore, Total number of page faults = 100+ (100-4)= 196
View all questions of this test
Most Upvoted Answer
A system uses FIFO policy for page replacement. It has 4 page frames w...
Given that page frame size = 4
As there are 100 distinct pages which are first accessed → 100 page faults
when it accesses the same 100 pages but now in the reverse order → (100-4)
Because page frame size is four.
There fore, Total number of page faults = 100+ (100-4)= 196
Free Test
Community Answer
A system uses FIFO policy for page replacement. It has 4 page frames w...
First-in, First-out (FIFO) Page Replacement Policy:

FIFO is a page replacement policy in which the page that is loaded first into the memory is the first one to be replaced when a page fault occurs. In this policy, a queue is used to keep track of the loaded pages, and the page at the front of the queue is the one to be replaced.

Given Information:
- Number of page frames available = 4
- The system first accesses 100 distinct pages in some order.
- The system then accesses the same 100 pages, but in reverse order.

Analysis:
1. Initially, all the page frames are empty (no pages loaded).
2. As the system accesses the first 100 distinct pages, each page will cause a page fault because there are no pages loaded in the memory.
3. The page faults will continue until all the page frames are filled with the distinct pages.
4. Once all the page frames are filled, the next accessed page will cause a page fault, and the page at the front of the queue (the oldest loaded page) will be replaced.
5. As the system accesses the same 100 pages in reverse order, the page faults will occur only when the next accessed page is not already present in the memory.

Calculating the Page Faults:
1. Initially, the first 100 distinct pages will cause page faults until all the page frames are filled. So, there will be 100 page faults.
2. After the page frames are filled, the next accessed page will cause a page fault, and the oldest page (at the front of the queue) will be replaced with the new page.
3. Since there are 100 pages, and each page will cause a page fault as it is not already present in the memory, there will be 100 page faults during the reverse order access.
4. Therefore, the total number of page faults will be 100 (distinct pages access) + 100 (reverse order access) = 200.

The correct answer is not among the options given. However, the closest option to the correct answer is option 'A' (196), which is the result of subtracting 4 (the initial 4 empty page frames) from the calculated 200 page faults.
Explore Courses for Computer Science Engineering (CSE) exam

Similar Computer Science Engineering (CSE) Doubts

Top Courses for Computer Science Engineering (CSE)

A system uses FIFO policy for page replacement. It has 4 page frames with no pages loaded to begin with. The system first accesses 100 distinct pages in some order and then accesses the same 100 pages but now in the reverse order. How many page faults will occur?a)196b)192c)197d)195Correct answer is option 'A'. Can you explain this answer?
Question Description
A system uses FIFO policy for page replacement. It has 4 page frames with no pages loaded to begin with. The system first accesses 100 distinct pages in some order and then accesses the same 100 pages but now in the reverse order. How many page faults will occur?a)196b)192c)197d)195Correct answer is option 'A'. Can you explain this answer? for Computer Science Engineering (CSE) 2025 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about A system uses FIFO policy for page replacement. It has 4 page frames with no pages loaded to begin with. The system first accesses 100 distinct pages in some order and then accesses the same 100 pages but now in the reverse order. How many page faults will occur?a)196b)192c)197d)195Correct answer is option 'A'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2025 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for A system uses FIFO policy for page replacement. It has 4 page frames with no pages loaded to begin with. The system first accesses 100 distinct pages in some order and then accesses the same 100 pages but now in the reverse order. How many page faults will occur?a)196b)192c)197d)195Correct answer is option 'A'. Can you explain this answer?.
Solutions for A system uses FIFO policy for page replacement. It has 4 page frames with no pages loaded to begin with. The system first accesses 100 distinct pages in some order and then accesses the same 100 pages but now in the reverse order. How many page faults will occur?a)196b)192c)197d)195Correct answer is option 'A'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of A system uses FIFO policy for page replacement. It has 4 page frames with no pages loaded to begin with. The system first accesses 100 distinct pages in some order and then accesses the same 100 pages but now in the reverse order. How many page faults will occur?a)196b)192c)197d)195Correct answer is option 'A'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of A system uses FIFO policy for page replacement. It has 4 page frames with no pages loaded to begin with. The system first accesses 100 distinct pages in some order and then accesses the same 100 pages but now in the reverse order. How many page faults will occur?a)196b)192c)197d)195Correct answer is option 'A'. Can you explain this answer?, a detailed solution for A system uses FIFO policy for page replacement. It has 4 page frames with no pages loaded to begin with. The system first accesses 100 distinct pages in some order and then accesses the same 100 pages but now in the reverse order. How many page faults will occur?a)196b)192c)197d)195Correct answer is option 'A'. Can you explain this answer? has been provided alongside types of A system uses FIFO policy for page replacement. It has 4 page frames with no pages loaded to begin with. The system first accesses 100 distinct pages in some order and then accesses the same 100 pages but now in the reverse order. How many page faults will occur?a)196b)192c)197d)195Correct answer is option 'A'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice A system uses FIFO policy for page replacement. It has 4 page frames with no pages loaded to begin with. The system first accesses 100 distinct pages in some order and then accesses the same 100 pages but now in the reverse order. How many page faults will occur?a)196b)192c)197d)195Correct answer is option 'A'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev