Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Chapter: 107
Q2381:
Job objects help maintain _______ information related to the grouped processes.
A. Resource allocation
B. Memory usage
C. Accounting
D. Network usage
Correct Answer: C
Chapter: 107
Q2382:
AssignProcessToJobObject() returns a _______ indicating success or failure.
A. BOOL
B. DWORD
C. HANDLE
D. VOID
Correct Answer: A
Chapter: 107
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
Correct Answer: C
Chapter: 107
Q2384:
If a job object limits the number of active processes, this setting is controlled via _______.
A. JobObjectBasicLimitInformation
B. JobObjectExtendedLimitInformation
C. JobObjectLimitActiveProcesses
D. JobObjectProcessLimit
Correct Answer: C
Chapter: 107
Q2385:
The type HANDLE in WinAPI generally represents a _______.
A. Pointer
B. Resource identifier
C. Integer
D. String
Correct Answer: B
Chapter: 107
Q2386:
Which function would you use to check resource limits of a job object?
A. QueryInformationJobObject()
B. SetInformationJobObject()
C. OpenJobObject()
D. CloseHandle()
Correct Answer: A
Chapter: 107
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
Correct Answer: B
Chapter: 108
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
Correct Answer: A
Chapter: 108
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]
Correct Answer: B
Chapter: 108
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
Correct Answer: B
Chapter: 108
Q2391:
Which function creates the Job Object in the program?
A. CreateProcess
B. CreateJobObject
C. AssignProcessToJobObject
D. SetInformationJobObject
Correct Answer: B
Chapter: 108
Q2392:
What is the effect of the 'jobbg' command in the JobShell program?
A. Run a job in the background
B. List all jobs
C. Terminate a job
D. Resume a job
Correct Answer: A
Chapter: 108
Q2393:
What does the flag CREATE_NEW_CONSOLE indicate when creating a process?
A. Process runs detached
B. Process runs with new console
C. Process runs suspended
D. Process runs in background
Correct Answer: B
Chapter: 108
Q2394:
Which function is used to assign a process to a Job Object?
A. CreateJobObject
B. AssignProcessToJobObject
C. TerminateProcess
D. ResumeThread
Correct Answer: B
Chapter: 108
Q2395:
Which command lists all running or stopped jobs created by this user?
A. jobbg
B. kill
C. jobs
D. quit
Correct Answer: C
Chapter: 108
Q2396:
What happens if AssignProcessToJobObject fails in Jobbg function?
A. Process continues
B. Process is terminated
C. Process is paused
D. Process is resumed
Correct Answer: B
Chapter: 108
Q2397:
What does the Kill command do in JobShell?
A. Starts a process
B. Terminates a specified job
C. Pauses a job
D. Lists all jobs
Correct Answer: B
Chapter: 108
Q2398:
What does the option '-c' in jobbg command specify?
A. New process is detached
B. Process runs with console
C. Process runs in background
D. Process suspended
Correct Answer: B
Chapter: 108
Q2399:
Which Windows version is required to run this Job Object program?
A. Windows 95
B. Windows NT 3.1 or greater
C. Windows XP
D. Windows 7
Correct Answer: B
Chapter: 108
Q2400:
The process time limit in the program is measured in ________.
A. Milliseconds
B. Seconds
C. Microseconds
D. Minutes
Correct Answer: C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now