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 JKExamLibrary)
The stack segment of a process manages temporary execution details like active function call parameters, local variables, and instruction return paths.

This question belongs to: Computer Operating Systems

Discuss this Question (0)

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

Practice More Operating Systems Questions

Question #1 Report Error
Which of the following is a process scheduling algorithm that allocates CPU to the process with the shortest remaining time?
A. Round Robin
B. Multilevel Queue
C. Priority Scheduling
D. Shortest Job First (SJF)

Correct Answer: Option D


Explanation:
SJF selects the process with the shortest total execution time; the preemptive version is Shortest Remaining Time First (SRTF).

This question belongs to: Computer Operating Systems
Question #2 Report Error
Which Linux command displays information about system processes in real-time?
A. ps
B. top
C. systemd
D. kill

Correct Answer: Option B


Explanation:
The 'top' command shows a dynamic, real-time view of running processes, CPU usage, memory, and more.

This question belongs to: Computer Operating Systems
Question #3 Report Error
In Windows, the 'Tracert' command is used to:
A. Test network speed
B. Trace the route packets take to a destination
C. Resolve domain names
D. Display network statistics

Correct Answer: Option B


Explanation:
tracert (traceroute) displays each hop (router) along the path to a target IP/domain.

This question belongs to: Computer Operating Systems