System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q1971: STARTUPINFO eliminates the need for code modification in the child process.
- A: A
- B: B
- C:
- D:
View Answer
A
Q1972: InterProcess Communication can be used to pass handles indirectly.
- A: A
- B: B
- C:
- D:
View Answer
A
Q1973: If both parent and child forget to close inherited handles, it can cause a handle leak.
- A: A
- B: B
- C:
- D:
View Answer
A
Q1974: What structure contains the identity of a newly created process?
- A: PROCESS_ID
- B: PROCESS_HANDLE
- C: PROCESS_INFORMATION
- D: PROCESS_HEADER
View Answer
C
Q1975: Which function is used to retrieve the current process handle?
- A: GetProcessId()
- B: GetHandle()
- C: GetCurrentProcess()
- D: OpenProcess()
View Answer
C
Q1976: Which function provides the process ID of the current process?
- A: GetModuleFileName()
- B: GetCurrentProcessId()
- C: GetThreadId()
- D: OpenProcess()
View Answer
B
Q1977: A pseudohandle returned by GetCurrentProcess() is ______.
- A: inheritable
- B: not inheritable
- C: inheritable with access rights
- D: always null
View Answer
B
Q1978: What does OpenProcess() require as an argument to obtain a handle?
- A: Thread ID
- B: Module name
- C: Process ID
- D: Executable name
View Answer
C
Q1979: The flag bInheritHandle in OpenProcess() specifies ______.
- A: file permissions
- B: whether the handle is inheritable
- C: thread priority
- D: security level
View Answer
B
Q1980: What does the SYCHRONIZE access flag allow?
- A: File handling
- B: Process synchronization
- C: Memory mapping
- D: Thread access
View Answer
B