Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Chapter: 88
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
Correct Answer: C
Chapter: 88
Q1842:
Which structure contains the two returned handles from CreateProcess()?
A. THREAD_INFORMATION
B. STARTUPINFO
C. PROCESS_CONTEXT
D. PROCESS_INFORMATION
Correct Answer: D
Chapter: 88
Q1843:
CreateProcess() function can be used to create a process with how many primary threads?
A. One
B. Two
C. Three
D. Four
Correct Answer: A
Chapter: 88
Q1844:
Windows maintains a strict parent-child process structure.
A. A
B. B
Correct Answer: B
Chapter: 88
Q1845:
The parent process is defined as the process that creates a child process.
A. A
B. B
Correct Answer: A
Chapter: 88
Q1846:
How many parameters does CreateProcess() take?
A. 8
B. 10
C. 6
D. 12
Correct Answer: B
Chapter: 88
Q1847:
Which parameter in CreateProcess() specifies the application to execute?
A. lpEnvironment
B. lpStartupInfo
C. lpApplicationName
D. lpProcInfo
Correct Answer: C
Chapter: 88
Q1848:
lpCommandLine is used to pass _______ to the process.
A. File descriptor
B. Environment variables
C. Command line parameters
D. Thread priorities
Correct Answer: C
Chapter: 88
Q1849:
Which parameter in CreateProcess() specifies whether handles are inherited?
A. lpThreadAttributes
B. lpProcInfo
C. bInheritHandles
D. dwCreationFlags
Correct Answer: C
Chapter: 88
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
Correct Answer: C
Chapter: 88
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
Correct Answer: D
Chapter: 88
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
Correct Answer: C
Chapter: 88
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
Correct Answer: D
Chapter: 88
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
Correct Answer: C
Chapter: 88
Q1855:
lpCurrentDirectory parameter specifies:
A. Process memory
B. Drive and directory of the new process
C. Command line
D. Path to DLLs
Correct Answer: B
Chapter: 88
Q1856:
lpStartupInfo specifies the ______ of the new process.
A. CPU priority
B. Device manager
C. Main window appearance and device handles
D. Error handler
Correct Answer: C
Chapter: 88
Q1857:
lpProcessAttributes and lpThreadAttributes define:
A. Thread IDs only
B. Process execution context only
C. Security attributes of process and thread
D. Heap memory
Correct Answer: C
Chapter: 88
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
Correct Answer: B
Chapter: 88
Q1859:
Which parameter indicates Unicode usage in environment?
A. CREATE_UNICODE_ENVIRONMENT
B. CREATE_NEW_CONSOLE
C. CREATE_NEW_PROCESS_GROUP
D. DETACHED_PROCESS
Correct Answer: A
Chapter: 88
Q1860:
lpProcInfo contains:
A. Process handles only
B. Process and thread handles and IDs
C. Only thread data
D. Console handler
Correct Answer: B

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now