Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q2381: Job objects help maintain _______ information related to the grouped processes.
  • A: Resource allocation
  • B: Memory usage
  • C: Accounting
  • D: Network usage
View Answer
C

Q2382: AssignProcessToJobObject() returns a _______ indicating success or failure.
  • A: BOOL
  • B: DWORD
  • C: HANDLE
  • D: VOID
View Answer
A

Q2383: Which of the following is NOT controlled by JobObjectInformationClass in SetInformationJobObject()?
  • A: Process priority
  • B: Working set limit
  • C: Network bandwidth
  • D: Processor affinity
View Answer
C

Q2384: If a job object limits the number of active processes, this setting is controlled via _______.
  • A: JobObjectBasicLimitInformation
  • B: JobObjectExtendedLimitInformation
  • C: JobObjectLimitActiveProcesses
  • D: JobObjectProcessLimit
View Answer
C

Q2385: The type HANDLE in WinAPI generally represents a _______.
  • A: Pointer
  • B: Resource identifier
  • C: Integer
  • D: String
View Answer
B

Q2386: Which function would you use to check resource limits of a job object?
  • A: QueryInformationJobObject()
  • B: SetInformationJobObject()
  • C: OpenJobObject()
  • D: CloseHandle()
View Answer
A

Q2387: A job object can be used to specify limits on all EXCEPT _______.
  • A: Processor affinity
  • B: Network speed
  • C: Per process time
  • D: Active processes
View Answer
B

Q2388: What is the purpose of using Job Objects in the Windows program example?
  • A: To limit process execution time
  • B: To enhance graphics performance
  • C: To increase network speed
  • D: To manage memory allocation
View Answer
A

Q2389: Which argument specifies the time limit for a process in the JobShell program?
  • A: argv[0]
  • B: argv[1]
  • C: argv[2]
  • D: argv[3]
View Answer
B

Q2390: In the JobShell program, what does passing 0 or omitting the time limit argument do?
  • A: Terminate process
  • B: No process time limit
  • C: Restart process
  • D: Log process time
View Answer
B

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now