System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q2341: If a process ID in the job record is 0, the function will _______.
- A: Terminate the process
- B: Skip the record
- C: Mark the job done
- D: Restart the process
View Answer
B
Q2342: What is the purpose of OpenProcess in the job listing function?
- A: To create a new process
- B: To get access to a process
- C: To kill a process
- D: To list process threads
View Answer
B
Q2343: When GetExitCodeProcess returns a value different from STILL_ACTIVE, it means the job is _______.
- A: Running
- B: Waiting
- C: Completed
- D: Paused
View Answer
C
Q2344: The job management shell handles jobs that no longer exist in the system by _______.
- A: Reactivating them
- B: Removing them
- C: Making them background
- D: Restarting them
View Answer
B
Q2345: Which Windows API function is used to move the file pointer backward to update a job record?
- A: SetFilePointer()
- B: SetFilePointerEx()
- C: MoveFile()
- D: SeekFile()
View Answer
A
Q2346: LOCKFILE_EXCLUSIVE_LOCK ensures _______ to the job file.
- A: Multiple access
- B: Exclusive access
- C: No access
- D: Read-only access
View Answer
B
Q2347: If the job process handle is NULL, the job status displayed will be _______.
- A: Done
- B: Running
- C: Waiting
- D: Unknown
View Answer
A
Q2348: What happens if WriteFile fails when rewriting the job record?
- A: Error is reported
- B: The job is deleted
- C: The job is restarted
- D: Nothing happens
View Answer
A
Q2349: Which data structure stores job information during processing in the job listing function?
- A: JM_JOB
- B: JobData
- C: JobRecord
- D: JobList
View Answer
A
Q2350: How does the job listing function ensure thread safety when multiple shells access the job file?
- A: Using mutex
- B: Using file locking
- C: Using semaphore
- D: No safety mechanism
View Answer
B