Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Chapter: 108
Q2401:
Which flag is used to terminate a process by generating a Ctrl-C event?
A. -c
B. =-b
C. =-s
D. =-p
Correct Answer: A
Chapter: 108
Q2402:
The JobShell program uses which structure to hold process time limits?
A. JOBOBJECT_BASIC_LIMIT_INFORMATION
B. PROCESS_INFORMATION
C. STARTUPINFO
D. TCHAR
Correct Answer: B
Chapter: 108
Q2403:
The Job Object is closed using the function ________.
A. CloseHandle
B. TerminateProcess
C. OpenProcess
D. CreateJobObject
Correct Answer: A
Chapter: 108
Q2404:
In the Jobbg function, which flag indicates a detached process?
A. -c
B. =-d
C. =-t
D. =-s
Correct Answer: B
Chapter: 108
Q2405:
Which function resumes the suspended process thread in Jobbg?
A. ResumeThread
B. SuspendThread
C. TerminateProcess
D. CreateProcess
Correct Answer: A
Chapter: 108
Q2406:
What does the Jobs command display about processes?
A. Total, active, terminated counts
B. Process memory usage
C. Process CPU usage
D. Process creation times
Correct Answer: A
Chapter: 108
Q2407:
Process termination in the Kill command uses which function?
A. TerminateProcess
B. CloseHandle
C. OpenProcess
D. ResumeThread
Correct Answer: A
Chapter: 108
Q2408:
The Kill command can generate which console control signals?
A. Ctrl-Break and Ctrl-C
B. Alt-Tab and Ctrl-C
C. Ctrl-Alt-Delete and Ctrl-Break
D. None
Correct Answer: A
Chapter: 108
Q2409:
The process ID associated with a job is found using which function?
A. FindProcessId
B. GetJobNumber
C. AssignProcessToJobObject
D. OpenProcess
Correct Answer: A
Chapter: 108
Q2410:
When creating a process, which flag runs the process suspended initially?
A. CREATE_SUSPENDED
B. CREATE_NEW_CONSOLE
C. DETACHED_PROCESS
D. CREATE_NEW_PROCESS_GROUP
Correct Answer: A
Chapter: 108
Q2411:
What does _ttoi function do in the program?
A. Converts string to integer
B. Converts integer to string
C. Opens a process
D. Terminates a process
Correct Answer: A
Chapter: 108
Q2412:
What does the function GetArgs do in the JobShell program?
A. Parses command line arguments
B. Creates a new process
C. Terminates a process
D. Resumes a thread
Correct Answer: A
Chapter: 108
Q2413:
Which macro defines one million in the program?
A. MILLION
B. MIL
C. MIO
D. ONE_MILLION
Correct Answer: A
Chapter: 109
Q2414:
A thread is an independent unit of ______ within a process.
A. execution
B. memory
C. storage
D. network
Correct Answer: A
Chapter: 109
Q2415:
In a multi-threaded system, multiple threads may exist within a single ______.
A. process
B. thread
C. function
D. module
Correct Answer: A
Chapter: 109
Q2416:
One challenge in multi-threaded systems is ______ and coordinating multiple threads.
A. organizing
B. ignoring
C. deleting
D. saving
Correct Answer: A
Chapter: 109
Q2417:
Using threads can simplify certain ______ problems.
A. programming
B. networking
C. marketing
D. sales
Correct Answer: A
Chapter: 109
Q2418:
Single-threaded processes running concurrently usually have the disadvantage of time-consuming and expensive ______ among processes.
A. switching
B. sharing
C. coding
D. compiling
Correct Answer: A
Chapter: 109
Q2419:
Threads allow concurrent processing of the same ______, reducing overheads.
A. function
B. memory
C. disk
D. network
Correct Answer: A
Chapter: 109
Q2420:
Independent processes are usually not tightly ______, making resource sharing difficult.
A. coupled
B. linked
C. separated
D. encrypted
Correct Answer: A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now