System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q2501: GetCurrentThreadId() returns the ______ of the calling thread.
- A: handle
- B: thread ID
- C: stack
- D: memory
View Answer
B
Q2502: GetThreadId() obtains the thread ID from a given ______.
- A: thread handle
- B: thread argument
- C: thread stack
- D: thread function
View Answer
A
Q2503: OpenThread() is used to create a thread ______ from the thread ID.
- A: handle
- B: stack
- C: memory
- D: pointer
View Answer
A
Q2504: The function used to get a thread handle from the thread ID is ______.
- A: GetThreadId()
- B: OpenThread()
- C: GetCurrentThread()
- D: GetCurrentThreadId()
View Answer
B
Q2505: GetCurrentThread() returns a handle that is ______.
- A: inheritable
- B: non-inheritable
- C: shared
- D: unique
View Answer
B
Q2506: The function that obtains the thread ID directly from the calling thread without a handle is ______.
- A: GetThreadId()
- B: GetCurrentThreadId()
- C: OpenThread()
- D: GetCurrentThread()
View Answer
B
Q2507: The pseudohandle returned by GetCurrentThread() is ______.
- A: inheritable
- B: non-inheritable
- C: duplicate
- D: closed
View Answer
B
Q2508: GetProcessIdOfThread() returns the ______ of the process linked to a specified thread.
- A: thread ID
- B: process ID
- C: handle
- D: thread status
View Answer
B
Q2509: GetProcessIdOfThread() function requires Windows ______ or later versions.
- A: XP
- B: 2000
- C: 2003
- D: Vista
View Answer
C
Q2510: GetThreadIOPendingFlag() checks whether a thread has any ______ I/O requests.
- A: pending
- B: completed
- C: failed
- D: started
View Answer
A