System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Chapter: 130
Q2781:
The fiber management scheme discussed is controlled by the ________.
A. application
B. operating system
C. hardware
D. kernel
Correct Answer:
A
Chapter: 130
Q2782:
SwitchToFiber() requires the address of the fiber to which it will ________.
A. switch
B. create
C. delete
D. pause
Correct Answer:
A
Chapter: 130
Q2783:
The primary fiber after switching can switch to ________ fibers.
A. multiple
B. only one
C. zero
D. none
Correct Answer:
A
Chapter: 130
Q2784:
The scheme described ends when the ________ is closed.
A. thread
B. fiber
C. process
D. application
Correct Answer:
A
Chapter: 130
Q2785:
In the fiber scheduling scheme, fiber 1 acts as a ________ in Master-Slave scheduling.
A. slave
B. master
C. peer
D. scheduler
Correct Answer:
A
Chapter: 131
Q2786:
What is a primary reason for thread synchronization?
A. To increase memory
B. To improve UI design
C. To ensure correct data access
D. To create more threads
Correct Answer:
C
Chapter: 131
Q2787:
Threads enable ________ processing in multiple processors.
A. Sequential
B. Manual
C. Concurrent
D. Serial
Correct Answer:
C
Chapter: 131
Q2788:
In the Boss-worker model, the boss thread waits for ________ to finish.
A. System call
B. Worker threads
C. CPU cycle
D. IO operation
Correct Answer:
B
Chapter: 131
Q2789:
Synchronization is required when threads use ________ data.
A. Shared
B. Separate
C. Private
D. Isolated
Correct Answer:
A
Chapter: 131
Q2790:
Two threads must not modify the same data ________.
A. One after another
B. At the same time
C. During debugging
D. In parallel execution
Correct Answer:
B
Chapter: 131
Q2791:
What may happen if a worker thread starts before being created?
A. Speed increases
B. Error occurs
C. Data is optimized
D. Output is the same
Correct Answer:
B
Chapter: 131
Q2792:
In thread synchronization, the boss thread should access worker’s data only when ________.
A. Worker thread is paused
B. Data is deleted
C. Worker completes execution
D. CPU switches
Correct Answer:
C
Chapter: 131
Q2793:
In a synchronized environment, threads should access shared data ________.
A. Simultaneously
B. Without permission
C. Exclusively
D. Automatically
Correct Answer:
C
Chapter: 131
Q2794:
Programming flaws in concurrent processing may cause ________.
A. Better performance
B. Security patches
C. Vulnerabilities
D. Compilation errors
Correct Answer:
C
Chapter: 131
Q2795:
Thread synchronization is important to maintain ________ of the program.
A. Speed
B. Accuracy
C. Debugging
D. Logging
Correct Answer:
B
Chapter: 131
Q2796:
The final values of M and N in normal sequential execution are ________ respectively.
A. 5 and 5
B. 6 and 6
C. 4 and 5
D. 5 and 6
Correct Answer:
B
Chapter: 131
Q2797:
The final values of M and N in concurrent execution (example) are ________ respectively.
A. 6 and 6
B. 4 and 4
C. 5 and 5
D. 6 and 5
Correct Answer:
C
Chapter: 131
Q2798:
In concurrent execution, thread switching may occur ________ instructions.
A. Before
B. After
C. Between
D. All of these
Correct Answer:
D
Chapter: 131
Q2799:
To avoid data inconsistency, threads should be ________.
A. Terminated
B. Synchronized
C. Skipped
D. Compiled
Correct Answer:
B
Chapter: 131
Q2800:
One drawback of concurrent processing is ________.
A. Increased RAM
B. Reduced speed
C. Inconsistent output
D. Better multithreading
Correct Answer:
C