CS FundamentalsHardProduct-company MCQ pattern
How many of the following statements are correct? 1. On a context switch, the TLB must be flushed unless its entries carry an address-space identifier (ASID). 2. A TLB miss always causes a page fault. 3. Larger pages reduce page-table size but increase internal fragmentation. 4. Pure demand paging loads every page of a process at start-up so that later references never fault.
- A. Only one
- B. Only two
- C. Only three
- D. All four
Correct answer: B. Only two
Only 1 and 3 are correct. 2 is false: on a TLB miss the page table is walked, and if the page is resident the TLB is simply refilled. 4 is false: demand paging loads a page only when it is first referenced, so a pure demand-paged process starts with page faults.
More Operating Systems questions
- A 16 GB disk is formatted with 4 KB blocks and a File Allocation Table (FAT) that has one 4-byte entry per block. How large is the FAT…
- How many of the following statements about semaphores and mutexes are correct? 1. A binary semaphore can be used to achieve mutual…
- Process L (low priority) holds a lock that high-priority process H needs. Medium-priority process M, which does not need the lock, becomes…
- Consider this loop: c for (int i = 0; i < 2; i++) { fork(); printf("-"); } stdout is redirected to a file (fully buffered) and no fflush…
- Which CPU scheduling algorithm can make a long process wait indefinitely if short processes keep arriving?
- Which part of the operating system selects which process in the ready queue gets the CPU next?