Assertion (A): A program with 15 memory accesses and 9 page faults has a page fault rate of 0.6.
Reason (R): Page fault rate is calculated as Total Page Faults divided by Total Memory Accesses.
Options:
A) Both A and R are true and R is the correct explanation of A
B) Both A and R are true but R is not the correct explanation of A
C) A is true but R is false
D) A is false but R is true
A
Step-by-Step Solution
Key idea: Verify both the assertion and reason, then check if the reason correctly explains the assertion.
Step 1: Evaluate Assertion (A). Page fault rate = 9 / 15 = 0.6. The assertion is true.
Step 2: Evaluate Reason (R). The formula for page fault rate is indeed Total Page Faults / Total Memory Accesses. The reason is true.
Step 3: Check if R explains A. The reason provides the exact formula used to calculate the value in the assertion. Therefore, R is the correct explanation of A.
Answer: Both A and R are true and R is the correct explanation of A (Option A)