Data Structures Algorithms-II MCQs

Page No. 145

Consider a reference string: 7,0,1,2,0,3,0,4,2,3,0,3,2,1,2,0,1,7,0,1 of frame size 4. Using FIFO algorithm, determine the number of page faults.


a12


b16


c10


d14


View Answer 10

Consider a reference string: 7,0,1,2,0,3,0,4,2,3,0,3,2,1,2,0,1,7,0,1 of frame size 3. Using FIFO algorithm, determine the number of page faults.


a12


b16


c14


d15


View Answer 15

Under which of the following scenarios is page replacement algorithm required?


aWhen total memory exceeds physical memory


bTo determine the number of frames for each process


cWhen paging and segmentation are to be used


dExecution of a process, not in memory



What is the competitive analysis of the FIFO algorithm?


ak/k+1


bk+1


ck(k+1)


dk/(k-h+1)


View Answer k/(k-h+1)

FIFO algorithm is used by __________ operating system.


aLinux


bMac


cWindows


dVAX/VMS


View Answer VAX/VMS

The cost required to execute a FIFO algorithm is expensive.


aTrue


bFalse


cA & B


d None of these


View Answer False

In a FIFO algorithm, when a page is to be replaced, which of the following page is chosen?


aOldest page


bNewest page


cFrequently occurred page in past


dFrequently occurred page in future


View Answer Oldest page

Which of the following is required to determine the number of page faults in FIFO?


aPage number


bPage frame number


cMemory capacity


dSegment number


View Answer Page frame number

Which of the following is the main drawback of FIFO page replacement algorithm?


aRequirement of large memory


bFrame allocation


cReduction in multiprogramming


dReduced optimality



Which of the following page replacement algorithms return the minimum number of page faults?


aLRU replacement algorithm


bOptimal page replacement algorithm


cFIFO


dCounting based replacement



Goto Page No.

Page 145 of 149

Alphabetical MCQs Categories

Here below You find all kind of categories of MCQs in alphabetical order.


"Comprehensive Collection of MCQs: Alphabetically Organized by Subject"

"Discover an extensive collection of multiple-choice questions (MCQs) neatly categorized by subject from A to Z. This resource is designed for anyone eager to explore various topics in a straightforward and organized manner. Whether you're a student preparing for exams, an educator seeking supplementary materials, or simply curious about different subjects, this compilation offers a convenient way to learn and assess your knowledge. With questions arranged alphabetically, navigation is effortless, allowing you to delve into subjects of interest at your own pace. Engage, learn, and expand your understanding with this accessible and comprehensive repository of MCQs!"


BolPakistan

bolpakistan.com.pk includes Job Mcqs and Pak Mcqs is the Top Largest Mcqs Forum in World, in which you can read Mcqs of All Subjects, PPSC test preparation, FPSC, NTS and PPSC PAST PAPERS, PPSC PAST MCQS. A Collection of Repeated MCQs for JOBs seekers.

Copyright © 2024, Designed & Developed by BolPakistan