Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Chapter: 103
Q2301:
When a process is created with CREATE_NEW_CONSOLE, it has a _______.
A. separate console
B. shared console
C. no console
D. virtual console
Correct Answer: A
Chapter: 103
Q2302:
The flag DETACHED_PROCESS causes a process to run without _______.
A. a console
B. a thread
C. a process
D. an event handler
Correct Answer: A
Chapter: 104
Q2303:
The Simple Job Management Shell supports the commands jobbg, jobs, and _______.
A. kill
B. stop
C. start
D. exit
Correct Answer: C
Chapter: 104
Q2304:
The shell keeps track of process ID and related information using a _______.
A. user-specific file
B. system log
C. memory buffer
D. database
Correct Answer: A
Chapter: 104
Q2305:
Several shells running concurrently accessing the same file can cause _______ issues.
A. concurrency
B. security
C. performance
D. compatibility
Correct Answer: A
Chapter: 104
Q2306:
File locking is used in the job shell to ensure _______ access to the shared file.
A. mutually exclusive
B. parallel
C. concurrent
D. random
Correct Answer: A
Chapter: 104
Q2307:
The command jobbg in the job shell is used to _______.
A. run a job in the background
B. list all jobs
C. terminate a job
D. quit the shell
Correct Answer: A
Chapter: 104
Q2308:
The jobs command lists _______.
A. all background jobs
B. all processes
C. all running threads
D. all terminated jobs
Correct Answer: A
Chapter: 104
Q2309:
The kill command is used to _______.
A. terminate a specified job
B. run a new job
C. list jobs
D. quit the shell
Correct Answer: A
Chapter: 104
Q2310:
The job shell parses the _______ and calls the respective function.
A. command line
B. source code
C. process ID
D. job ID
Correct Answer: A
Chapter: 104
Q2311:
The time limit for each process, if specified, is passed as _______.
A. argv[1]
B. argv[0]
C. argv[2]
D. argc
Correct Answer: A
Chapter: 104
Q2312:
If the time limit argument is zero or omitted, the process runs _______.
A. without a time limit
B. with default limit
C. for 1 second
D. only once
Correct Answer: A
Chapter: 104
Q2313:
The macro MILLION is defined as _______.
A. 1000000
B. 1000
C. 1024
D. 1000000000
Correct Answer: A
Chapter: 104
Q2314:
The Jobbg function prototype is: static int Jobbg (int, LPTSTR *, _______);
A. jobs
B. kill
C. command
D. line
Correct Answer: C
Chapter: 104
Q2315:
The job shell program uses CreateJobObject() to create a _______.
A. job object
B. process
C. thread
D. event
Correct Answer: A
Chapter: 104
Q2316:
If CreateJobObject() returns NULL, it indicates _______.
A. error creating job object
B. success
C. job completion
D. timeout
Correct Answer: A
Chapter: 104
Q2317:
SetInformationJobObject() is called to set _______ on the job object.
A. information
B. priority
C. security
D. handles
Correct Answer: A
Chapter: 104
Q2318:
The exitFlag variable is used to control the _______ of the shell.
A. termination
B. creation
C. pause
D. resume
Correct Answer: A
Chapter: 104
Q2319:
The job shell waits for user commands in a loop until _______ is TRUE.
A. exitFlag
B. argc
C. command
D. line
Correct Answer: B
Chapter: 104
Q2320:
_tprintf(_T("JM$")) is used to display the _______.
A. command prompt
B. error message
C. status
D. message
Correct Answer: A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now