click below
click below
Normal Size Small Size show me how
Lunch n Learn
Question | Answer |
---|---|
RAM | A temporary place to store material that works quickly. Random Access Memory is erased when computer turns off. |
What is the virtual DOM, and how does it optimize performance in frontend frameworks like React? | The virtual DOM is an in-memory representation of the real DOM elements. It optimizes performance by minimizing direct manipulation of the actual DOM, allowing for more efficient updates. |
What are Promises in JavaScript, and how do they differ from callbacks? | Promises are objects representing the eventual completion or failure of an asynchronous operation. They provide a more structured way to handle asynchronous code compared to callbacks. |
Explain the difference between stack and heap memory in a programming context. | The stack is used for function call management and local variables, with a fixed and limited size. The heap is used for dynamic memory allocation, allowing data to be allocated and deallocated as needed. |
What is a memory leak, and how can it be detected and prevented? | A memory leak occurs when a program allocates memory but fails to release it. Detection methods include memory profilers, and prevention involves proper deallocation of dynamically allocated memory. |
What is code refactoring, and how does it contribute to software quality? | Code refactoring is the process of restructuring existing code without changing its external behavior. It improves code readability, maintainability, and reduces technical debt. |
Differentiate between concurrency and parallelism in software development. | Concurrency is the ability to run multiple tasks at the same time, while parallelism is the simultaneous execution of multiple tasks using multiple processors or cores. |
Explain the differences between TCP and UDP, and in what scenarios each protocol is more suitable. | TCP provides reliable, connection-oriented communication, suitable for applications requiring data integrity. UDP is connectionless, offering faster but less reliable communication, ideal for real-time applications. |
What is communication gap? | When the meaning intended by the speaker/sender is not what is understood by the recipient. |
How to prevent/overcome communication gap? | Few ways to prevent/ overcome communication gap include avoid assumptions, use the right medium, end with a short summary, |