Unit 1 - Practice Quiz

CSE316

1 What is the primary objective of an Operating System?

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

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

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

3 Privileged instructions can only be executed in which mode?

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

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

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

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

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

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 switches the CPU between jobs so frequently that users can interact with each program while it is running
D. It is designed only for batch jobs

7 In a Symmetric Multiprocessing (SMP) system:

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

8 What defines a Distributed Operating System?

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

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

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

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

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

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

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

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

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

13 What is the 'Bootstrap Program'?

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

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

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

15 What is a Process?

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

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. Program Counter
B. CPU Registers
C. Process State
D. Source code of the program

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

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

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. Running
C. Ready
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. Process Creation
B. Context Switch
C. Context Saving
D. Swapping

21 What is a significant downside of Context Switching?

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

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

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

23 What is a 'Zombie' process?

A. A process that has terminated, but its parent has not yet called wait()
B. A process running indefinitely
C. A process that consumes all CPU resources
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 is terminated immediately
B. It becomes an Orphan process
C. It becomes a Zombie process
D. It stops executing but remains in memory

25 Two processes are 'Cooperating' if:

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

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

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

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

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

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

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

29 Which scheduler controls the degree of multiprogramming?

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

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

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

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

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

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

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

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. Replace the process's memory space with a new program
C. Exit the 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. Batch OS
B. Distributed OS
C. Network OS
D. Real-Time OS (or Embedded OS)

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

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

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

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

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

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

39 What constitutes the 'state' of a process?

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

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

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

41 What is a Clustered System?

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

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

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

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

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

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

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

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

47 Synchronous Message Passing is also known as:

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

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. Device Queue
D. Waiting Queue

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

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

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

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