Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Chapter: 95
Q2061:
Which API does not return after it is called?
A. ExitThread()
B. ExitProcess()
C. TerminateThread()
D. CloseHandle()
Correct Answer: B
Chapter: 95
Q2062:
ExitProcess() ignores termination handlers.
A. A
B. B
Correct Answer: A
Chapter: 95
Q2063:
ExitProcess() only ends the calling thread.
A. A
B. B
Correct Answer: B
Chapter: 95
Q2064:
GetExitCodeProcess() returns the memory usage of a process.
A. A
B. B
Correct Answer: B
Chapter: 95
Q2065:
To retrieve exit code, the process must be opened with correct access rights.
A. A
B. B
Correct Answer: A
Chapter: 95
Q2066:
TerminateProcess() allows a process to run shutdown handlers.
A. A
B. B
Correct Answer: B
Chapter: 95
Q2067:
ExitProcess() can be used without releasing resources.
A. A
B. B
Correct Answer: A
Chapter: 95
Q2068:
TerminateProcess() is typically used to forcefully stop a process.
A. A
B. B
Correct Answer: A
Chapter: 95
Q2069:
ExitProcess() returns control to the calling thread.
A. A
B. B
Correct Answer: B
Chapter: 95
Q2070:
TerminateProcess() should be used with caution.
A. A
B. B
Correct Answer: A
Chapter: 95
Q2071:
GetExitCodeProcess() requires a handle to the process.
A. A
B. B
Correct Answer: A
Chapter: 95
Q2072:
STILL_ACTIVE is a possible result of GetExitCodeProcess().
A. A
B. B
Correct Answer: A
Chapter: 95
Q2073:
TerminateProcess() immediately frees all allocated memory of the process.
A. A
B. B
Correct Answer: B
Chapter: 95
Q2074:
The use of ExitProcess() is recommended for proper resource release.
A. A
B. B
Correct Answer: B
Chapter: 95
Q2075:
Before exiting a process, all open handles should be ______.
A. duplicated
B. transferred
C. closed
D. referenced
Correct Answer: C
Chapter: 95
Q2076:
ExitProcess() should preferably be used with ______.
A. exceptions
B. critical sections
C. scheduling
D. flags
Correct Answer: A
Chapter: 95
Q2077:
Which function retrieves the exit status of a process?
A. TerminateProcess()
B. ExitProcess()
C. GetProcessStatus()
D. GetExitCodeProcess()
Correct Answer: D
Chapter: 95
Q2078:
Calling TerminateProcess() prevents execution of ______.
A. access checks
B. any DLL unload
C. Exit handlers
D. resource recovery
Correct Answer: B
Chapter: 95
Q2079:
The value STILL_ACTIVE indicates that the process is ______.
A. suspended
B. still running
C. terminated
D. paused
Correct Answer: B
Chapter: 95
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
Correct Answer: C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now