System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q1821: The stack in a thread is used for all of the following except:
- A: Procedure calls
- B: Auto variables
- C: Interrupt handling
- D: Network routing
View Answer
D
Q1822: A thread's context contains which of the following?
- A: Hardware configuration
- B: Thread ID only
- C: Internal registers status
- D: Thread priority only
View Answer
C
Q1823: Each thread has its own ________.
- A: Virtual memory space
- B: Environment block
- C: Code segment
- D: Stack
View Answer
D
Q1824: In a multiprocessor system, process management allows:
- A: One process at a time
- B: Only one thread
- C: Concurrent thread execution on multiple processors
- D: No multitasking
View Answer
C
Q1825: Which of the following is NOT a resource of a Windows process?
- A: DLLs
- B: Global variables
- C: Stack
- D: Thread context
View Answer
D
Q1826: Threads within a process share which of the following?
- A: Unique stacks
- B: Code and data segments
- C: Individual contexts
- D: TLS arrays
View Answer
B
Q1827: Windows Process Management supports:
- A: Single-tasking only
- B: Multitasking and multithreading
- C: Only batch processing
- D: Manual memory allocation
View Answer
B
Q1828: Each Windows process has:
- A: One stack only
- B: No global variables
- C: A distinct virtual address space
- D: Shared address space with others
View Answer
C
Q1829: Thread Local Storage (TLS) is best described as:
- A: A static array
- B: An external file
- C: A pointer-based array used per thread
- D: A global variable array
View Answer
C
Q1830: Windows allows processes to share memory and files.
- A: A
- B: B
- C:
- D:
View Answer
A