System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q2401: Which flag is used to terminate a process by generating a Ctrl-C event?
- A: -c
- B: =-b
- C: =-s
- D: =-p
View Answer
A
Q2402: The JobShell program uses which structure to hold process time limits?
- A: JOBOBJECT_BASIC_LIMIT_INFORMATION
- B: PROCESS_INFORMATION
- C: STARTUPINFO
- D: TCHAR
View Answer
B
Q2403: The Job Object is closed using the function ________.
- A: CloseHandle
- B: TerminateProcess
- C: OpenProcess
- D: CreateJobObject
View Answer
A
Q2404: In the Jobbg function, which flag indicates a detached process?
- A: -c
- B: =-d
- C: =-t
- D: =-s
View Answer
B
Q2405: Which function resumes the suspended process thread in Jobbg?
- A: ResumeThread
- B: SuspendThread
- C: TerminateProcess
- D: CreateProcess
View Answer
A
Q2406: What does the Jobs command display about processes?
- A: Total, active, terminated counts
- B: Process memory usage
- C: Process CPU usage
- D: Process creation times
View Answer
A
Q2407: Process termination in the Kill command uses which function?
- A: TerminateProcess
- B: CloseHandle
- C: OpenProcess
- D: ResumeThread
View Answer
A
Q2408: The Kill command can generate which console control signals?
- A: Ctrl-Break and Ctrl-C
- B: Alt-Tab and Ctrl-C
- C: Ctrl-Alt-Delete and Ctrl-Break
- D: None
View Answer
A
Q2409: The process ID associated with a job is found using which function?
- A: FindProcessId
- B: GetJobNumber
- C: AssignProcessToJobObject
- D: OpenProcess
View Answer
A
Q2410: When creating a process, which flag runs the process suspended initially?
- A: CREATE_SUSPENDED
- B: CREATE_NEW_CONSOLE
- C: DETACHED_PROCESS
- D: CREATE_NEW_PROCESS_GROUP
View Answer
A