๐Ÿงช Operating system MCQ Quiz Hub

Operating Systems MCQs

Choose a topic to test your knowledge and improve your Operating system skills

Supervisor call :-





โœ… Correct Answer: 3

Round-robin scheduling is essentially the preemptive version of :-





โœ… Correct Answer: 4

FIFO scheduling is :-





โœ… Correct Answer: 2

In real time operating system,which of the following is the most suitable scheduling algorithms





โœ… Correct Answer: 3

In round-robin CPU scheduling, as the time quantum is increased , the average turn around time





โœ… Correct Answer: 4

Preemptive scheduling is the strategy of temporarily suspending a running process





โœ… Correct Answer: 1

Which of the following statements is true? 1. Shortest remaining time first scheduling may cause starvation 2.Preemptive scheduling may cause starvation 3. Round robin is better than FCFS in terms





โœ… Correct Answer: 4

Function of operating system :-





โœ… Correct Answer: 4

In which state, a process goes to the CPU





โœ… Correct Answer: 2

If a process require a input/output then process goes to





โœ… Correct Answer: 3

Which of the following statements are true?





โœ… Correct Answer: 4

At particular time, the value of a counting semaphore is 10. It will become 7 after





โœ… Correct Answer: 4

At particular time, the value of a counting semaphore is 4. It will become 7 after





โœ… Correct Answer: 1

At particular time, the value of a counting semaphore is 10. It will become 9 after





โœ… Correct Answer: 1

At particular time of computation the value of a counting semaphore in 7. Then 20P operation and X V operation were performed on this semaphore. If the final value of semaphore is 5, X will be -





โœ… Correct Answer: 2

Value of Counting semaphore is -





โœ… Correct Answer: 4

A critical region





โœ… Correct Answer: 1

A thread -





โœ… Correct Answer: 2

which one is a high level abstraction over semaphore ?





โœ… Correct Answer: 3

A binary semaphore





โœ… Correct Answer: 1

A threads is a





โœ… Correct Answer: 4

Consider The following statements with respect to user clever threads and kernel supported threads: a. context switch is faster with kernel supported threads b. for user level threads, a system call





โœ… Correct Answer: 2

Necessary condition for deadlock





โœ… Correct Answer: 4

Method of handling deadlock ?





โœ… Correct Answer: 4

Banker algorithms is a example of





โœ… Correct Answer: 1

Mutual exclusion is a problem occurs between





โœ… Correct Answer: 2

A system has 3 processes sharing 4 resources. If a each process need maximum of 2 units, then





โœ… Correct Answer: 1

With a single resource, deadlock occurs





โœ… Correct Answer: 1

Processes wait for infinite time in





โœ… Correct Answer: 3

A state is safe if the system call allocate resources to each process(upto its maximum) in same order and still avoid deadlock. Then





โœ… Correct Answer: 1

Resources are allocated to a process on non-shareable basic in





โœ… Correct Answer: 1

The method of dealing with deadlock problem is





โœ… Correct Answer: 4

Which of the following is NOT a valid deadlock prevention scheme?





โœ… Correct Answer: 3

Consider a virtual memory system with FIFO page replacement policy. For an arbitrary page access pattern, increasing the number of page frames in main memory will





โœ… Correct Answer: 3

Which of the following requires a device driver?





โœ… Correct Answer: 1

Consider three CPU-intensive processes, which require 10, 20 and 30 time units and arrive at times 0, 2 and 6, respectively. How many context switches are needed if the operating system implements a s





โœ… Correct Answer: 2

A CPU generates 32-bit virtual addresses. The page size is 4 KB. The processor has a translation look-aside buffer (TLB) which can hold a total of 128 page table entries and is 4-way set associative.





โœ… Correct Answer: 4

In which one of the following page replacement policies, Belady’s anomaly may occur?





โœ… Correct Answer: 1

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





โœ… Correct Answer: 2

Consider a disk system with 100 cylinders. The requests to access the cylinders occur in following sequence: 4, 34, 10, 7, 19, 73, 2, 15, 6, 20 Assuming that the head is currently at cylinder 50, wh





โœ… Correct Answer: 3

A process executes the code fork(); fork(); fork(); The total number of child processes created is





โœ… Correct Answer: 4

Total number of child processes created by following program is for(i=0;i<3;i++) fork();





โœ… Correct Answer: 3

Total number of child processes created by following program is for(i=0;i<4;i++) fork();





โœ… Correct Answer: 1

Total number of child processes created by following program is for(i=0;i<1;i++) fork();





โœ… Correct Answer: 4

Total number of child processes created by following program is x for(i=0;i<8;i++) fork(); then x-250= ?





