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 make the hardware run faster
B. To compile source code into machine code
C. To replace the need for RAM
D. To provide an environment for a user to execute programs conveniently and efficiently

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

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

3 Privileged instructions can only be executed in which mode?

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

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

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

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

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

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

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

7 In a Symmetric Multiprocessing (SMP) system:

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

8 What defines a Distributed Operating System?

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

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

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

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

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

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

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

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

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

13 What is the 'Bootstrap Program'?

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

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

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

15 What is a Process?

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

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

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

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

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

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

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

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. Ready
C. Running
D. Waiting (or Blocked)

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

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

21 What is a significant downside of Context Switching?

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

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

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

23 What is a 'Zombie' process?

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

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

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

25 Two processes are 'Cooperating' if:

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

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

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

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

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

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

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

29 Which scheduler controls the degree of multiprogramming?

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

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

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

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

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

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

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

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

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

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

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

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. Batch OS
C. Distributed OS
D. Network OS

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

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

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

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

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

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

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. fork()
B. exit()
C. signal()
D. wait()

41 What is a Clustered System?

A. A mainframe
B. Two or more individual systems gathered together to perform computational tasks
C. A batch processing system
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 its Process Control Block (PCB)
D. In the CPU registers

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

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

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

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

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

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

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

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

47 Synchronous Message Passing is also known as:

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

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

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

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

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

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

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