Operating Systems Interview Questions/Answers YASH PAL, 19 March 202228 June 2025 Operating systems are one of the main subjects for software engineers. because anything that we build is for the operating systems whether it be for Android, IOS, or for Desktop. so here we are including basic to advanced Operating Systems Interview Questions and Answers for the preparation of your university exams, competitive exams, coding contests, or coding interviews.Virtual memory isan extremely large main memoryan extremely large secondary memoryan illusion of an extremely large memorya type of memory used in supercomputersAnswer – (3) an illusion of an extremely large memorySpatial locality refers to the problem that once a location is referencedit will not be referenced againit will be referenced againa nearby location will be referenced soonnone of the aboveAnswer – (3) a nearby location will be referenced soonWhich of the following is an example of a SPOOLED device?The terminal is used to enter the input data for a program being executed.The secondary memory device in a virtual memory system.A line printer is used to print the O/P of a no. of jobs.one tries to divide a number by 0.Answer – (3) A line printer used to print the O/P of a no. of jobs A page fault occurs whenthe page is corrupted by application softwarethe page is in the main memorythe page is not in the main memorythe tries to divide a number by 0Answer – (3) the page is not in the main memoryOverlay isa part of an operating systema specific memory locationa single contiguous memory that was used in the olden days for running large programs by swappingoverloading the system with many user filesAnswer – (3) a single contiguous memory that was used in the olden days for running large programs by swapping Concurrent processes are processes thatdo not overlap in timeoverlap in timeare executed by a processor at the same timenone of the aboveAnswer – (2) overlap in timeThe page replacement policy that sometimes leads to more page faults when the size of the memory is increased isFIFOLRUno such policy existsnone of the aboveAnswer – (1) FIFOFragmentation isdividing the secondary memory into equal-sized fragmentsdividing the main memory into equal-size fragmentsfragments of memory words used on a pagefragments of memory words unused on a pageAnswer – (2) dividing the main memory into equal-size fragmentsWhich of the following are real-time systems?An online railway reservation systemA process control systemAircraft control systemPayroll processing system1 and 23 and 42 and 31, 2, 3 and 4Answer – (3) 2 and 3Dijkstra’s banking algorithms in an operating system solve the problem ofdeadlock avoidancedeadlock recoverymutual exclusioncontext switchingAnswer – (1) deadlock avoidanceCritical region isa part of the operating system which is not allowed to be accessed by any processa set of instructions that access common shared resources which exclude one another in timethe portion of the main memory which can be accessed only by one process at a timenone of theseAnswer – (2) a set of instructions that access common shared resources which exclude one another in timeKernel isconsidered as the critical part of the operating systemthe software which monitors the operating systemthe set of primitive functions upon which the rest of the operating system functions are built upnone of the aboveAnswer – (3) the set of primitive functions upon which the rest of operating system functions are built upThe necessary conditions for deadlock arenon-preemption and circular waitMutual exclusion and partial allocationboth (a) and (b)none of the aboveAnswer – (3) both (a) and (b)In a time-sharing operating system. when the time slot given to a process is completed, the process goes from the RUNNING state to theBLOCKED stateREADY stateSUSPENDED stateTERMINATED stateAnswer – (2) READY stateAt a particular time, the value of a counting semaphore is 10. it will become 7 after3 V operations3 P operations5 V operations and 2 P operations1 and 22 and 32 and 44 onlyAnswer – (3) 2 AND 4Supervisor callis a call made by the supervisor of the systemis a call with control functionsare privileged calls that are used to perform resource management functions, which are controlled by the operating systemis a call made by someone working in the root directoryAnswer – (3) are privileged calls that are used to perform resource management functions, which are controlled by the operating systemSemaphores are used to solve the problem ofrace conditionprocess synchronizationmutual exclusion1 and 22 and 3All of the aboveNone of the aboveAnswer – (2) 2 AND 3Mutual exclusion problem occursbetween two disjoint processes that do not interactamong processes that share resourcesamong processes that do not use the same resourcenone of the aboveAnswer – (2) among processes that share resourcesSector interleaving in disks is done bysingle-user systemnon-multiprogramming systemnon-multitasking systemnone of theseAnswer – (2) non-multiprogramming systemDirty bit is used to show thepage with corrupted datawrong page in the memorythe page that is modified after being loaded into the cache memorya page that is less frequently accessedAnswer – (3) a page that is modified after being loaded into the cache memoryNote – More Interview questions and answers will be added from time to time. Computer Science Tutorials Interview questions answers Operating Systems Tutorials computer scienceinterview preparation