System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q2371: The parameter 'jobNumber' in FindProcessId() indicates the _______.
- A: Job ID
- B: Process ID
- C: Record number
- D: File size
View Answer
C
Q2372: What value does FindProcessId() return?
- A: Process ID
- B: Job Number
- C: Exit code
- D: File handle
View Answer
A
Q2373: Windows job objects allow grouping of multiple _______.
- A: threads
- B: files
- C: processes
- D: memory blocks
View Answer
C
Q2374: Which Windows API function is used to create a job object?
- A: CreateProcess()
- B: CreateJobObject()
- C: OpenJobObject()
- D: AssignProcessToJobObject()
View Answer
B
Q2375: Once a job object is created, the function used to assign a process to it is _______.
- A: CreateProcess()
- B: AssignProcessToJobObject()
- C: SetInformationJobObject()
- D: CloseHandle()
View Answer
B
Q2376: The function used to open an existing named job object is _______.
- A: CreateJobObject()
- B: OpenJobObject()
- C: CloseHandle()
- D: SetInformationJobObject()
View Answer
B
Q2377: To close a job object handle, the function _______ is used.
- A: CloseJobObject()
- B: CloseHandle()
- C: ReleaseJobObject()
- D: DestroyHandle()
View Answer
B
Q2378: Child processes of a process assigned to a job object are automatically assigned to the same job object unless the _______ flag is used.
- A: CREATE_BREAKAWAY_FROM_JOB
- B: CREATE_NEW_PROCESS_GROUP
- C: CREATE_SUSPENDED
- D: CREATE_NO_WINDOW
View Answer
A
Q2379: SetInformationJobObject() is used to _______.
- A: Create a job object
- B: Assign a process to job object
- C: Set resource limits on job object
- D: Close a job object
View Answer
C
Q2380: Which parameter of SetInformationJobObject() specifies the limit type like working set size or priority?
- A: hJob
- B: lpJobObjectInformation
- C: JobObjectInformationClass
- D: cbJobObjectInformationLength
View Answer
C