System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Chapter: 111
Q2461:
Each thread has its own ______ for function calls.
A. stack
B. queue
C. buffer
D. cache
Correct Answer:
A
Chapter: 111
Q2462:
The calling process usually passes an ______ to the thread.
A. argument
B. variable
C. function
D. pointer
Correct Answer:
A
Chapter: 111
Q2463:
Arguments passed to a thread are stored in the thread’s ______.
A. stack
B. heap
C. buffer
D. registry
Correct Answer:
A
Chapter: 111
Q2464:
Each thread can allocate its own ______ Local Storage (TLS).
A. Thread
B. Temporary
C. Total
D. Thread-local
Correct Answer:
A
Chapter: 111
Q2465:
TLS is a small pointer array accessible only to the ______.
A. thread
B. process
C. system
D. memory
Correct Answer:
A
Chapter: 111
Q2466:
A thread will not modify the data of any other thread’s ______.
A. TLS
B. stack
C. code
D. data
Correct Answer:
A
Chapter: 111
Q2467:
Thread Local Storage helps prevent interference between threads by isolating their ______.
A. data
B. code
C. stack
D. arguments
Correct Answer:
A
Chapter: 111
Q2468:
Threads share code and ______ but have separate stacks.
A. data
B. memory
C. network
D. registry
Correct Answer:
A
Chapter: 111
Q2469:
In multithreading, proper management of TLS prevents ______ between threads.
A. data interference
B. deadlocks
C. errors
D. synchronization
Correct Answer:
A
Chapter: 111
Q2470:
Threads within a process share data and ______.
A. code
B. stack
C. memory
D. arguments
Correct Answer:
B
Chapter: 111
Q2471:
The thread stack stores ______ passed to the thread from the calling process.
A. functions
B. arguments
C. variables
D. pointers
Correct Answer:
B
Chapter: 111
Q2472:
Proper use of TLS ensures thread data ______.
A. isolation
B. duplication
C. merging
D. sharing
Correct Answer:
A
Chapter: 112
Q2473:
Threads are treated as ______ in programming.
A. variables
B. functions
C. objects
D. events
Correct Answer:
C
Chapter: 112
Q2474:
The API function used to create a thread is ______.
A. CreateProcess()
B. CreateThread()
C. ThreadStart()
D. ThreadCreate()
Correct Answer:
B
Chapter: 112
Q2475:
Threads can be considered as ______ and child, although the OS is unaware of this.
A. parent
B. object
C. parent
D. process
Correct Answer:
A
Chapter: 112
Q2476:
CreateThread() requires the ______ address of the thread function.
A. starting
B. ending
C. memory
D. stack
Correct Answer:
A
Chapter: 112
Q2477:
The stack space size for a thread is allocated from the ______ address space.
A. process
B. system
C. user
D. kernel
Correct Answer:
A
Chapter: 112
Q2478:
By default, one page of memory is committed at the ______ of the thread.
A. start
B. starting
C. point
D. end
Correct Answer:
A
Chapter: 112
Q2479:
CreateThread() requires a pointer to the thread ______, which can be any structure.
A. argument
B. return
C. value
D. status
Correct Answer:
A
Chapter: 112
Q2480:
In CreateThread(), the parameter 'dwStackSize' specifies the ______ in bytes.
A. stack size
B. thread priority
C. stack memory
D. buffer size
Correct Answer:
A