Unit 1: Introduction to Operating System and Process Management - Practice Quiz

CSE316 — Operating Systems 50 Questions
0 Correct 0 Wrong 50 Left
0/50

1 What is the primary objective of an Operating System?

A. To compile source code into machine code
B. To provide an environment for a user to execute programs conveniently and efficiently
C. To make the hardware run faster
D. To replace the need for RAM

2 Which bit in the PSW (Program Status Word) register distinguishes between User Mode and Supervisor (Kernel) Mode?

A. Flag bit
B. Mode bit
C. Interrupt bit
D. Status bit

3 Privileged instructions can only be executed in which mode?

A. Supervisor Mode
B. I/O Mode
C. User Mode
D. Both User and Supervisor Mode

4 What is the main disadvantage of a Simple Batch System?

A. Complex user interface
B. Lack of security
C. High cost of implementation
D. CPU remains idle during I/O operations

5 Which system concept increases CPU utilization by organizing jobs so that the CPU always has one to execute?

A. Distributed Processing
B. Batch Processing
C. Multiprogramming
D. Single-tasking

6 What is the defining characteristic of a Time-Sharing System (Multitasking)?

A. It uses multiple CPUs
B. It executes jobs strictly sequentially
C. It is designed only for batch jobs
D. It switches the CPU between jobs so frequently that users can interact with each program while it is running

7 In a Symmetric Multiprocessing (SMP) system:

A. Only one processor handles I/O
B. Each processor runs an identical copy of the OS and they communicate
C. One master processor controls slave processors
D. Processors are located in different geographical locations

8 What defines a Distributed Operating System?

A. A system with multiple CPUs sharing the same clock and memory
B. A system designed for real-time constraints
C. A system running on a single powerful mainframe
D. A collection of independent computers that appears to its users as a single coherent system

9 Which of the following is a strict requirement for a Hard Real-Time Operating System (RTOS)?

A. High throughput for batch jobs
B. Guaranteed completion of critical tasks within a specific time constraint
C. Virtual memory management
D. User-friendly interface

10 What are 'Tightly Coupled' systems also known as?

A. Distributed Systems
B. Batch Systems
C. Personal Computer Systems
D. Parallel Systems

11 Which component acts as the interface between a running program and the Operating System?

A. System Calls
B. Bus
C. BIOS
D. Interrupt Vector

12 In the context of OS structure, what is a Microkernel?

A. A kernel that is very small in file size
B. A kernel designed only for microcomputers
C. A structure that moves as much functionality as possible from the kernel into user space
D. A structure where the entire OS runs in kernel mode

13 What is the 'Bootstrap Program'?

A. The first user program to run
B. A program to manage boots
C. The shutdown sequence
D. The program that initializes the OS during computer startup

14 Which of the following is NOT a primary function of an Operating System?

A. File Management
B. Process Management
C. Source Code Compilation
D. Memory Management

15 What is a Process?

A. A high-level language code
B. A program in execution
C. A system call
D. A program stored on the hard disk

16 Which data structure does the OS use to store all information about a specific process?

A. File Control Block
B. Process Control Block (PCB)
C. Page Table
D. Interrupt Vector Table

17 Which of the following is NOT contained in a Process Control Block (PCB)?

A. Process State
B. Program Counter
C. Source code of the program
D. CPU Registers

18 When a process switches from the 'Running' state to the 'Ready' state, what is the likely cause?

A. Waiting for user input
B. I/O completion
C. An interrupt occurs (e.g., time quantum expiry)
D. Process termination

19 What state is a process in when it is waiting for some event to occur (such as an I/O completion)?

A. New
B. Waiting (or Blocked)
C. Ready
D. Running

20 The mechanism of saving the state of the old process and loading the saved state of the new process is called:

A. Process Creation
B. Context Saving
C. Swapping
D. Context Switch

21 What is a significant downside of Context Switching?

A. It is purely overhead; the system does no useful work while switching
B. It decreases the number of processes
C. It requires user intervention
D. It creates deadlocks

22 Which system call is typically used in Unix/Linux systems to create a new process?

A. start()
B. new()
C. create()
D. fork()

23 What is a 'Zombie' process?

A. A process running indefinitely
B. A process that consumes all CPU resources
C. A process that has terminated, but its parent has not yet called wait()
D. A virus process

24 What happens to a child process if its parent terminates without invoking wait(), and the OS does not cascade termination?

