Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q2651: The API used to allocate a TLS index is ________.
  • A: TlsAlloc
  • B: TlsFree
  • C: TlsGetValue
  • D: TlsSetValue
View Answer
A

Q2652: TlsAlloc returns the TLS index as a ________.
  • A: DWORD
  • B: BOOL
  • C: VOID
  • D: HANDLE
View Answer
A

Q2653: The API to free a TLS index is called ________.
  • A: TlsFree
  • B: TlsAlloc
  • C: TlsGetValue
  • D: TlsSetValue
View Answer
A

Q2654: The API used to get a value from TLS is ________.
  • A: TlsGetValue
  • B: TlsFree
  • C: TlsAlloc
  • D: TlsSetValue
View Answer
A

Q2655: TLS allows memory access that is global within a ________ but inaccessible to other threads.
  • A: thread
  • B: process
  • C: program
  • D: system
View Answer
A

Q2656: Global storage in a program is accessible by ________ threads.
  • A: all
  • B: single
  • C: no
  • D: only primary
View Answer
A

Q2657: Each thread's TLS space is managed using simple ________ APIs.
  • A: GET/SET
  • B: OPEN/CLOSE
  • C: READ/WRITE
  • D: CREATE/DESTROY
View Answer
A

Q2658: TlsFree returns a ________ indicating success or failure.
  • A: BOOL
  • B: DWORD
  • C: VOID
  • D: INT
View Answer
A

Q2659: The parameter type for TLS APIs such as TlsAlloc and TlsFree is ________.
  • A: DWORD
  • B: HANDLE
  • C: LPVOID
  • D: BOOL
View Answer
A

Q2660: Thread local storage provides a way to store data that is ________ to a specific thread.
  • A: unique
  • B: shared
  • C: global
  • D: accessible to all
View Answer
A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now