Home » Operating System MCQ Part 2 (Multiple Choice Questions)

Operating System MCQ Part 2 (Multiple Choice Questions)

by Online Tutorials Library

Operating System MCQ Part-2

1) What is the use of directory structure in the operating system?

  1. The directory structure is used to solve the problem of the network connection in OS.
  2. It is used to store folders and files hierarchically.
  3. It is used to store the program in file format.
  4. All of the these

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?

  1. Linear data scheduling
  2. Non-linear data scheduling
  3. Preemptive scheduling
  4. Non-preemptive 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?

  1. Bounded Waiting
  2. Progress
  3. Mutual Exclusion
  4. All of these.

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?

  1. Windows is a CUI operating system.
  2. Windows is based on CUI.
  3. Windows is a GUI operating system.
  4. None of the these

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?

  1. NTFS
  2. FAT32
  3. exFAT
  4. All of the these

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?

  1. FN + TAB
  2. ALT + TAB
  3. CTRL + TAB
  4. SHIFT + TAB

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?

  1. BAT
  2. EXE
  3. EXE/S
  4. ADD/REMOVE program

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?

  1. FCFS Scheduling
  2. SJF Scheduling
  3. Network Scheduling
  4. SRTF 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?

  1. Open the CMD window, type “MSDN”, and press <printscrn>
  2. From the device manager, click the print button
  3. Open the CMD window, type “SYS”, and press <printscrn>
  4. None of the these

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?

  1. Batch OS
  2. Distributed OS
  3. Real-time OS
  4. Network OS

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?

  1. Secondary memory
  2. Virtual memory
  3. Low memory
  4. RAM

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?

  1. Binary Semaphore
  2. Counting Semaphore
  3. Real Semaphore
  4. All of the these

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?

  1. C: USERS
  2. C: NETLOGON
  3. C: WIN NTUSER.DAT
  4. C: Documents and settings

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?

  1. Kali Linux
  2. Windows
  3. Unix
  4. All of the these

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?

  1. Linked
  2. Contiguous
  3. Indexed
  4. None of the these

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

  1. User and Computer
  2. Network and User
  3. One user to another user
  4. All of the these

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?

  1. Memory management scheme
  2. Network management scheme
  3. Internet management scheme
  4. None of the these

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?

  1. Window desktop
  2. Network connection program
  3. Operating system
  4. CMD

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?

  1. Complete backups
  2. Incremental
  3. Differential
  4. None of the these

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?

  1. Acyclic-graph directory structure
  2. Single-level directory structure
  3. Tree directory structure
  4. Stack 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?

  1. SJF scheduling
  2. Round-Robin scheduling
  3. SRTF scheduling
  4. None of these.

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?

  1. FCFS
  2. LIFO
  3. SJF
  4. All of the these

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.

Process ID. Brust-time. Arrival-time
P1 3 3
P2 6 6
P3 9 9

What is the average waiting time?

  1. 2
  2. 3
  3. 4
  4. 5

Answer: (b) 3

Explanation:

TA Time = CT – AT

Waiting Time = TA – BT

Process ID.Brust-time. Arrival-time Completion-Time (CT) Turnaround-Time (TA) Waiting-Time (WT)
P1 3 3 3 3 0
P2 6 6 9 8 2
P3 9 9 18 16 7

Average waiting time = (0 + 2 + 7) / 3 = 3


24) How many types of buffer overflow in the operating system?

  1. Two
  2. Six
  3. Seven
  4. Five

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?

  1. Contiguous
  2. Linked
  3. Indexed
  4. None of the these

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?

  1. Dynamic Programming algorithm
  2. Primality algorithms
  3. Banker’s algorithm
  4. Deadlock algorithm

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)?

  1. CPU registers
  2. CPU scheduling information
  3. Operating System information
  4. Accounting information

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?

  1. Swapping
  2. Operating system
  3. Memory stack
  4. None of these.

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 ___________.

  1. Permanent area
  2. Temporary area
  3. Small area
  4. Large area

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?

  1. Batch OS
  2. Distributed OS
  3. Real-time OS
  4. Network OS

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?

  1. 0 and 1
  2. Binary Number Format
  3. ELF Binary Format
  4. None of the these

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?

  1. Network device
  2. Operating system
  3. Server name
  4. Computer name

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?

  1. It is software that connects the OS.
  2. It is part of the software.
  3. Loss the memory
  4. All of the these

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 ________.

  1. Shortest Signal Time First
  2. Shortest Seek Time First
  3. System Seek Time First
  4. System Shortest Time First

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 ___________.

  1. Real-Number
  2. Binary Number
  3. Store block
  4. Integer Process ID

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?

  1. PCB
  2. Semaphore
  3. Job Scheduler
  4. Non-Contiguous Memory Allocation

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?

  1. Semaphore
  2. PCB
  3. Mutex
  4. Binary Semaphore

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?

  1. It is a combination of the logical-memory and physical-memory
  2. It is a separation of user logical memory and physical memory
  3. It is a virtual network memory
  4. None of the these

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 __________

  1. Compress of write memory
  2. Copy overwrite
  3. Compress overwrites
  4. Computer of world

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?

  1. Operating system
  2. CPU
  3. Monitor
  4. All of the these

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?

  1. Kali Linux
  2. Windows
  3. Mac OS
  4. Single-user operating system

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#

You may also like