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. Status bit
B. Flag bit
C. Mode bit
D. Interrupt bit

3 Privileged instructions can only be executed in which mode?

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

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. One master processor controls slave processors
B. Only one processor handles I/O
C. Each processor runs an identical copy of the OS and they communicate
D. Processors are located in different geographical locations

8 What defines a Distributed Operating System?

A. A system designed for real-time constraints
B. A system with multiple CPUs sharing the same clock and memory
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. User-friendly interface
D. Virtual memory management

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

A. Distributed Systems
B. Parallel Systems
C. Personal Computer Systems
D. Batch 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 kernel designed only for microcomputers
D. A structure that moves as much functionality as possible from the kernel into user space

13 What is the 'Bootstrap Program'?

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

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

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

15 What is a Process?

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

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

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

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

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

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

A. I/O completion
B. An interrupt occurs (e.g., time quantum expiry)
C. Process termination
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. Running
B. Ready
C. Waiting (or Blocked)
D. New

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 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. create()
D. start()

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 becomes a Zombie process
B. It becomes an Orphan process
C. It stops executing but remains in memory
D. It is terminated immediately

25 Two processes are 'Cooperating' if:

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

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

A. Information Sharing
B. Hardware Protection
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. Message Passing
C. Direct Memory Access
D. Shared Memory

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

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

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. Handling swap space
B. Creating the PCB
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. 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. Explicitly naming the recipient or sender
B. Implicitly
C. Using a mailbox ID
D. Broadcasting to all

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

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

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

A. Create a new process
B. Wait for a child process
C. Exit the 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. Network OS
C. Distributed OS
D. Batch 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. I/O Control Block
B. Memory Control Block
C. File Control Block
D. Task Control Block

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

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

39 What constitutes the 'state' of a process?

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

41 What is a Clustered System?

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

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

A. In the secondary storage
B. In the new process's stack
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 Loader
B. The Compiler
C. The Kernel
D. The Shell

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

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

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

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

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

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

47 Synchronous Message Passing is also known as:

A. Non-blocking
B. Polled
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. Waiting Queue
B. Device Queue
C. Ready Queue
D. Job Queue

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

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

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