Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q2511: SuspendThread() function is used to ______ a running thread.
  • A: pause
  • B: start
  • C: resume
  • D: terminate
View Answer
A

Q2512: ResumeThread() function is used to ______ a suspended thread.
  • A: start
  • B: pause
  • C: resume
  • D: terminate
View Answer
C

Q2513: A thread runs only if its suspend count is ______.
  • A: 1
  • B: greater than 0
  • C: 0
  • D: negative
View Answer
C

Q2514: What does SuspendThread() return if it is successful?
  • A: Current suspend count
  • B: Previous suspend count
  • C: -1
  • D: 0xFFFFFFFF
View Answer
B

Q2515: The function used to find out if a thread is blocked by I/O is ______.
  • A: GetProcessIdOfThread()
  • B: SuspendThread()
  • C: ResumeThread()
  • D: GetThreadIOPendingFlag()
View Answer
D

Q2516: To resume a thread that was created suspended, use ______ function.
  • A: SuspendThread()
  • B: ResumeThread()
  • C: GetProcessIdOfThread()
  • D: GetThreadIOPendingFlag()
View Answer
B

Q2517: When the suspend count of a thread is not zero, the thread is ______.
  • A: running
  • B: paused
  • C: terminated
  • D: blocked
View Answer
B

Q2518: One thread can wait for another thread to ______ before proceeding.
  • A: start
  • B: complete
  • C: pause
  • D: terminate
View Answer
B

Q2519: Windows treats a thread as a(n) ______.
  • A: process
  • B: object
  • C: file
  • D: system
View Answer
B

Q2520: Which function is used to wait for a single thread or object?
  • A: WaitForMultipleObjects()
  • B: WaitForSingleObject()
  • C: WaitThread()
  • D: WaitOneThread()
View Answer
B

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now