System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q2331: The argument argc represents the number of _______.
- A: command line arguments
- B: jobs
- C: processes
- D: threads
View Answer
A
Q2332: The argument argv stores the _______.
- A: command line arguments
- B: process IDs
- C: job IDs
- D: thread IDs
View Answer
A
Q2333: The job shell allows running commands in the _______.
- A: background
- B: foreground
- C: thread
- D: session
View Answer
A
Q2334: The kill command in job shell terminates a job from the _______.
- A: job family
- B: process group
- C: thread pool
- D: process list
View Answer
A
Q2335: Concurrency issues arise because several shells try to use the same _______.
- A: file
- B: handle
- C: process
- D: shared memory
View Answer
A
Q2336: If the time limit is set in argv[1], it is converted using the function _______.
- A: _ttoi
- B: atoi
- C: strtol
- D: strcmp
View Answer
A
Q2337: The function used to list all background jobs in the job management system is _______.
- A: DisplayJobs()
- B: RunJobs()
- C: JobList()
- D: ShowJobs()
View Answer
A
Q2338: Which Windows API function opens the job management file for reading and writing?
- A: CreateFile()
- B: OpenFile()
- C: ReadFile()
- D: LockFile()
View Answer
A
Q2339: What kind of lock is applied on the job management file during job status updates?
- A: Shared lock
- B: Exclusive lock
- C: No lock
- D: Read lock
View Answer
B
Q2340: In the job listing function, the variable 'jobNumber' is used to track the _______.
- A: Total number of jobs
- B: Read records
- C: Job index
- D: Number of active processes
View Answer
C