Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Chapter: 92
Q1961:
STARTUPINFO is a part of ______ API.
A. CreateThread()
B. CreateProcess()
C. GetProcessInfo()
D. StartProgram()
Correct Answer: B
Chapter: 92
Q1962:
Text-converted file handles passed to the child process are handled via ______.
A. environment variables
B. command-line parsing
C. IPC services
D. handle tables
Correct Answer: B
Chapter: 92
Q1963:
Handles inherited and passed properly are considered ______.
A. volatile
B. volatile permanent
C. process-local
D. safe for concurrent access
Correct Answer: D
Chapter: 92
Q1964:
If two processes use the same inherited handle, they can still have different ______.
A. permissions
B. file access modes
C. file pointers
D. owners
Correct Answer: C
Chapter: 92
Q1965:
Child processes must always manually create new handles.
A. A
B. B
Correct Answer: B
Chapter: 92
Q1966:
STARTUPINFO allows redirection of IO handles like input/output streams.
A. A
B. B
Correct Answer: A
Chapter: 92
Q1967:
Handles passed via command line must be converted into strings.
A. A
B. B
Correct Answer: A
Chapter: 92
Q1968:
Inheritable handles do not guarantee accessibility if not passed correctly.
A. A
B. B
Correct Answer: A
Chapter: 92
Q1969:
Child processes always share the same pointer location for inherited handles.
A. A
B. B
Correct Answer: B
Chapter: 92
Q1970:
Parent must keep all handles open until the child process exits.
A. A
B. B
Correct Answer: B
Chapter: 92
Q1971:
STARTUPINFO eliminates the need for code modification in the child process.
A. A
B. B
Correct Answer: A
Chapter: 92
Q1972:
InterProcess Communication can be used to pass handles indirectly.
A. A
B. B
Correct Answer: A
Chapter: 92
Q1973:
If both parent and child forget to close inherited handles, it can cause a handle leak.
A. A
B. B
Correct Answer: A
Chapter: 93
Q1974:
What structure contains the identity of a newly created process?
A. PROCESS_ID
B. PROCESS_HANDLE
C. PROCESS_INFORMATION
D. PROCESS_HEADER
Correct Answer: C
Chapter: 93
Q1975:
Which function is used to retrieve the current process handle?
A. GetProcessId()
B. GetHandle()
C. GetCurrentProcess()
D. OpenProcess()
Correct Answer: C
Chapter: 93
Q1976:
Which function provides the process ID of the current process?
A. GetModuleFileName()
B. GetCurrentProcessId()
C. GetThreadId()
D. OpenProcess()
Correct Answer: B
Chapter: 93
Q1977:
A pseudohandle returned by GetCurrentProcess() is ______.
A. inheritable
B. not inheritable
C. inheritable with access rights
D. always null
Correct Answer: B
Chapter: 93
Q1978:
What does OpenProcess() require as an argument to obtain a handle?
A. Thread ID
B. Module name
C. Process ID
D. Executable name
Correct Answer: C
Chapter: 93
Q1979:
The flag bInheritHandle in OpenProcess() specifies ______.
A. file permissions
B. whether the handle is inheritable
C. thread priority
D. security level
Correct Answer: B
Chapter: 93
Q1980:
What does the SYCHRONIZE access flag allow?
A. File handling
B. Process synchronization
C. Memory mapping
D. Thread access
Correct Answer: B

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now