Unit 1 - Practice Quiz

CSE316 50 Questions
0 Correct 0 Wrong 50 Left
0/50

1 What is the primary objective of an Operating System?

A. To replace the need for RAM
B. To make the hardware run faster
C. To provide an environment for a user to execute programs conveniently and efficiently
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. Flag bit
C. Status bit
D. Interrupt bit

3 Privileged instructions can only be executed in which mode?

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

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

A. CPU remains idle during I/O operations
B. Complex user interface
C. Lack of security
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. Distributed Processing
B. Batch Processing
C. Multiprogramming
D. Single-tasking

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

A. It switches the CPU between jobs so frequently that users can interact with each program while it is running
B. It uses multiple CPUs
C. It executes jobs strictly sequentially
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 collection of independent computers that appears to its users as a single coherent system
B. A system running on a single powerful mainframe
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. Virtual memory management
B. High throughput for batch jobs
C. Guaranteed completion of critical tasks within a specific time constraint
D. User-friendly interface

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

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

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

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

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

A. A structure where the entire OS runs in kernel mode
B. A kernel that is very small in file size
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 program that initializes the OS during computer startup
B. A program to manage boots
C. The first user program to run
D. The shutdown sequence

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 program in execution
B. A system call
C. A high-level language code
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. Process Control Block (PCB)
B. Page Table
C. Interrupt Vector Table
D. File Control Block

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

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

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. Waiting (or Blocked)
B. Ready
C. New
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. Swapping
C. Context Switch
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 is purely overhead; the system does no useful work while switching
D. It requires user intervention

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

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

23 What is a 'Zombie' process?

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

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

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

25 Two processes are 'Cooperating' if:

A. One process can affect or be affected by the other process
B. They are both in the Ready queue
C. They have different Process IDs
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. Information Sharing
C. Modularity
D. Computation Speedup

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

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

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

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

29 Which scheduler controls the degree of multiprogramming?

A. Long-term Scheduler
B. I/O Scheduler
C. Short-term Scheduler
D. Medium-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. Creating the PCB
D. Moving processes from disk to memory

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

A. Registers
B. The Stack
C. Mailboxes (or Ports)
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 user who owns the process
D. The file name on the disk

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

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

41 What is a Clustered System?

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

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

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

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. Relays
B. Transistors
C. Integrated Circuits
D. Large Scale Integration

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

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

47 Synchronous Message Passing is also known as:

A. Rendezvous
B. Interrupt driven
C. Non-blocking
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. Dispatcher
C. Long-term scheduler
D. User

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

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