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

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

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

3 Privileged instructions can only be executed in which mode?

A. I/O Mode
B. User Mode
C. Supervisor 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. Multiprogramming
B. Single-tasking
C. Batch Processing
D. Distributed Processing

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 is designed only for batch jobs
D. It executes jobs strictly sequentially

7 In a Symmetric Multiprocessing (SMP) system:

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

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. Guaranteed completion of critical tasks within a specific time constraint
C. User-friendly interface
D. High throughput for batch jobs

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

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

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

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

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

A. A kernel designed only for microcomputers
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 structure where the entire OS runs in kernel mode

13 What is the 'Bootstrap Program'?

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

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

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

15 What is a Process?

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

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

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

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

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

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

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

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

21 What is a significant downside of Context Switching?

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

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

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

23 What is a 'Zombie' process?

A. A process that consumes all CPU resources
B. A process running indefinitely
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 becomes an Orphan process
B. It stops executing but remains in memory
C. It becomes a Zombie process
D. It is terminated immediately

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. Modularity
B. Hardware Protection
C. Information Sharing
D. Computation Speedup

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

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

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

A. Consuming data from the buffer
B. Deleting the buffer
C. Generating data and placing it into 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. Creating new processes
B. Swapping processes in and out of memory
C. Shutting down the system
D. Assigning PIDs

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

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

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

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

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

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

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

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

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

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

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

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

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

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

39 What constitutes the 'state' of a process?

A. The current activity of the process
B. The user who owns the process
C. Only the program code
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. exit()
B. signal()
C. fork()
D. wait()

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 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 Compiler
C. The Loader
D. The Shell

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

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

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

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

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

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

47 Synchronous Message Passing is also known as:

A. Interrupt driven
B. Rendezvous
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. Device Queue
C. Waiting Queue
D. Ready 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. No synchronization required
B. Works across networks
C. Faster communication as it avoids system calls for data access
D. Easier to implement in distributed systems