πŸ’»

Operating System MCQs

1K+ questions with answers

601

When a process begins execution with no pages in memory?

a process execution becomes impossible
b a page fault occurs for every page brought into memory
c process causes system crash
d none of the mentioned
Medium
View Details β†’
602

When the page fault rate is low ____________

a the turnaround time increases
b the effective access time increases
c the effective access time decreases
d turnaround time & effective access time increases
Medium
View Details β†’
603

Locality of reference implies that the page reference being made by a process ____________

a will always be to the page used in the previous page reference
b is likely to be one of the pages used in the last few page references
c will always be one of the pages existing in memory
d will always lead to page faults
Medium
View Details β†’
604

Which of the following page replacement algorithms suffers from Belady’s Anomaly?

a Optimal replacement
b LRU
c FIFO
d Both optimal replacement and FIFO
Medium
View Details β†’
605

A process refers to 5 pages, A, B, C, D, E in the order : A, B, C, D, A, B, E, A, B, C, D, E. If the page replacement algorithm is FIFO, the number of page transfers with an empty internal store of 3 frames is?

a 8
b 10
c 9
d 7
Medium
View Details β†’
606

A process refers to 5 pages, A, B, C, D, E in the order : A, B, C, D, A, B, E, A, B, C, D, E. If the page replacement algorithm is FIFO, the number of page frames is increased to 4, then the number of page transfers ____________

a decreases
b increases
c remains the same
d none of the mentioned
Medium
View Details β†’
607

A memory page containing a heavily used variable that was initialized very early and is in constant use is removed, then the page replacement algorithm used is ____________

a LRU
b LFU
c FIFO
d None of the mentioned
Medium
View Details β†’
608

A virtual memory system uses First In First Out (FIFO) page replacement policy and allocates a fixed number of frames to a process. Consider the following statements. P : Increasing the number of page frames allocated to a process sometimes increases the page fault rate Q : Some programs do not exhibit locality of reference Which of the following is TRUE?

a Both P and Q are true, and Q is the reason for P
b Both P and Q are true, but Q is not the reason for P
c P is false but Q is true
d Both P and Q are false
Medium
View Details β†’
609

Users _______ that their processes are running on a paged system.

a are aware
b are unaware
c may unaware
d none of the mentioned
Medium
View Details β†’
610

When a page is selected for replacement, and its modify bit is set ____________

a the page is clean
b the page has been modified since it was read in from the disk
c the page is dirty
d the page has been modified since it was read in from the disk & page is dirty
Medium
View Details β†’
611

The aim of creating page replacement algorithms is to ____________

a replace pages faster
b increase the page fault rate
c decrease the page fault rate
d to allocate multiple pages to processes
Medium
View Details β†’
612

A FIFO replacement algorithm associates with each page the _______

a time it was brought into memory
b size of the page in memory
c page after and before it
d all of the mentioned
Medium
View Details β†’
613

What is the Optimal page – replacement algorithm?

a Replace the page that has not been used for a long time
b Replace the page that has been used for a long time
c Replace the page that will not be used for a long time
d None of the mentioned
Medium
View Details β†’
614

Optimal page – replacement algorithm is difficult to implement, because ____________

a it requires a lot of information
b it requires future knowledge of the reference string
c it is too complex
d it is extremely expensive
Medium
View Details β†’
615

LRU page – replacement algorithm associates with each page the ______

a time it was brought into memory
b the time of that page’s last use
c page after and before it
d all of the mentioned
Medium
View Details β†’
616

What are the two methods of the LRU page replacement policy that can be implemented in hardware?

a Counters
b RAM & Registers
c Stack & Counters
d Registers
Medium
View Details β†’
617

When using counters to implement LRU, we replace the page with the ____________

a smallest time value
b largest time value
c greatest size
d none of the mentioned
Medium
View Details β†’
618

In the stack implementation of the LRU algorithm, a stack can be maintained in a manner ____________

a whenever a page is used, it is removed from the stack and put on bottom
b the bottom of the stack is the LRU page
c the top of the stack contains the LRU page and all new pages are added to the top
d none of the mentioned
Medium
View Details β†’
619

There is a set of page replacement algorithms that can never exhibit Belady’s Anomaly, called ____________

a queue algorithms
b stack algorithms
c string algorithms
d none of the mentioned
Medium
View Details β†’
620

Applying the LRU page replacement to the following reference string. 12452124 The main memory can accommodate 3 pages and it already has pages 1 and 2. Page 1 came in before page 2. How many page faults will occur?

a 2
b 3
c 4
d 5
Medium
View Details β†’
621

Increasing the RAM of a computer typically improves performance because ____________

a Virtual memory increases
b Larger RAMs are faster
c Fewer page faults occur
d None of the mentioned
Medium
View Details β†’
622

The essential content(s) in each entry of a page table is/are ____________

a Virtual page number
b Page frame number
c Both virtual page number and page frame number
d Access right information
Medium
View Details β†’
623

What is the reason for using the LFU page replacement algorithm?

