Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Chapter: 119
Q2581:
The boss-worker model can be described as one boss and many ______.
A. clients
B. servers
C. workers
D. files
Correct Answer: C
Chapter: 119
Q2582:
In the client-server model, the server runs a separate thread for each ______.
A. client
B. file
C. task
D. thread
Correct Answer: A
Chapter: 119
Q2583:
The pipeline model moves work sequentially from one thread to the ______.
A. next
B. previous
C. boss
D. worker
Correct Answer: A
Chapter: 119
Q2584:
Which multithreaded model allows workers to divide work among themselves without boss direction?
A. Work crew
B. Client-server
C. Pipeline
D. Boss-worker
Correct Answer: A
Chapter: 119
Q2585:
Most multithreaded models naturally correspond to the structure of ______ constructs.
A. programming language
B. operating system
C. hardware
D. threading
Correct Answer: A
Chapter: 120
Q2586:
In a multiprocessing system, multiple processes can run ______.
A. simultaneously
B. sequentially
C. independently
D. exclusively
Correct Answer: A
Chapter: 120
Q2587:
In the MergeSort example, a big array is divided into ______ parts for sorting.
A. smaller
B. larger
C. equal
D. unsorted
Correct Answer: A
Chapter: 120
Q2588:
Which multithreading model is used in the MergeSort example?
A. Boss-worker
B. Client-server
C. Work crew
D. Pipeline
Correct Answer: C
Chapter: 120
Q2589:
In the MergeSort example, each subarray is sorted using the function ______.
A. qsort()
B. mergesort()
C. sort()
D. partition()
Correct Answer: A
Chapter: 120
Q2590:
The performance gain in MergeSort multithreading is better because the overhead of ______ is low.
A. context switching
B. memory allocation
C. thread creation
D. I/O operations
Correct Answer: A
Chapter: 120
Q2591:
In MergeSort multithreading, threads should be created in a ______ state initially.
A. running
B. suspended
C. terminated
D. waiting
Correct Answer: B
Chapter: 120
Q2592:
To avoid race conditions in MergeSort multithreading, all threads must be resumed to run ______.
A. consecutively
B. independently
C. concurrently
D. sequentially
Correct Answer: C
Chapter: 120
Q2593:
For optimal performance, the number of threads in MergeSort should be a power of ______.
A. two
B. three
C. four
D. five
Correct Answer: A
Chapter: 120
Q2594:
If the number of processes equals the number of threads, the situation is considered ______.
A. optimal
B. suboptimal
C. inefficient
D. conflicting
Correct Answer: A
Chapter: 120
Q2595:
In the MergeSort example, thread 0 waits for which thread to complete before merging?
A. Thread 1
B. Thread 2
C. Thread 3
D. All threads
Correct Answer: A
Chapter: 120
Q2596:
The two merged subarrays in the example are finally merged to form a ______ sorted array.
A. large
B. unsorted
C. small
D. partial
Correct Answer: A
Chapter: 120
Q2597:
Using multiprocessing instead of multithreading in this example might be less efficient due to ______.
A. higher switching overhead
B. lower memory usage
C. simpler coding
D. parallel execution
Correct Answer: A
Chapter: 120
Q2598:
If one thread finishes but the thread to be merged with does not exist, it causes a ______.
A. deadlock
B. race condition
C. memory leak
D. stack overflow
Correct Answer: B
Chapter: 120
Q2599:
When threads are resumed concurrently, they run ______.
A. at the same time
B. one after another
C. randomly
D. not at all
Correct Answer: A
Chapter: 120
Q2600:
Which of the following is NOT an advantage of using multithreading in MergeSort?
A. Better parallelism
B. Higher switching overhead
C. Improved performance
D. Optimal resource use
Correct Answer: B

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now