Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q2351: The job listing function returns FALSE when the job file cannot be _______.
  • A: Opened
  • B: Created
  • C: Deleted
  • D: Locked
View Answer
A

Q2352: Which function unlocks the job file after processing in the job listing system?
  • A: UnlockFileEx()
  • B: UnlockFile()
  • C: CloseHandle()
  • D: ReleaseLock()
View Answer
A

Q2353: The flags FILE_SHARE_READ | FILE_SHARE_WRITE allow _______ access to the job file.
  • A: Read only
  • B: Write only
  • C: Read and write
  • D: No access
View Answer
C

Q2354: What does the variable 'nXfer' represent in the job listing function?
  • A: Number of bytes transferred
  • B: Process ID
  • C: Number of jobs
  • D: Job exit code
View Answer
A

Q2355: The main purpose of DisplayJobs() is to _______.
  • A: List jobs
  • B: Terminate jobs
  • C: Create jobs
  • D: Update jobs
View Answer
A

Q2356: If a job has exit code STILL_ACTIVE, the job status displayed is _______.
  • A: =+ Done
  • B: Done
  • C: Running
  • D: Waiting
View Answer
C

Q2357: What is performed inside the try block in the DisplayJobs function?
  • A: Lock file
  • B: Read job records
  • C: Close process handles
  • D: Delete job file
View Answer
B

Q2358: The function used to obtain the process ID of a given job number is _______.
  • A: FindProcessId()
  • B: DisplayJobs()
  • C: GetProcessID()
  • D: FindJob()
View Answer
A

Q2359: FindProcessId() opens the job management file with _______ access.
  • A: GENERIC_WRITE
  • B: GENERIC_READ
  • C: GENERIC_READ_WRITE
  • D: GENERIC_EXECUTE
View Answer
B

Q2360: Which API function is used to open the job data file in FindProcessId()?
  • A: CreateFile()
  • B: OpenFile()
  • C: ReadFile()
  • D: WriteFile()
View Answer
A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now