💻 Coding Interview Questions
1️⃣ What is a pointer?
Answer: A variable that stores the memory address of another variable.
2️⃣ What is memory allocation?
Answer: The process of reserving memory for program execution.
3️⃣ Stack vs Heap memory?
Answer: Stack is fast and automatic; heap is dynamic and manually managed.
4️⃣ What is garbage collection?
Answer: Automatic memory cleanup of unused objects.
5️⃣ What is a deadlock?
Answer: When processes wait forever for resources held by each other.
6️⃣ What is multithreading?
Answer: Running multiple threads concurrently within a process.
7️⃣ What is synchronization?
Answer: Controlling access to shared resources in concurrent programs.
8️⃣ What is a race condition?
Answer: When multiple threads access shared data unsafely.
9️⃣ What is a process?
Answer: An independent program in execution.
🔟 What is a thread?
Answer: The smallest unit of execution within a process.
Post #1235
655