a an actively used page should have a large reference count
b a less used page has more chances to be used again
c it is extremely efficient and optimal
d all of the mentioned
Medium
View Details β†’
624

What is the reason for using the MFU page replacement algorithm?

a an actively used page should have a large reference count
b a less used page has more chances to be used again
c it is extremely efficient and optimal
d all of the mentioned
Medium
View Details β†’
625

The implementation of the LFU and the MFU algorithm is very uncommon because ____________

a they are too complicated
b they are optimal
c they are expensive
d all of the mentioned
Medium
View Details β†’
626

The minimum number of frames to be allocated to a process is decided by the ____________

a the amount of available physical memory
b operating System
c instruction set architecture
d none of the mentioned
Medium
View Details β†’
627

When a page fault occurs before an executing instruction is complete if ____________

a the instruction must be restarted
b the instruction must be ignored
c the instruction must be completed ignoring the page fault
d none of the mentioned
Medium
View Details β†’
628

Consider a machine in which all memory reference instructions have only one memory address, for them we need at least _____ frame(s).

a one
b two
c three
d none of the mentioned
Medium
View Details β†’
629

The maximum number of frames per process is defined by ____________

a the amount of available physical memory
b operating System
c instruction set architecture
d none of the mentioned
Medium
View Details β†’
630

The algorithm in which we split m frames among n processes, to give everyone an equal share, m/n frames is known as ____________

a proportional allocation algorithm
b equal allocation algorithm
c split allocation algorithm
d none of the mentioned
Medium
View Details β†’
631

The algorithm in which we allocate memory to each process according to its size is known as ____________

a proportional allocation algorithm
b equal allocation algorithm
c split allocation algorithm
d none of the mentioned
Medium
View Details β†’
632

_________ replacement allows a process to select a replacement frame from the set of all frames, even if the frame is currently allocated to some other process.

a Local
b Universal
c Global
d Public
Medium
View Details β†’
633

_________ replacement allows each process to only select from its own set of allocated frames.

a Local
b Universal
c Global
d Public
Medium
View Details β†’
634

One problem with the global replacement algorithm is that ____________

a it is very expensive
b many frames can be allocated to a process
c only a few frames can be allocated to a process
d a process cannot control its own page – fault rate
Medium
View Details β†’
635

________ replacement generally results in greater system throughput.

a Local
b Global
c Universal
d Public
Medium
View Details β†’
636

A process is thrashing if ____________

a it spends a lot of time executing, rather than paging
b it spends a lot of time paging than executing
c it has no memory allocated to it
d none of the mentioned
Medium
View Details β†’
637

Thrashing _______ the CPU utilization.

a increases
b keeps constant
c decreases
d none of the mentioned
Medium
View Details β†’
638

What is a locality?

a a set of pages that are actively used together
b a space in memory
c an area near a set of processes
d none of the mentioned
Medium
View Details β†’
639

When a subroutine is called ____________

a it defines a new locality
b it is in the same locality from where it was called
c it does not define a new locality
d none of the mentioned
Medium
View Details β†’
640

A program is generally composed of several different localities, which _____ overlap.

a may
b must
c do not
d must not
Medium
View Details β†’
641

In the working set model, for: 261577775162341234443434441323 if DELTA = 10, then the working set at time t1 (….7 5 1) is?

a {1, 2, 4, 5, 6}
b {2, 1, 6, 7, 3}
c {1, 6, 5, 7, 2}
d {1, 2, 3, 4, 5}
Medium
View Details β†’
642

If working set window is too small ____________

a it will not encompass entire locality
b it may overlap several localities
c it will cause memory problems
d none of the mentioned
Medium
View Details β†’
643

If working set window is too large ____________

a it will not encompass entire locality
b it may overlap several localities
c it will cause memory problems
d none of the mentioned
Medium
View Details β†’
644

If the sum of the working – set sizes increases, exceeding the total number of available frames ____________

a then the process crashes
b the memory overflows
c the system crashes
d the operating system selects a process to suspend
Medium
View Details β†’
645

Consider the following page reference string. 12342156212376321236 For LRU page replacement algorithm with 4 frames, the number of page faults is?

a 10
b 14
c 8
d 11
Medium
View Details β†’
646

Consider the following page reference string. 12342156212376321236 For LRU page replacement algorithm with 5 frames, the number of page faults is?

a 10
b 14
c 8
d 11
Medium
View Details β†’
647

Consider the following page reference string. 12342156212376321236 For FIFO page replacement algorithms with 4 frames, the number of page faults is?

a 16
b 15
c 14
d 11
Medium
View Details β†’
648

Consider the following page reference string. 12342156212376321236 For Optimal page replacement algorithms with 3 frames, the number of page faults is?

a 16
b 15
c 14
d 11
Medium
View Details β†’
649

______ is a unique tag, usually a number identifies the file within the file system.

a File identifier
b File name
c File type
d None of the mentioned
Medium
View Details β†’
650

To create a file ____________

a allocate the space in file system
b make an entry for new file in directory
c allocate the space in file system & make an entry for new file in directory
d none of the mentioned
Medium
View Details β†’