Which component of a process contains its local variables, function parameters, and return addresses during execution? MCQ with Answer and Explanation

Which component of a process contains its local variables, function parameters, and return addresses during execution?
A. Code Section
B. Heap
C. Data Section
D. Stack
Answer: Option D
Solution (By JKSSB Mock Tests)
The stack segment of a process manages temporary execution details like active function call parameters, local variables, and instruction return paths.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Operating Systems Questions

Question #1
In Windows, the 'Registry' value type 'REG_DWORD' represents:
A. A 64-bit integer
B. A 32-bit integer
C. A string
D. A binary value

Correct Answer: Option B


Explanation:
REG_DWORD is a 32-bit numeric value; REG_QWORD is 64-bit; REG_SZ is string; REG_BINARY is binary.

This question belongs to: Computer Operating Systems
Question #2
Which Windows component provides a comprehensive view of active processes, performance metrics, and network utilization, allowing users to terminate frozen apps?
A. Task Manager
B. Disk Management
C. Device Manager
D. Event Viewer

Correct Answer: Option A


Explanation:
Windows Task Manager provides real-time information about system performance, application memory footprints, and allows terminating running processes.

This question belongs to: Computer Operating Systems
Question #3
Which file allocation method stores blocks of a file in an ordered sequence linked together via pointers, eliminating external fragmentation but making random access slow?
A. Indexed Allocation
B. Linked Allocation
C. Contiguous Allocation
D. Direct Directory Mapping

Correct Answer: Option B


Explanation:
Linked allocation chains blocks together using pointers, allowing dynamic size expansions but requiring linear scanning to read a specific internal offset.

This question belongs to: Computer Operating Systems