← Back to 4. Threads in Operating System

📝 Windows Threads

📖 From Operating System • 4. Threads in Operating System • 205 questions available

Practice MCQs for Windows Threads. Test your knowledge with carefully crafted questions across easy, medium, and hard difficulty levels.

🔄 Last updated: 2026-07-08

20
Easy Questions
138
Medium Questions
47
Hard Questions

📝 Sample Questions

Q1. What header file must be included when using the Windows thread API?

🔹 A. #include <pthread.h>
🔹 B. #include <windows.h>
🔹 C. #include <winthread.h>
🔹 D. #include <thread.h>

💡 Difficulty: easy | ✅ Correct: B

Q2. What is the return type of a Windows thread function defined with the WINAPI calling convention?

🔹 A. void
🔹 B. int
🔹 C. DWORD
🔹 D. HANDLE

💡 Difficulty: medium | ✅ Correct: C

Q3. What would happen if CloseHandle() is not called on a thread handle in Windows?

🔹 A. The thread would terminate immediately
🔹 B. The thread handle would leak resources
🔹 C. The program would crash
🔹 D. The thread would execute faster

💡 Difficulty: hard | ✅ Correct: B

⬆️ View all questions in the quiz below

🔗 Related Topics

📝 Computer System Architecture📝 Computer System Organization📝 Computing Environments📝 Kernel Data Structures📝 Memory Management
🚀 Start Quiz 📝 Practice Mode