Interview Questions
All Questions
Q1. What is an Index in SQL?
An index improves query performance by allowing faster data retrieval.
Q2. What is the difference between Stateful and Stateless widgets?
- Stateful Widget: Can maintain state changes (e.g., StatefulWidget).
- Stateless Widget: Cannot change state once built (e.g., StatelessWidget).
Q3. What is a Future in Flutter?
A Future represents a value that will be available in the future, commonly used for asynchronous operations.
Q4. Can a finally
block execute if no error occurs in the try
block?
test
Q5. What is the MERN stack?
MERN stands for MongoDB, Express.js, React, and Node.js, used to build full-stack web applications.
Q6. What is Dependency Injection in .NET?
Dependency Injection (DI) is a design pattern used to inject dependencies at runtime, making applications more maintainable.
Q7. What is normalization in databases?
Normalization is the process of organizing data to reduce redundancy and improve data integrity.
Q8. What is Object-Oriented Programming (OOP)?
OOP is a programming paradigm based on objects containing data (fields) and methods. The four main principles are Encapsulation, Inheritance, Polymorphism, and Abstraction.
Q9. What is the Virtual DOM in React?
The Virtual DOM is a lightweight copy of the real DOM that React updates before making changes to the actual DOM, improving performance.
Q10. What is the difference between Stack and Queue?
- Stack: Follows LIFO (Last In, First Out).
- Queue: Follows FIFO (First In, First Out).