System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q2291: The dwProcessGroupId parameter in GenerateConsoleCtrlEvent() represents the _______.
- A: process group ID
- B: thread ID
- C: process ID
- D: session ID
View Answer
A
Q2292: A console control event handler usually generates an _______.
- A: exception
- B: thread
- C: handle
- D: process
View Answer
A
Q2293: The flag CREATE_NEW_PROCESS_GROUP allows grouping processes under a _______.
- A: root process
- B: group leader
- C: process manager
- D: session leader
View Answer
A
Q2294: Sending CTRL_C_EVENT to a process group will signal _______.
- A: all processes in the group
- B: only the root process
- C: only child processes
- D: only the current process
View Answer
A
Q2295: The main use of GenerateConsoleCtrlEvent() is to _______.
- A: send console signals
- B: terminate threads
- C: create new processes
- D: log system events
View Answer
A
Q2296: The handler that catches console control events is usually set up in the _______.
- A: process
- B: console
- C: session
- D: thread
View Answer
A
Q2297: When a console control event is generated, the handler _______.
- A: catches the event
- B: generates a new process
- C: ignores the event
- D: terminates immediately
View Answer
A
Q2298: CTRL_C_EVENT is used to _______.
- A: interrupt the process
- B: terminate the process
- C: wait for input
- D: close the console
View Answer
A
Q2299: In the context of process management, SEH stands for _______.
- A: Structured Exception Handling
- B: Simple Event Handler
- C: System Exception Handler
- D: Special Event Handler
View Answer
A
Q2300: Processes in the same group communicate by sending _______.
- A: console control events
- B: signals
- C: messages
- D: interrupts
View Answer
A