Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q1981: Which access right allows termination of a process?
  • A: PROCESS_QUERY_INFORMATION
  • B: PROCESS_ALL_ACCESS
  • C: PROCESS_TERMINATE
  • D: SYNCHRONIZE
View Answer
C

Q1982: Which function returns a pseudohandle to the current process?
  • A: GetProcessId()
  • B: OpenProcess()
  • C: GetCurrentProcessId()
  • D: GetCurrentProcess()
View Answer
D

Q1983: Which of the following is TRUE about a pseudohandle?
  • A: It can be passed to a child process
  • B: It represents any process
  • C: It is not inheritable
  • D: It is always invalid
View Answer
C

Q1984: The process handle obtained using OpenProcess() can be used to ______.
  • A: restart OS
  • B: allocate memory
  • C: send signals
  • D: terminate the process
View Answer
D

Q1985: PROCESS_QUERY_INFORMATION is used to ______.
  • A: create new processes
  • B: query process info
  • C: delete process memory
  • D: access kernel modules
View Answer
B

Q1986: The last parameter of CreateProcess() stores ______.
  • A: Thread info
  • B: Command line args
  • C: Process information
  • D: Executable file path
View Answer
C

Q1987: What is required to get the executable file path of a process?
  • A: GetCurrentProcessId()
  • B: GetModuleFileName()
  • C: GetHandle()
  • D: TerminateProcess()
View Answer
B

Q1988: To retrieve the path of a module in another process, we use ______.
  • A: GetModuleFileName()
  • B: GetModuleFileNameEx()
  • C: GetPath()
  • D: GetCurrentDirectory()
View Answer
B

Q1989: Closing the process handle in PROCESS_INFORMATION ______.
  • A: destroys the process
  • B: prevents memory leaks
  • C: closes parent’s access to child process
  • D: prevents thread access
View Answer
C

Q1990: GetCurrentProcessId() returns a ______.
  • A: handle to the process
  • B: thread pointer
  • C: current process ID
  • D: function address
View Answer
C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now