Computer Science MCQS

Computer Science MCQ with detailed explanations for students & freshers preparing for entrance exams, various tests, interviews, competitive exams like GATE exam, interview, competitive examination and entrance exam.

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.

 The information about all files is kept in __

A. a) operating system
B. b) separate directory structure
C. c) swap space
D. d) none of the mentioned
Correct answer is: B. b) separate directory structure
b) separate directory structure

The information about all files is kept in a separate directory structure. This structure organizes files and directories hierarchically, making it easy to locate and manage files.

If the sum of the working – set sizes increases, exceeding the total number of available frames __

A. a) the operating system selects a process to suspend
B. b) the system crashes
C. c) then the process crashes
D. d) the memory overflows
Correct answer is: A. a) the operating system selects a process to suspend
the operating system selects a process to suspend

This is correct.

Working set is the set of memory pages actively used by a process. If the total size of all active processes' working sets exceeds the available physical memory, the operating system faces a memory shortage.

To prevent system slowdown or crashes due to excessive page swapping (thrashing), the operating system typically suspends one or more processes. This frees up their memory frames, reducing the overall memory demand and allowing the remaining processes to continue operating efficiently.

Scroll to Top