Question : Which data structure stores process attributes in an operating system?
Solution :
Correct Answer : Process Control Block
Description -
The correct answer is Process Control Block (PCB). Key Details of a Process Control Block (PCB)
Question : Which attribute uniquely identifies a process in the system?
Solution :
Correct Answer : Process ID
Description -
The correct attribute that uniquely identifies a process in the system is Process ID (PID). Quick Breakdown:
Question : The program counter stores:
Solution :
Correct Answer : Address of next instruction
Description -
The program counter stores the Address of next instruction. Quick Breakdown
Question : Which attribute indicates the current condition of a process?
Solution :
Correct Answer : Process State
Description -
The attribute that indicates the current condition of a process is Process State. In operating systems, the process state (such as New, Ready, Running, Waiting, or Terminated) defines what the process is currently doing at any given moment.
Question : Which process attribute determines CPU allocation order?
Solution :
Correct Answer : Priority
Description -
Priority is the process attribute that determines CPU allocation order. In operating systems, the CPU scheduler uses the priority attribute of a process to decide which process gets allocated the CPU first (especially in priority-based scheduling algorithms), where higher-priority processes are executed before lower-priority ones. Here is a quick breakdown of what the other components do:
Question : Which attribute stores temporary data during execution?
Solution :
Correct Answer : General-purpose registers
Description -
General-purpose registers store temporary data during execution. Within the CPU, registers are high-speed storage locations used to quickly hold raw data, intermediate calculation results, and memory addresses currently being processed by the execution unit. Here is a quick look at why the other options are incorrect:
Question : The list of open files in PCB represents:
Solution :
Correct Answer : Files currently used by the process
Description -
The list of open files in the PCB represents Files currently used by the process. When a process opens a file, the operating system maintains a record of it in the Process Control Block (PCB). This allows the process to read from, write to, and track its current position within that file during its execution. Here is why the other options do not fit:
Question : Which attribute contains information about devices used by the process?
Solution :
Correct Answer : Open device list
Description -
Open device list contains information about devices used by the process. The Open device list (sometimes referred to as the I/O status information or allocated device list) in the Process Control Block (PCB) keeps track of all the hardware devices and I/O resources currently assigned to that specific process. Here is a quick reminder of what the other options represent:
Question : Process attributes together are also called:
Solution :
Correct Answer : Process context
Description -
Process attributes together are also called Process context. The Process context (often stored within the Process Control Block) encompasses the entire state of a process, including its CPU registers, program counter, memory management information, and open file lists. This context is what the operating system saves and restores during a context switch. Here is what the other terms mean:
Question : Which attribute helps resume process execution after interruption?
Solution :
Correct Answer : Program counter
Description -
The correct answer is Program counter. Why the Program Counter is Used The program counter (PC) is a dedicated register stored within a Process Control Block (PCB). It contains the memory address of the next instruction to be executed in the process's instruction sequence. When an operating system interrupts a running process (due to a time-slice expiration, I/O request, or hardware interrupt), it performs a context switch. During this switch, the OS saves the exact value of the program counter alongside other CPU registers. When the process is scheduled to run again, the OS reloads this saved address back into the CPU, allowing execution to safely resume exactly where it was interrupted. Breakdown of Other Options
Question : Which of the following is NOT a process attribute?
Solution :
Correct Answer : Compiler code
Description -
The correct answer is Compiler code. A process attribute is specific metadata that the operating system tracks and manages inside the Process Control Block (PCB) to control a process during execution. Why the Other Options are Process Attributes The operating system explicitly stores these attributes in the PCB:
Question : Which process attribute contains information about CPU registers?
Solution :
Correct Answer : Register set
Description -
The correct answer is Register set. The register set (often referred to as the CPU register state or saved registers) is the specific attribute in the Process Control Block (PCB) that stores the architecture-dependent values of all CPU registers. When a process is running, it heavily utilizes the CPU's hardware registers (such as accumulators, index registers, stack pointers, and general-purpose registers) to store temporary values and execution data. When an interruption or context switch occurs, the operating system must copy the values out of these physical hardware registers and save them into the process's register set in memory. When the process is scheduled to run again, these values are restored back to the CPU so it can continue operating with identical data. Breakdown of Other Options
Question : Which process state means the process is currently executing?
Solution :
Correct Answer : Running
Description -
The correct answer is Running. When a process is in the Running state, it means its compiled instructions are currently being loaded and executed by the physical CPU core(s). Breakdown of the Other States
Question : Which process state indicates the process is waiting for CPU allocation?
Solution :
Correct Answer : Ready
Description -
The correct answer is Ready. When a process is in the Ready state, it has all the necessary resources it needs to run (it is loaded into memory and initialized) and is strictly waiting for the operating system scheduler to allocate CPU time to it. Breakdown of the Other States
Question : Which process attribute is used for scheduling decisions?
Solution :
Correct Answer : Priority
Description -
The correct answer is Priority. The operating system's CPU scheduler uses the priority attribute to decide which process in the Ready queue should get access to the CPU next. Processes with higher priority values are allocated CPU time ahead of lower-priority processes. This priority can be assigned statically (e.g., system tasks vs. user applications) or dynamically adjusted by the OS based on factors like aging or memory usage. Breakdown of Other Options
Question : The process attributes stored in PCB are used by:
Solution :
Correct Answer : Operating System
Description -
The correct answer is Operating System. The Process Control Block (PCB) is a core data structure created, maintained, and managed exclusively by the Operating System (OS) kernel. The OS uses these attributes to perform vital system tasks, including: Why the Other Options are Incorrect
Question : When a process is suspended, the address of its last executed instruction is saved in:
Solution :
Correct Answer : Program counter
Description -
The correct answer is Program counter. The program counter (PC) is the specific register inside the Process Control Block (PCB) designed to track the location of execution. When a process is suspended or interrupted, the CPU hardware automatically updates the program counter to hold the memory address of the next instruction to be executed (or the last attempted one, depending on the architecture). The operating system then saves this exact value into the process's PCB memory space. When the process is eventually resumed, this saved address is loaded back into the physical CPU register so that execution continues seamlessly from that exact location. Breakdown of Other Options
Question : Which attribute indicates the lifecycle stage of a process?
Solution :
Correct Answer : Process state
Description -
The correct answer is Process state. The process state attribute tracks exactly where a process currently stands in its execution lifecycle. As a process moves from creation to completion, the operating system kernel continuously updates this attribute to reflect its current disposition: Breakdown of Other Options
Question : Open device list in PCB helps the OS to:
Solution :
Correct Answer : Track devices used by process
Description -
The correct answer is Track devices used by process. The open device list (also called the I/O status information) inside the Process Control Block (PCB) keeps a detailed inventory of all hardware peripherals—such as printers, network interfaces, disk drives, or audio devices—allocated to that specific process. The operating system uses this attribute to: Breakdown of Other Options
Question : Which of the following is a correct attribute combination of a process?
Solution :
Correct Answer : PID, Program Counter, Priority
Description -
The correct answer is PID, Program Counter, Priority. A process attribute is specific metadata tracked by the operating system kernel inside the Process Control Block (PCB) to manage a program in execution. All three items in this set are genuine process management properties stored together within the PCB. Breakdown of Incorrect Options