System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Chapter: 104
Q2321:
_fgetts(command, MAX_COMMAND_LINE, stdin) reads input from the _______.
A. standard input
B. file
C. system
D. event
Correct Answer:
A
Chapter: 104
Q2322:
The function GetArgs() is used to _______.
A. parse command line arguments
B. create new job
C. list jobs
D. kill job
Correct Answer:
A
Chapter: 104
Q2323:
The command quit causes the shell to _______.
A. exit
B. terminate a job
C. list jobs
D. run a background job
Correct Answer:
A
Chapter: 104
Q2324:
_charLower(argstr[0]) converts the command to _______.
A. lowercase
B. uppercase
C. hexadecimal
D. binary
Correct Answer:
A
Chapter: 104
Q2325:
If the input command is not recognized, the shell outputs _______.
A. Illegal command. Try again.
B. Unknown command.
C. Exit command.
D. Invalid syntax.
Correct Answer:
A
Chapter: 104
Q2326:
The shell closes the job object handle using _______.
A. CloseHandle
B. ReleaseJob
C. CloseJob
D. DestroyHandle
Correct Answer:
A
Chapter: 104
Q2327:
Job shell is written in _______ programming language.
A. C
B. C++
C. Java
D. Python
Correct Answer:
A
Chapter: 104
Q2328:
The job shell requires Windows version _______ or greater.
A. NT 3.1
B. 95
C. XP
D. 7
Correct Answer:
A
Chapter: 104
Q2329:
In the job shell, process time limit is stored in the structure _______.
A. JOBOBJECT_BASIC_LIMIT_INFORMATION
B. PROCESS_TIME
C. THREAD_INFO
D. JOB_TIME
Correct Answer:
A
Chapter: 104
Q2330:
The job shell uses the _______ API for job object management.
A. Windows
B. Unix
C. Linux
D. MacOS
Correct Answer:
A
Chapter: 104
Q2331:
The argument argc represents the number of _______.
A. command line arguments
B. jobs
C. processes
D. threads
Correct Answer:
A
Chapter: 104
Q2332:
The argument argv stores the _______.
A. command line arguments
B. process IDs
C. job IDs
D. thread IDs
Correct Answer:
A
Chapter: 104
Q2333:
The job shell allows running commands in the _______.
A. background
B. foreground
C. thread
D. session
Correct Answer:
A
Chapter: 104
Q2334:
The kill command in job shell terminates a job from the _______.
A. job family
B. process group
C. thread pool
D. process list
Correct Answer:
A
Chapter: 104
Q2335:
Concurrency issues arise because several shells try to use the same _______.
A. file
B. handle
C. process
D. shared memory
Correct Answer:
A
Chapter: 104
Q2336:
If the time limit is set in argv[1], it is converted using the function _______.
A. _ttoi
B. atoi
C. strtol
D. strcmp
Correct Answer:
A
Chapter: 105
Q2337:
The function used to list all background jobs in the job management system is _______.
A. DisplayJobs()
B. RunJobs()
C. JobList()
D. ShowJobs()
Correct Answer:
A
Chapter: 105
Q2338:
Which Windows API function opens the job management file for reading and writing?
A. CreateFile()
B. OpenFile()
C. ReadFile()
D. LockFile()
Correct Answer:
A
Chapter: 105
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
Correct Answer:
B
Chapter: 105
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
Correct Answer:
C