A. It stops executing but remains in memory
B. It becomes a Zombie process
C. It is terminated immediately
D. It becomes an Orphan process

25 Two processes are 'Cooperating' if:

A. They are both in the Ready queue
B. They have different Process IDs
C. One process can affect or be affected by the other process
D. They share the same CPU

26 Which of the following is NOT a reason for providing an environment for cooperating processes?

A. Hardware Protection
B. Modularity
C. Information Sharing
D. Computation Speedup

27 Which method allows processes to communicate by exchanging messages without sharing the same address space?

A. Shared Memory
B. Direct Memory Access
C. Virtual Memory
D. Message Passing

28 In the Producer-Consumer problem using Shared Memory, what is the 'Producer' doing?

A. Generating data and placing it into the buffer
B. Deleting the buffer
C. Managing the memory allocation
D. Consuming data from the buffer

29 Which scheduler controls the degree of multiprogramming?

A. I/O Scheduler
B. Short-term Scheduler
C. Long-term Scheduler
D. Medium-term Scheduler

30 The Short-term Scheduler (CPU Scheduler) is responsible for:

A. Creating the PCB
B. Handling swap space
C. Selecting which process should be executed next and allocating the CPU
D. Moving processes from disk to memory

31 What action does the Medium-term Scheduler typically perform?

A. Shutting down the system
B. Creating new processes
C. Assigning PIDs
D. Swapping processes in and out of memory

32 In Direct Communication (Message Passing), how must processes be addressed?

A. Broadcasting to all
B. Using a mailbox ID
C. Explicitly naming the recipient or sender
D. Implicitly

33 Which of the following refers to the number of processes completed per time unit?

A. Turnaround time
B. Throughput
C. Waiting time
D. Response time

34 The 'exec()' system call is used to:

A. Create a new process
B. Exit the process
C. Wait for a child process
D. Replace the process's memory space with a new program

35 Which type of operating system is typically used in embedded devices like washing machines or microwaves?

A. Real-Time OS (or Embedded OS)
B. Distributed OS
C. Batch OS
D. Network OS

36 What is the 'Kernel' of an Operating System?

A. The shell that the user interacts with
B. The file system structure
C. The central core of the OS that manages resources and hardware
D. The application software layer

37 A process control block (PCB) is also known as:

A. Memory Control Block
B. Task Control Block
C. I/O Control Block
D. File Control Block

38 In Indirect Communication (Message Passing), messages are sent to and received from:

A. The Heap
B. Mailboxes (or Ports)
C. Registers
D. The Stack

39 What constitutes the 'state' of a process?

A. The file name on the disk
B. The user who owns the process
C. Only the program code
D. The current activity of the process

40 Which operation allows a parent process to synchronize its execution with the termination of a child process?

A. exit()
B. wait()
C. signal()
D. fork()

41 What is a Clustered System?

A. A batch processing system
B. Two or more individual systems gathered together to perform computational tasks
C. A mainframe
D. A single processor system

42 During a Context Switch, where is the context of the old process saved?

A. In the new process's stack
B. In the secondary storage
C. In the CPU registers
D. In its Process Control Block (PCB)

43 Which command interpreter typically runs when a user logs in on a Unix system?

A. The Kernel
B. The Shell
C. The Compiler
D. The Loader

44 Which of the following is an example of a System Call used for File Management?

A. open()
B. time()
C. wait()
D. fork()

45 In the evolution of Operating Systems, what replaced vacuum tubes?

A. Transistors
B. Large Scale Integration
C. Relays
D. Integrated Circuits

46 What does 'Program Counter' in the PCB indicate?

A. The number of programs running
B. The total memory used
C. The time the process has been running
D. The address of the next instruction to be executed

47 Synchronous Message Passing is also known as:

A. Polled
B. Interrupt driven
C. Rendezvous
D. Non-blocking

48 Which queue holds the processes that are residing in main memory and are ready and waiting to execute?

A. Device Queue
B. Job Queue
C. Waiting Queue
D. Ready Queue

49 The transition from 'New' to 'Ready' state is approved by:

A. User
B. Dispatcher
C. Short-term scheduler
D. Long-term scheduler

50 What is the primary advantage of Shared Memory over Message Passing for IPC?

A. Works across networks
B. Easier to implement in distributed systems
C. Faster communication as it avoids system calls for data access
D. No synchronization required