System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Chapter: 87
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
Correct Answer:
D
Chapter: 87
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
Correct Answer:
C
Chapter: 87
Q1823:
Each thread has its own ________.
A. Virtual memory space
B. Environment block
C. Code segment
D. Stack
Correct Answer:
D
Chapter: 87
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
Correct Answer:
C
Chapter: 87
Q1825:
Which of the following is NOT a resource of a Windows process?
A. DLLs
B. Global variables
C. Stack
D. Thread context
Correct Answer:
D
Chapter: 87
Q1826:
Threads within a process share which of the following?
A. Unique stacks
B. Code and data segments
C. Individual contexts
D. TLS arrays
Correct Answer:
B
Chapter: 87
Q1827:
Windows Process Management supports:
A. Single-tasking only
B. Multitasking and multithreading
C. Only batch processing
D. Manual memory allocation
Correct Answer:
B
Chapter: 87
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
Correct Answer:
C
Chapter: 87
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
Correct Answer:
C
Chapter: 87
Q1830:
Windows allows processes to share memory and files.
A. A
B. B
Correct Answer:
A
Chapter: 87
Q1831:
Each thread in a process operates with the same stack.
A. A
B. B
Correct Answer:
B
Chapter: 87
Q1832:
Thread context includes the internal state of CPU registers.
A. A
B. B
Correct Answer:
A
Chapter: 87
Q1833:
Threads in different processes share the same virtual address space.
A. A
B. B
Correct Answer:
B
Chapter: 87
Q1834:
A process can consist of multiple threads.
A. A
B. B
Correct Answer:
A
Chapter: 87
Q1835:
A thread in Windows cannot have its own stack.
A. A
B. B
Correct Answer:
B
Chapter: 87
Q1836:
Each process always has multiple environment blocks.
A. A
B. B
Correct Answer:
B
Chapter: 87
Q1837:
Thread Local Storage allows sharing of global data across processes.
A. A
B. B
Correct Answer:
B
Chapter: 87
Q1838:
Stack in threads is used for exception handling.
A. A
B. B
Correct Answer:
A
Chapter: 87
Q1839:
A process cannot share files with other processes in Windows.
A. A
B. B
Correct Answer:
B
Chapter: 88
Q1840:
What is the most fundamental function in Windows for process creation?
A. CreateThread()
B. InitProcess()
C. CreateProcess()
D. StartProcess()
Correct Answer:
C