Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q2001: SYCHRONIZE access right enables thread suspension.
  • A: A
  • B: B
  • C:
  • D:
View Answer
B

Q2002: PROCESS_QUERY_INFORMATION allows inspection of process attributes.
  • A: A
  • B: B
  • C:
  • D:
View Answer
A

Q2003: bInheritHandle in OpenProcess() determines handle inheritance by child processes.
  • A: A
  • B: B
  • C:
  • D:
View Answer
A

Q2004: The CreateProcess() function initializes PROCESS_INFORMATION as its last parameter.
  • A: A
  • B: B
  • C:
  • D:
View Answer
A

Q2005: The process ID can be retrieved using ______.
  • A: GetThreadId()
  • B: GetCurrentProcessId()
  • C: GetParentProcessId()
  • D: GetStartupInfo()
View Answer
B

Q2006: The function ______ allows retrieving the executable path of the running process.
  • A: GetModuleFileName()
  • B: GetParentHandle()
  • C: OpenProcessId()
  • D: GetFileAttributes()
View Answer
A

Q2007: PROCESS_TERMINATE grants permission to ______.
  • A: change thread priority
  • B: query file path
  • C: terminate the process
  • D: read memory
View Answer
C

Q2008: A handle with PROCESS_QUERY_INFORMATION can be used to ______.
  • A: write to memory
  • B: terminate process
  • C: create threads
  • D: query process details
View Answer
D

Q2009: What function is used to create duplicate handles in Windows?
  • A: CreateHandle()
  • B: DuplicateHandle()
  • C: CopyHandle()
  • D: ReplicateHandle()
View Answer
B

Q2010: Which parameter in DuplicateHandle() is used to specify the source process?
  • A: hSourceHandle
  • B: hSourceProcessHandle
  • C: hTargetProcessHandle
  • D: lpTargetHandle
View Answer
B

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now