Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Chapter: 124
Q2661:
In a multitasking system, processes compete for resources like _______.
A. processor and memory
B. disk space
C. network bandwidth
D. power supply
Correct Answer: A
Chapter: 124
Q2662:
The Windows kernel always runs the ________ priority thread that is ready for execution.
A. highest
B. lowest
C. average
D. normal
Correct Answer: A
Chapter: 124
Q2663:
A thread is not ready if it is ________.
A. waiting
B. running
C. executing
D. ready
Correct Answer: A
Chapter: 124
Q2664:
Threads receive priority relative to their ________.
A. process priority classes
B. CPU speed
C. thread ID
D. memory size
Correct Answer: A
Chapter: 124
Q2665:
Process priority classes are set when processes are created using the ________ API.
A. CreateProcess
B. CreateThread
C. SetPriorityClass
D. GetPriorityClass
Correct Answer: A
Chapter: 124
Q2666:
The lowest priority process class is ________.
A. IDLE_PRIORITY_CLASS
B. NORMAL_PRIORITY_CLASS
C. HIGH_PRIORITY_CLASS
D. REALTIME_PRIORITY_CLASS
Correct Answer: A
Chapter: 124
Q2667:
The process class for time-critical tasks is called ________.
A. HIGH_PRIORITY_CLASS
B. IDLE_PRIORITY_CLASS
C. NORMAL_PRIORITY_CLASS
D. REALTIME_PRIORITY_CLASS
Correct Answer: A
Chapter: 124
Q2668:
The highest possible process priority class is ________.
A. REALTIME_PRIORITY_CLASS
B. HIGH_PRIORITY_CLASS
C. NORMAL_PRIORITY_CLASS
D. IDLE_PRIORITY_CLASS
Correct Answer: A
Chapter: 124
Q2669:
The API to set process priority class is ________.
A. SetPriorityClass
B. GetPriorityClass
C. SetThreadPriority
D. GetThreadPriority
Correct Answer: A
Chapter: 124
Q2670:
The API to get process priority class is ________.
A. GetPriorityClass
B. SetPriorityClass
C. SetThreadPriority
D. GetThreadPriority
Correct Answer: A
Chapter: 124
Q2671:
ABOVE_NORMAL_PRIORITY_CLASS is ________ HIGH_PRIORITY_CLASS.
A. below
B. above
C. same
D. unrelated
Correct Answer: A
Chapter: 124
Q2672:
BELOW_NORMAL_PRIORITY_CLASS is ________ IDLE_PRIORITY_CLASS.
A. above
B. below
C. same
D. unrelated
Correct Answer: A
Chapter: 124
Q2673:
PROCESS_MODE_BACKGROUND_BEGIN lowers the priority of a process and its threads for ________.
A. background work
B. foreground work
C. system services
D. kernel tasks
Correct Answer: A
Chapter: 124
Q2674:
PROCESS_MODE_BACKGROUND_END ________ the process priority to its previous value.
A. restores
B. lowers
C. ignores
D. removes
Correct Answer: A
Chapter: 124
Q2675:
Thread priorities can be set relative to the process base priority by ± ________ points.
A. 2
B. 1
C. 3
D. 5
Correct Answer: A
Chapter: 124
Q2676:
The symbolic name for the lowest relative thread priority is ________.
A. THREAD_PRIORITY_LOWEST
B. THREAD_PRIORITY_HIGHEST
C. THREAD_PRIORITY_NORMAL
D. THREAD_PRIORITY_IDLE
Correct Answer: A
Chapter: 124
Q2677:
THREAD_PRIORITY_TIME_CRITICAL has the value 15 or 31 if the process class is ________.
A. REALTIME_PRIORITY_CLASS
B. IDLE_PRIORITY_CLASS
C. NORMAL_PRIORITY_CLASS
D. HIGH_PRIORITY_CLASS
Correct Answer: A
Chapter: 124
Q2678:
THREAD_PRIORITY_IDLE has the value 1 or 16 for ________ process classes.
A. REALTIME_PRIORITY_CLASS
B. NORMAL_PRIORITY_CLASS
C. HIGH_PRIORITY_CLASS
D. IDLE_PRIORITY_CLASS
Correct Answer: A
Chapter: 124
Q2679:
THREAD_MODE_BACKGROUND_BEGIN is similar to ________.
A. PROCESS_MODE_BACKGROUND_BEGIN
B. SetThreadPriority
C. SetPriorityClass
D. CreateProcess
Correct Answer: A
Chapter: 124
Q2680:
The API used to set thread priority is ________.
A. SetThreadPriority
B. GetThreadPriority
C. SetPriorityClass
D. GetPriorityClass
Correct Answer: A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now