System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q2071: GetExitCodeProcess() requires a handle to the process.
- A: A
- B: B
- C:
- D:
View Answer
A
Q2072: STILL_ACTIVE is a possible result of GetExitCodeProcess().
- A: A
- B: B
- C:
- D:
View Answer
A
Q2073: TerminateProcess() immediately frees all allocated memory of the process.
- A: A
- B: B
- C:
- D:
View Answer
B
Q2074: The use of ExitProcess() is recommended for proper resource release.
- A: A
- B: B
- C:
- D:
View Answer
B
Q2075: Before exiting a process, all open handles should be ______.
- A: duplicated
- B: transferred
- C: closed
- D: referenced
View Answer
C
Q2076: ExitProcess() should preferably be used with ______.
- A: exceptions
- B: critical sections
- C: scheduling
- D: flags
View Answer
A
Q2077: Which function retrieves the exit status of a process?
- A: TerminateProcess()
- B: ExitProcess()
- C: GetProcessStatus()
- D: GetExitCodeProcess()
View Answer
D
Q2078: Calling TerminateProcess() prevents execution of ______.
- A: access checks
- B: any DLL unload
- C: Exit handlers
- D: resource recovery
View Answer
B
Q2079: The value STILL_ACTIVE indicates that the process is ______.
- A: suspended
- B: still running
- C: terminated
- D: paused
View Answer
B
Q2080: The correct way to safely terminate a process is to ______.
- A: close its window
- B: use ExitProcess() without checking
- C: handle exceptions and close resources first
- D: use Task Manager
View Answer
C