FullStack Advanced Interview QA
FullStack Advanced Interview QA
Node.js
Q: What is Node.js?
A: Node.js is a runtime environment that allows JavaScript to run on the server-side. It is built on the
V8 JavaScript engine.
A: `npm` (Node Package Manager) is used to manage dependencies and install packages in a
Node.js application.
A: Some core modules are `http`, `fs`, `path`, `events`, and `url`.
A: The event loop handles asynchronous callbacks and allows Node.js to be non-blocking.
A: `process.nextTick()` executes code after the current operation completes, while `setImmediate()`
A: The 'cluster' module allows you to create child processes that share the same server port,
Express.js
Q: What is Express.js?
A: Express.js is a lightweight web framework for Node.js used to build APIs and web applications.
A: Middleware functions have access to request and response objects. They can modify them or
end the response cycle.
A: `app.use()` is for middleware that applies to all routes, while `app.get()` is for handling GET
A: Use HTTPS, helmet, rate limiting, and input validation to secure Express apps.
MongoDB
Q: What is MongoDB?
A: MongoDB is a NoSQL database that stores data in BSON (binary JSON) format.
Q: What is a collection?
A: The aggregation framework processes data records and returns computed results, used for
Mongoose
Q: What is Mongoose?
A: Mongoose is an ODM (Object Data Modeling) library for MongoDB and Node.js.
A: Virtuals are properties that are not stored in MongoDB but can be computed from existing data.
A: Use the `.populate()` method to fetch related documents based on reference fields.
MySQL
Q: What is MySQL?
A: A foreign key is a field in one table that refers to the primary key in another table.
Q: What is normalization?
A: Normalization is the process of organizing data to reduce redundancy and improve data integrity.
A: Joins are used to combine rows from two or more tables based on a related column.
Laravel
Q: What is Laravel?
A: Laravel is a PHP framework used for web applications following the MVC pattern.
Q: What is Artisan?
A: Artisan is the command-line interface in Laravel used for tasks like creating models, migrations,
etc.
A: Migrations are used to create and modify database tables using PHP code.
A: Service providers are the central place to configure and bind classes into the service container.
A: Facades provide a static interface to classes that are available in the applications service
container.
React.js
Q: What is React?
Q: What is JSX?
A: JSX stands for JavaScript XML. It allows HTML to be written inside JavaScript.
A: Hooks are functions like `useState`, `useEffect`, etc., that let you use state and lifecycle features
in functional components.
A: Class components use ES6 classes and lifecycle methods, while functional components use
A: The virtual DOM is a lightweight copy of the real DOM that React uses to improve performance
DOM mutations.
JavaScript
Q: What are data types in JavaScript?
Q: What is hoisting?
A: Hoisting is JavaScript's default behavior of moving declarations to the top of the scope.
Q: What is a closure?
A: A closure is a function that remembers its lexical scope even when executed outside it.
A: `==` compares value with type coercion; `===` compares value and type strictly.
A: Event delegation is a technique involving adding a single event listener to a parent element that
A: `call` and `apply` invoke functions immediately, with `apply` taking arguments as an array. `bind`