Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q1861: lpStartupInfo cannot be NULL.
  • A: A
  • B: B
  • C:
  • D:
View Answer
B

Q1862: Setting bInheritHandles to TRUE allows:
  • A: Thread termination
  • B: Process scheduling
  • C: Inheriting of parent's handles
  • D: Creation of child threads
View Answer
C

Q1863: The child process inherits all parent process attributes by default.
  • A: A
  • B: B
  • C:
  • D:
View Answer
B

Q1864: lpProcessAttributes and lpThreadAttributes are both optional.
  • A: A
  • B: B
  • C:
  • D:
View Answer
A

Q1865: Which of the following CreateProcess flags starts the process without a console window?
  • A: CREATE_NEW_CONSOLE
  • B: CREATE_SUSPENDED
  • C: CREATE_UNICODE_ENVIRONMENT
  • D: DETACHED_PROCESS
View Answer
D

Q1866: ResumeThread() is called to:
  • A: Terminate suspended thread
  • B: Start a suspended thread
  • C: Restart a failed process
  • D: Stop thread execution
View Answer
B

Q1867: The command line of a process is specified by ______ in CreateProcess.
  • A: lpApplicationName
  • B: lpCommandLine
  • C: lpStartupInfo
  • D: lpEnvironment
View Answer
B

Q1868: Process IDs are ______ for the entire lifetime of the process.
  • A: temporary
  • B: shared
  • C: unique
  • D: variable
View Answer
C

Q1869: What happens to a process ID when the process is destroyed?
  • A: It is deleted permanently
  • B: It is invalidated
  • C: It is stored in logs
  • D: It causes an error
View Answer
B

Q1870: Can a process ID be reused by a newly created process?
  • A: No
  • B: Yes, immediately
  • C: Yes, but only after destruction
  • D: Only by system processes
View Answer
C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now