Operating Systems Interview Questions/Answers YASH PAL, 19 March 202228 May 2024 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 is an extremely large main memory an extremely large secondary memory an illusion of an extremely large memory a type of memory used in supercomputers Answer – (3) an illusion of an extremely large memory Spatial locality refers to the problem that once a location is referenced it will not be referenced again it will be referenced again a nearby location will be referenced soon none of the above Answer – (3) a nearby location will be referenced soon Which 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 when the page is corrupted by application software the page is in the main memory the page is not in the main memory the tries to divide a number by 0 Answer – (3) the page is not in the main memory Overlay is a part of an operating system a specific memory location a single contiguous memory that was used in the olden days for running large programs by swapping overloading the system with many user files Answer – (3) a single contiguous memory that was used in the olden days for running large programs by swapping Concurrent processes are processes that do not overlap in time overlap in time are executed by a processor at the same time none of the above Answer – (2) overlap in time The page replacement policy that sometimes leads to more page faults when the size of the memory is increased is FIFO LRU no such policy exists none of the above Answer – (1) FIFO Fragmentation is dividing the secondary memory into equal-sized fragments dividing the main memory into equal-size fragments fragments of memory words used on a page fragments of memory words unused on a page Answer – (2) dividing the main memory into equal-size fragments Which of the following are real-time systems? An online railway reservation systemA process control systemAircraft control systemPayroll processing system 1 and 2 3 and 4 2 and 3 1, 2, 3 and 4 Answer – (3) 2 and 3 Dijkstra’s banking algorithms in an operating system solve the problem of deadlock avoidance deadlock recovery mutual exclusion context switching Answer – (1) deadlock avoidance Critical region is a part of the operating system which is not allowed to be accessed by any process a set of instructions that access common shared resources which exclude one another in time the portion of the main memory which can be accessed only by one process at a time none of these Answer – (2) a set of instructions that access common shared resources which exclude one another in time Kernel is considered as the critical part of the operating system the software which monitors the operating system the set of primitive functions upon which the rest of the operating system functions are built up none of the above Answer – (3) the set of primitive functions upon which the rest of operating system functions are built up The necessary conditions for deadlock are non-preemption and circular wait Mutual exclusion and partial allocation both (a) and (b) none of the above Answer – (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 the BLOCKED state READY state SUSPENDED state TERMINATED state Answer – (2) READY state At a particular time, the value of a counting semaphore is 10. it will become 7 after 3 V operations3 P operations5 V operations and 2 P operations 1 and 2 2 and 3 2 and 4 4 only Answer – (3) 2 AND 4 Supervisor call is a call made by the supervisor of the system is a call with control functions are privileged calls that are used to perform resource management functions, which are controlled by the operating system is a call made by someone working in the root directory Answer – (3) are privileged calls that are used to perform resource management functions, which are controlled by the operating system Semaphores are used to solve the problem of race conditionprocess synchronizationmutual exclusion 1 and 2 2 and 3 All of the above None of the above Answer – (2) 2 AND 3 Mutual exclusion problem occurs between two disjoint processes that do not interact among processes that share resources among processes that do not use the same resource none of the above Answer – (2) among processes that share resources Sector interleaving in disks is done by single-user system non-multiprogramming system non-multitasking system none of these Answer – (2) non-multiprogramming system Dirty bit is used to show the page with corrupted data wrong page in the memory the page that is modified after being loaded into the cache memory a page that is less frequently accessed Answer – (3) a page that is modified after being loaded into the cache memory Note – More Interview questions and answers will be added from time to time. Computer Science Tutorials Interview questions answers Operating Systems Tutorials computer scienceinterview preparation