WorksheetsOperating System Concepts Quiz chapter 3
Total questions: 23
Worksheet time: 12mins
What is a process?
A program in execution
A static file on disk
A type of memory allocation
A user interface component
Which state indicates that a process is waiting for an event to occur?
New
Terminated
Running
Waiting
What does the Process Control Block (PCB) contain?
Information about the process state and resources
Network configuration
Only the process ID
User interface details
What is the first state a process enters when it is created?
New
Running
Ready
Terminated
What is context switching?
Switching between different operating systems
Switching memory allocation
Switching from one process to another
Switching between different user interfaces
What is the role of threads in an operating system?
To manage file systems
To handle user input
To execute multiple tasks simultaneously within a process
To manage memory allocation
Which system call is used to create a new process in UNIX?
exec()
fork()
wait()
exit()
What happens to a process when it terminates?
It is deleted and its resources are deallocated
It continues to run in the background
It becomes a zombie process
It is suspended
What is a lightweight process?
A process that is terminated quickly
A process that runs in the background
A thread
A process that uses minimal memory
What is the purpose of the wait() system call?
To create a new process
To switch between processes
To terminate a process
To wait for a child process to finish
What is the state of a process that is waiting for I/O?
Blocked
Running
Terminated
Ready
What does the term 'suspend ready' refer to?
A process that is ready but not in main memory
A process that is waiting for I/O
A process that has finished execution
A process that is currently running
Which of the following is NOT a part of a process?
Current activity
Program code
User interface
Stack
What is the main advantage of multithreading?
Reduced CPU usage
Increased memory usage
Simplified process management
Improved responsiveness and resource sharing
What is a zombie process?
A process that is suspended
A process that is waiting for I/O
A terminated process that has not been cleaned up
A process that is currently running
What is the primary function of the operating system regarding processes?
To handle network communications
To execute user commands
To manage and execute multiple programs
To provide a graphical user interface
What is the significance of the program counter in a PCB?
It indicates the process's memory usage
It manages I/O operations
It points to the next instruction to execute
It stores the process's ID
What is the main purpose of the exec() system call?
To wait for a child process
To replace the current process's memory space with a new program
To create a new process
To terminate a process
What is the role of the parent process in process creation?
It can create multiple child processes forming a tree
It can only create one child process
It manages all child processes
It cannot terminate child processes
What is the main disadvantage of using multiple processes instead of threads?
Increased resource sharing
Higher memory consumption and overhead
Simplified execution
Faster execution
What is the main function of the abort() system call?
To wait for a child process
To replace a process's memory space
To terminate a process immediately
To create a new process
What is the main characteristic of a multithreaded application?
It requires more memory than single-threaded applications
It can only run one task at a time
It is easier to manage than single-threaded applications
It can perform multiple tasks simultaneously
What happens to a child process if its parent terminates without waiting?
It continues to run normally
It becomes an orphan process
It is terminated immediately
It becomes a zombie process
