Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q1851: What happens if CREATE_NEW_CONSOLE is used?
  • A: Process runs in background
  • B: Process inherits parent console
  • C: Process runs without a console
  • D: Process starts with its own new console
View Answer
D

Q1852: Which two flags in CreateProcess() are mutually exclusive?
  • A: CREATE_SUSPENDED and CREATE_NEW_CONSOLE
  • B: CREATE_NEW_PROCESS_GROUP and CREATE_SUSPENDED
  • C: CREATE_NEW_CONSOLE and DETACHED_PROCESS
  • D: CREATE_UNICODE_ENVIRONMENT and CREATE_SUSPENDED
View Answer
C

Q1853: CREATE_NEW_PROCESS_GROUP indicates:
  • A: A consoleless process
  • B: The process is part of existing group
  • C: A thread-only execution
  • D: The process starts a new group of processes
View Answer
D

Q1854: If lpEnvironment is NULL, what environment is used for the new process?
  • A: System default
  • B: Empty environment
  • C: Parent’s environment
  • D: Windows kernel environment
View Answer
C

Q1855: lpCurrentDirectory parameter specifies:
  • A: Process memory
  • B: Drive and directory of the new process
  • C: Command line
  • D: Path to DLLs
View Answer
B

Q1856: lpStartupInfo specifies the ______ of the new process.
  • A: CPU priority
  • B: Device manager
  • C: Main window appearance and device handles
  • D: Error handler
View Answer
C

Q1857: lpProcessAttributes and lpThreadAttributes define:
  • A: Thread IDs only
  • B: Process execution context only
  • C: Security attributes of process and thread
  • D: Heap memory
View Answer
C

Q1858: Closing the thread handle will:
  • A: Terminate the thread
  • B: Delete the reference to the thread
  • C: Remove the entire process
  • D: Close all threads in the process
View Answer
B

Q1859: Which parameter indicates Unicode usage in environment?
  • A: CREATE_UNICODE_ENVIRONMENT
  • B: CREATE_NEW_CONSOLE
  • C: CREATE_NEW_PROCESS_GROUP
  • D: DETACHED_PROCESS
View Answer
A

Q1860: lpProcInfo contains:
  • A: Process handles only
  • B: Process and thread handles and IDs
  • C: Only thread data
  • D: Console handler
View Answer
B

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now