Operating System MCQs

Important computer science MCQS, Operating system MCQS for lecturer Computer, Computer Instructor TGT Computer etc

The two steps the operating system takes to use a disk to hold its files are and _

A. a) caching & logical formatting
B. b) logical formatting & swap space creation
C. c) swap space creation & caching
D. d) partitioning & logical formatting
Correct answer is: D. d) partitioning & logical formatting
partitioning & logical formatting

Partitioning: This involves dividing the disk into separate sections called partitions. Each partition can be used independently to store different types of data or operating systems.

Logical formatting: This process creates a file system structure on a partition, defining how data is organized and stored on the disk. It creates directories, files, and other metadata necessary for file management.

These two steps are essential to prepare a disk for storing and managing files effectively.

The _ program initializes all aspects of the system, from CPU registers to device controllers and the contents of main memory, and then starts the operating system.

A. a) bootstrap
B. b) main
C. c) bootloader
D. d) rom
Correct answer is: A. a) bootstrap
bootstrap

The bootstrap program is the initial software that runs when a computer is powered on or restarted. It performs essential tasks like:

Initializing hardware components

Loading the operating system into memory

Transferring control to the operating system

Essentially, it bridges the gap between hardware and software, setting the stage for the operating system to take over.

Network operating system runs on _

A. a) every system in the network
B. b) server
C. c) both server and every system in the network
D. d) none of the mentioned
Correct answer is: B. b) server
server

A network operating system (NOS) primarily runs on a server. It manages network resources, security, and file sharing for clients connected to the network. While individual client systems have their own operating systems to manage local resources, the NOS is centralized on the server to coordinate network-wide operations.

What are the types of distributed operating systems?

A. a) Zone based Operating system
B. b) Level based Operating system
C. c) Network Operating system
D. d) All of the mentioned
Correct answer is: C. c) Network Operating system
Types of Distributed Operating Systems

c) Network Operating System is the correct answer.

While there are various architectural models within distributed systems (like client-server, peer-to-peer, etc.), the overarching term for an operating system that manages a network of computers is a Network Operating System (NOS).

Incorrect options:

Zone-based Operating System: This term doesn't have a standard definition in the context of operating systems.

Level-based Operating System: This term also doesn't have a standard definition in the context of operating systems.

Therefore, Network Operating System is the most accurate and widely recognized term for an operating system that manages a distributed system.

In Unix, which system call creates the new process?

A. a) create
B. b) fork
C. c) new
D. d) none of the mentioned
Correct answer is: B. b) fork
fork

The fork() system call is used in Unix-like operating systems to create a new process. It creates a copy of the current process, called a child process, which runs concurrently with the parent process.

Whenever a process needs I/O to or from a disk it issues a __

A. a) system call to the operating system
B. b) a special procedure
C. c) system call to the CPU
D. d) all of the mentioned
Correct answer is: A. a) system call to the operating system
system call to the operating system

Whenever a process requires input or output operations involving a disk, it initiates a system call to the operating system. This system call informs the OS about the specific I/O request, such as reading or writing data to a particular location on the disk. The OS then handles the request, interacts with the disk controller, and eventually returns control to the process when the operation is complete.

On systems where there are multiple operating system, the decision to load a particular one is done by _

A. a) process control block
B. b) file control block
C. c) boot loader
D. d) bootstrap
Correct answer is: C. c) boot loader
boot loader

The boot loader is responsible for loading the operating system when a computer is turned on. In systems with multiple operating systems, the boot loader provides a menu or options to select the desired operating system to load.

To recover from failures in the network operations _ information may be maintained.

A. a) operating system
B. b) ip address
C. c) stateless
D. d) state
Correct answer is: D. d) state
state

To recover from failures in network operations, state information is crucial. This information includes details about the current status of connections, data transfers, and other relevant parameters. By maintaining state information, network protocols and applications can restore communication and resend lost data in case of failures.

For example, TCP (Transmission Control Protocol) uses sequence numbers and acknowledgments to keep track of data packets and retransmit lost ones. This state information is essential for reliable data transfer.

 The operating system _ the links when traversing directory trees, to preserve the acyclic structure of the system.

A. a) deletes
B. b) considers
C. c) ignores
D. d) none of the mentioned
Correct answer is: C. c) ignores
ignores

The operating system ignores the links when traversing directory trees. This is because links are essentially shortcuts or pointers to existing files or directories, and they don't affect the underlying directory structure. The operating system follows the actual directory paths to navigate the file system.

The operating system keeps a small table containing information about all open files called __

A. a) file table
B. b) directory table
C. c) open-file table
D. d) system table
Correct answer is: C. c) open-file table
open-file table

The operating system maintains an open-file table to keep track of information about all open files. This table contains details such as:

File pointer (current position within the file)

Access permissions

File attributes

Buffer addresses

This information is crucial for efficient file management and access.

Scroll to Top