System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q1841: What does the CreateProcess() function return?
- A: One process handle
- B: Only a thread handle
- C: Two handles for process and thread
- D: Nothing
View Answer
C
Q1842: Which structure contains the two returned handles from CreateProcess()?
- A: THREAD_INFORMATION
- B: STARTUPINFO
- C: PROCESS_CONTEXT
- D: PROCESS_INFORMATION
View Answer
D
Q1843: CreateProcess() function can be used to create a process with how many primary threads?
- A: One
- B: Two
- C: Three
- D: Four
View Answer
A
Q1844: Windows maintains a strict parent-child process structure.
- A: A
- B: B
- C:
- D:
View Answer
B
Q1845: The parent process is defined as the process that creates a child process.
- A: A
- B: B
- C:
- D:
View Answer
A
Q1846: How many parameters does CreateProcess() take?
- A: 8
- B: 10
- C: 6
- D: 12
View Answer
B
Q1847: Which parameter in CreateProcess() specifies the application to execute?
- A: lpEnvironment
- B: lpStartupInfo
- C: lpApplicationName
- D: lpProcInfo
View Answer
C
Q1848: lpCommandLine is used to pass _______ to the process.
- A: File descriptor
- B: Environment variables
- C: Command line parameters
- D: Thread priorities
View Answer
C
Q1849: Which parameter in CreateProcess() specifies whether handles are inherited?
- A: lpThreadAttributes
- B: lpProcInfo
- C: bInheritHandles
- D: dwCreationFlags
View Answer
C
Q1850: What does CREATE_SUSPENDED flag do in CreateProcess()?
- A: Terminates process
- B: Starts multiple threads
- C: Keeps the primary thread suspended until resumed
- D: Changes priority
View Answer
C