โœ… Correct Answer: 3

A file system with 300 GByte uses a file descriptor with 8 direct block address. 1 indirect block address and 1 doubly indirect block address. The size of each disk block is 128 Bytes and the size of





โœ… Correct Answer: 3

A multilevel page table is preferred in comparison to a single level page table for translating virtual address to physical address because





โœ… Correct Answer: 2

Consider a machine with 64 MB physical memory and a 32-bit virtual address space. If the page size is 4KB, what is the approximate size of the page table?





โœ… Correct Answer: 1

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





โœ… Correct Answer: 1

Memory protection is of no use in





โœ… Correct Answer: 4

In which of the following page replacement policies Belady anomaly may occur ?





โœ… Correct Answer: 1

A page fault occurs





โœ… Correct Answer: 1

Virtual memory is commonly implemented by -





โœ… Correct Answer: 1

The mechanism that bring a page into memory only when it is needed is called-





โœ… Correct Answer: 3

Which of the following statement is false?





โœ… Correct Answer: 4

The first fit best fit and worst fit algorithm can be used for-





โœ… Correct Answer: 1

The essential contents in each entry of a page table is -





โœ… Correct Answer: 1

A file is





โœ… Correct Answer: 4

The simplest directly structure is -





โœ… Correct Answer: 1

Disadvantage of single level directory is -





โœ… Correct Answer: 1

Solution of name collision problem is





โœ… Correct Answer: 2

which structure prohibits sharing of file and directory





โœ… Correct Answer: 3

There are no cycle in which of the directory -





โœ… Correct Answer: 2

The lowest level of I/O control consists of -





โœ… Correct Answer: 3

Access time is the highest in case of





โœ… Correct Answer: 4

What is the shell ?





โœ… Correct Answer: 2

If the disk head located initially at 32, find the no of disk moves required with FCFS if the disk queue of I/O block requests are 98,37,14,124,65,67





โœ… Correct Answer: 4

Magnetic tape can serve as





โœ… Correct Answer: 4

Supervisor state is





โœ… Correct Answer: 3

The operating systems manages





โœ… Correct Answer: 2

PCB is stands for -





โœ… Correct Answer: 2

Which of the following file name extension suggests that the file is backup copy of another file ?





โœ… Correct Answer: 4

Which is not the state of the process ?





โœ… Correct Answer: 4

Which is the state of process ?





โœ… Correct Answer: 4

The problem of thrashing is effected by scientifically by-





โœ… Correct Answer: 1

The number of processes completed per unit time is known as





โœ… Correct Answer: 2

What is the memory from 1k to 640k called ?





โœ… Correct Answer: 4

Process state is a part of





โœ… Correct Answer: 2

A program at time of execution is called ?





โœ… Correct Answer: 1

A thread is a ?





โœ… Correct Answer: 4

The state of process after it encounters an I/O instruction is





โœ… Correct Answer: 2

The major problem with priority scheduling is ?





โœ… Correct Answer: 2

______ OS pays more attention on the meeting of the the time limit





โœ… Correct Answer: 1

A process said to be in ______ state if it was waiting for an event that will never occur





โœ… Correct Answer: 3

The operating system of a computer serve as a software between the user and the





โœ… Correct Answer: 1

The removal of process from active contention of CPU and reintroduce them into memory later is known as





โœ… Correct Answer: 3

_______ allocates the largest hole available in the memory





โœ… Correct Answer: 2

A binary semaphore -





โœ… Correct Answer: 1

The hardware mechanism that enable a device to notify the CPU is called





โœ… Correct Answer: 3

The banker algorithms is used





โœ… Correct Answer: 1

Which data structure are used for process scheduling ?





โœ… Correct Answer: 3

_______ is a high level abstraction over semaphore





โœ… Correct Answer: 3

How many page faults occur for optimal page replacement following reference string, with four page frames ? 1,2,3,4,5,3,4,1,6,7,8,7,8,9,7,8,9,5,4,5,4,2





โœ… Correct Answer: 3

If you dont know which version of MS-DOS you are working with, which command will you use after booting your operating system ?





โœ… Correct Answer: 4

How many page faults occur in LRU replacement following reference string, with four page frames ? 7,0,1,2,0,3,0,4,2,3,0,3,2,1,2,0,1





โœ… Correct Answer: 2

Which scheduling policy is most suitable for a time sharing operating systems ?





โœ… Correct Answer: 2

A processor needs software interrupts to





โœ… Correct Answer: 3

Which of the following does not interrupt a running process





โœ… Correct Answer: 1

System calla are usually invoked by using





โœ… Correct Answer: 1