Operating System MCQ Part-21) What is the use of directory structure in the operating system?
Answer: (b) It is used to store folders and files hierarchically. Explanation: In the OS, a directory structure is a container that is used to store folders and files in a hierarchical manner. 2) What type of scheduling is round-robin scheduling?
Answer: (c) Preemptive scheduling Explanation: Round-robin scheduling is a preemptive scheduling algorithm in which a specific time is provided to execute each process. This specific time is called time-slice. 3) Which conditions must be satisfied to solve a critical section problem?
Answer: (d) All of the these Explanation: A critical-section is a code segment that can be accessed by a signal mechanism at a given point of time. The segment consists of shared data services that are need to be used by other systems. The critical section problem must satisfy the three conditions: Mutual Exclusion, Bounded Waiting, and Progress. 4) Which of the following options is correct about the windows operating system?
Answer: (c) Windows is a GUI operating system. Explanation: Windows is a GUI operating system. Windows OS does not require a command to run. Only one mouse is required to run the windows operating system. 5) Which of the following file systems is supported by the windows OS?
Answer: (d) All of the these Explanation: The following are the types of file systems that support the Windows operating system, such as NTFS, FAT, exFAT, HFS Plus, and EXT. 6) Which of the following keys does the user use to switch between applications running simultaneously in the Windows operating system?
Answer: (b) ALT + TAB Explanation: The user uses the Alt + Tab button to switch from one window to another in the Windows operating system. Also, the user can use the Ctrl + Tab button to switch from tab to tab in internet explorer. 7) Which of the following commands creates an emergency repair disk for Windows NT 4.0?
Answer: (b) RDISK.EXE Explanation: There are the following steps to repair disk in windows NT 4.0: Step 1: Go to the search button in windows NT 4.0, then type Command Prompt. Step 2: Then type "RDISK.EXE" and press enter. Step 3: Then open a pop-up window. This pop-up window will update the emergency repair disk. 8) Which of the following scheduling algorithms is preemptive scheduling?
Answer: (d) SRTF Scheduling Explanation: Shortest Remaining Time First (SRTF) scheduling is preemptive scheduling. In this scheduling, the process that has the shortest processing time left is executed first. 9) How can you get a printout of the system configuration on windows 9x OS?
Answer: (c) From the device manager, click the print button Explanation: Windows 9x is a generic term that refers to a series of Microsoft windows OS from 1995 to 2000. If you want to print out in Windows 9x, go to the device manager and click the printer option and then print the page. 10) Which of the following operating system runs on the server?
Answer: (d) Network OS Explanation: The network operating system runs on a server. This operating system has some functions that work to connect local area networks and computers. 11) What type of memory stores data in a swap file on a hard drive?
Answer: (b) Virtual memory Explanation: A swap file is a type of file that stores the data retrieved from Read-Only-Memory (RAM) or main memory. It is also a virtual memory because it is not stored in physical RAM. 12) Which of the following "semaphore" can take the non-negative integer values?
Answer: (b) Counting Semaphore Explanation: Counting semaphore takes only the non-negative integer value that is used to solve the critical section problem and process synchronization. 13) In which directory the local user profile settings are stored by default in windows 2000?
Answer: (d) C: \ Documents and settings Explanation: When a user logs in with an account for the first time, Windows 2000 automatically creates a user's profile in the "Documents and Settings" folder. 14) Which of the following operating system does not require a command to run?
Answer: (b) Windows Explanation: Windows is a GUI operating system. This operating system does not require a command to run. Only one mouse is required to run this operating system. 15) Which method is the best among file allocation methods?
Answer: (c) Indexed Explanation: The indexed allocation method is the best file allocation method because it removes the problem of contiguous and linked allocation. 16) The operating system work between
Answer: (a) User and Computer Explanation: The OS is software that acts as an interface between a device and users and is also known as system software. 17) What is the paging in the operating system?
Answer: (a) Memory management scheme Explanation: In the operating system, paging is a memory management scheme (MMS) in which memory is divided into pages of fixed size. 18) Which of the following programs is loaded first when starting a computer?
Answer: (c) Operating system Explanation: When the computer is powered on, the first operating system program is loaded into the computer. The OS's job is to control the computer's hardware and help other computer programs work. 19) Which of the following backup methods is quickest and requires the least amount of backup space?
Answer: (b) Incremental Explanation: Incremental backups take less time and space than differential and complete backups. 20) Which of the following is not a type of directory structure?
Answer: (d) Stack directory structure Explanation: Acyclic-graph, Single-level, and Tree directory structures are a type of directory structure in the operating system. But the stack is a linear data structure, so option (d) is correct answer. 21) Which of the following scheduling algorithm is non-preemptive scheduling?
Answer: (a) SJF scheduling Explanation: Shortest job first scheduling is non-preemptive scheduling. In this scheduling algorithm, the process which takes the least time to complete executes that process first. 22) Which of the following scheduling reduces process flow time?
Answer: (b) SJF Explanation: Shortest job first scheduling is non-preemptive scheduling. In this scheduling algorithm, the process which takes the least time to complete executes that process first. 23) Consider the following three processes in the FCFS.
What is the average waiting time?
Answer: (b) 3 Explanation: TA Time = CT - AT Waiting Time = TA - BT
Average waiting time = (0 + 2 + 7) / 3 = 3 24) How many types of buffer overflow in the operating system?
Answer: (a) Two Explanation: There are two types of buffer-overflows: heap-based and stack-based. 25) In which allocation method does the user size the file before creating the file?
Answer: (a) Contiguous Explanation: In the contiguous allocation method, the user has to give the size of the file before creating the file so that the operating system can give contiguous blocks in the disk-based on the size of that file. 26) Which of the following algorithms is used to avoid deadlock?
Answer: (c) Banker's algorithm Explanation: Banker's algorithm is a deadlock avoidance and resource allocation algorithm. This algorithm was developed by Edger Dijkstra. It is also called a detection algorithm. 27) Which of the following component does not belong to PCB (Process Control Block)?
Answer: (c) Operating System information Explanation: The operating system information is not the component of the PCB, so option (d) is the correct answer. 28) Which of the following method is used to improve the main memory utilization?
Answer: (a) Swapping Explanation: Swapping is a technique in which the process is removed from the main memory and stored in secondary memory. It is used to improve the main memory utilization. 29) Buffer is a ___________.
Answer: (b) Temporary area Explanation: Buffer is a temporary area where data is stored for some time before being transferred to the main memory. 30) Which of the following operating systems supports only real-time applications?
Answer: (c) Real-time OS Explanation: The real-time OS supports real-time applications. This OS is used for industrial and scientific work. It completes the tasks in a given time. 31) Which of the following binary formats support the Linux operating system?
Answer: (c) ELF Binary Format Explanation: ELF stands for "Executable-and-Linkable-Format". The ELF format is used for libraries and executable files in Linux operating systems. 32) What is Kali Linux?
Answer: (b) Operating system Explanation: Kali Linux is an operating system similar to Windows, Unix, and macOS. Kali operating system was designed for reverse engineering, security, computer forensics, etc. 33) Which of the following statement is correct about fragmentation?
Answer: (c) Loss the memory Explanation: A fragmentation is a state of a hard disk in which the most important parts of a single file are stored at different places in the disk. Due to which there is a loss of memory, and the working efficiency of the operating system is also affected. 34) SSTF stands for ________.
Answer: (b) Shortest Seek Time First Explanation: SSTF stands for Shortest-Seek-Time-First. In the SSTF algorithm, that request is executed first, whose seek time is the shortest. 35) The PCB is identified by ___________.
Answer: (d) Integer Process ID Explanation: PCB is a data structure that is used to store the information of processes. It is identified by an integer process ID (PID). 36) Which of the following method is used to prevent threads or processes from accessing a single resource?
Answer: (b) Semaphore Explanation: Semaphore is an integer variable that is used to prevent threads or processes from accessing a single resource. 37) Which of the following mechanisms is a locking mechanism?
Answer: (c) Mutex Explanation: The mutex is a locking mechanism that ensures that only one thread can occupy the mutex at a time and enter the critical section. 38) Which of the following statements is correct about virtual memory?
Answer: (b) It is a separation of user logical memory and physical memory Explanation: Virtual memory is used to separate the user's logical memory and actual physical memory. Therefore, option (b) is the correct answer. 39) COW stands for __________
Answer: (b) Copy overwrite Explanation: COW stands for Copy-Overwrite. Initially, it allows both the parent and child systems to share the same page. 40) Who is responsible for keeping the process from the program?
Answer: (a) Operating system Explanation: A process is created from a program by the operating system. The OS is software that acts as an interface between a device and users and is also known as system software. 41) Which of the following operating systems require a command to run?
Answer: (a) Kali Linux Explanation: Kali Linux is a fast operating system as more work is done through the command line in it. This OS is a Debian-based Linux OS. Next Topic# |