11. Which method is used to suspend the execution of a thread temporarily in C#? A. Pause() B. Suspend() C. Wait() D. Sleep() Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board
12. What is the purpose of the ThreadPool class in C#? A. To manage and recycle a pool of worker threads B. To allocate memory for storing thread-related data C. To provide synchronization mechanisms for multithreaded programs D. To execute tasks sequentially Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
13. What is the advantage of using asynchronous programming in C#? A. Reduced memory consumption B. Enhanced security C. Simplicity and ease of programming D. Improved responsiveness and scalability Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board
14. Which method is used to join two or more threads in C#? A. Merge() B. Combine() C. Join() D. Link() Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
15. What is the purpose of the lock statement in C# multithreading? A. To execute a block of code in parallel B. To synchronize access to a shared resource C. To allocate memory for storing thread-related data D. None of the above Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option B No explanation is given for this question Let's Discuss on Board
16. What is the purpose of the Thread class in C#? A. To allocate memory for storing thread-related data B. To provide synchronization mechanisms for multithreaded programs C. To represent a single thread of execution D. To manage a collection of threads Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
17. Which method is used to check if a thread is alive in C#? A. CheckAlive() B. ThreadAlive() C. IsRunning() D. IsAlive() Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board
18. What is the difference between synchronous and asynchronous programming in C#? A. Synchronous programming blocks until a task is completed, while asynchronous programming allows tasks to execute concurrently B. Synchronous programming executes tasks sequentially, while asynchronous programming executes tasks in parallel C. Synchronous programming is simpler, while asynchronous programming is more complex D. Synchronous programming is more memory-efficient, while asynchronous programming is more CPU-efficient Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
19. What is the purpose of the AutoResetEvent class in C# multithreading? A. To provide synchronization mechanisms for multithreaded programs B. To manage a collection of threads C. To synchronize access to a shared resource D. To signal one or more waiting threads that an event has occurred Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board
20. Which method is used to set the priority of a thread in C#? A. SetThreadPriority() B. Priority() C. SetPriority() D. SetPriorityLevel() Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board