Operating System Q&A
Operating System Q&A
1- What mode does the CPU operate in when it has the highest level of privileges?
A) User Mode
B) Kernel Mode
C) Safe Mode
D) Boot Mode
A) Round Robin
B) First-Come, First-Served (FCFS)
C) Shortest Job Next (SJN)
D) Priority Scheduling
A) File management
B) Process control
C) Device management
D) User input
6- Who designed the Linux operating system kernel?
A) Steve Jobs
B) Linus Torvalds
C) Bill Gates
D) Richard Stallman
7- Swapping is primarily used to:
A) Increase processing speed
B) Improve file system performance
C) Move processes between main memory and disk
D) Store temporary files
8- Which of the following describes kernel-level threads?
A) Managed by user libraries only
B) managed directly by the operating system
C) Cannot take advantage of multiple processors
D) Require manual context switching
9- What is the main purpose of memory management in an operating system?
A) To execute processes
B) To manage the allocation and deallocation of memory
C) To provide user interfaces
D) To handle input/output operations
A. One-to-one model
B. Many-to-one model
C. Many-to-many model
D. One-to-many model
11- In a many-to-many multithreading model, how many kernel threads are there in
relation to user threads?
A. Process scheduling
B. Memory management
C. File management
D. Device management
15-Which interface allows users to interact with the OS using visual icons and
windows?
A. CLI
B. GUI
C. Shell
D. Kernel
A. It provides a way for user programs to interact with the operating system.
B. It enhances hardware performance.
C. It speeds up memory access.
D. It manages file storage.
A. read()
B. malloc()
C. printf()
D. scanf()
A. Process control
B. File management
C. Memory allocation
D. Database querying
19-Which system call type is responsible for creating and managing processes?
A. Process control
B. File management
C. Device management
D. Communication management
A. File management
B. Device management
C. Process control
D. Memory management
A. Text editor
B. Compiler
C. Operating system shell
D. All of the above
A. Performance
B. Scalability
C. Security
D. All of the above
26-Which of the following is the first step in the system boot process?
30- In which process scheduling algorithm is the process that has the longest remaining
burst time chosen to run next?
A. Round Robin
B. Shortest Job Next (SJN)
C. First-Come, First-Served (FCFS)
D. Priority Scheduling
31-Which of the following scheduling algorithms is best suited for time-sharing systems?
A. Fork
B. Exec
C. Wait
D. All of the above
A. Windows Messages
B. POSIX Message Queues
C. Windows Named Pipes
D. All of the above
39-In UNIX-like systems, which IPC mechanism is used to allow communication between
processes on the same machine?
A. Message Passing
B. Shared Memory
C. Named Pipes
D. Signals
40-Which of the following IPC systems is specifically designed for communication across a
network?
A. Shared Memory
B. Sockets
C. Semaphores
D. Message Queues
41-Which IPC method is based on reading and writing data in memory that is shared
between multiple processes?
A. Message Passing
B. Shared Memory
C. Semaphores
D. File System
A. CPU utilization
B. Turnaround time
C. Memory usage
D. Throughput
44-Which of the following is the primary goal of CPU scheduling in operating systems?
A. Segments
B. Pages
C. Partitions
D. Frames
A. a) It ensures the operating system's core functions are not interrupted by process
execution
B. b) It prevents user processes from accessing the kernel memory
C. c) It reduces system performance by isolating kernel processes
D. d) It allows user processes to allocate kernel resources directly
1. File protection mechanisms allow the operating system to control which users or
3. The directory structure in an operating system helps manage and organize files
efficiently. True
4. In a flat directory structure, all files are stored in a single directory without any
subdirectories. True
5. Files are used to store both data and programs in an operating system. True
6. A file in an operating system is typically stored in memory and does not need to be
A process is an independent program in execution with its own memory space, while a
thread is a unit of execution within a process, sharing resources such as memory and file
descriptors with other threads in the same process.
3- What are the key methods of file sharing, and why are they important?
Key methods of file sharing include file locking, network file systems, and file
permissions. These methods ensure that multiple users or processes can access and
modify files without causing data corruption or conflicts.
Kernel memory is allocated separately to protect the operating system's core functions
and ensure that user processes do not interfere with or corrupt the memory used by the
kernel.
5- What is the role of page replacement algorithms in a system with virtual memory?
Page replacement algorithms manage which pages to swap in and out of memory to
minimize page faults and ensure that the system operates efficiently.
6- What is the purpose of the page table in a paging system?
A page table is used to map virtual addresses to physical addresses, enabling the system
to translate logical page addresses to physical memory locations.
The main benefit of segmentation is that it allows for a more logical organization of
memory based on the logical structure of a process, such as separating code, data, and
stack segments.
The major issue is external fragmentation, where free memory is scattered in small
chunks, making it difficult to allocate large contiguous blocks.
The primary disadvantage is that it can lead to long waiting times, especially if a long
process arrives before shorter ones, causing a "convoy effect."
Some key challenges include synchronization, load balancing, memory consistency, and
cache coherence issues.
Swapping allows processes to be moved in and out of main memory and secondary
storage to provide the illusion of a larger memory space than is physically available.
13- What criteria should be used to evaluate the effectiveness of a CPU scheduling
algorithm?
Key criteria include CPU utilization, throughput, waiting time, response time, and
fairness.
14- What are the difference between User Mode and a Kernel Mode?
User Mode is where regular applications run with limited access to system resources, ensuring
safety and stability. Kernel Mode is where the operating system runs, with full access to
hardware and system resources, allowing it to manage the system.
Because It ensures the operating system's core functions are not interrupted by process
execution.