VIVA Questions
NODE.JS
Node.js is a runtime environment that allows JavaScript to run on the server side.
Yes, but it uses an event loop for handling multiple requests asynchronously.
Node Package Manager used to install libraries and dependencies.
A reusable block of code (file) that can be imported.
require is CommonJS, import is ES6 module syntax.
It contains project metadata and dependencies.
Execution based on events like clicks, requests, etc.
It handles asynchronous operations in Node.js.
A function passed as argument and executed later.
Functions that process requests before response.
Read-Eval-Print Loop for executing JS code interactively.
File system module for file operations.
Temporary memory for binary data.
Data flow in chunks instead of loading full data.
Readable, Writable, Duplex, Transform.
Non-blocking execution of code.
Blocking execution.
Executes code after delay.
Global object giving runtime info.
Used to create multiple processes.
Running separate process in Node.
Interface for communication between systems.
API using HTTP methods.
Data format for communication.
Fast, scalable, non-blocking.
TYPE SCRIPT
A superset of JavaScript with static typing.
For type safety and better error detection.
Converting TypeScript to JavaScript.
Declaring variable types.
let x: number = 10;
Defines structure of an object.
Set of named constants.
Fixed-length array with types.
Allows any type (not recommended).
Function returns nothing.
Safer alternative to any.
Function that never returns.
Multiple types (
string | number).
Automatic type detection.
Blueprint for objects.
public, private, protected.
Prevents modification.
Reusable components with types.
Code organization using export/import.
Logical grouping of code.
Special function to modify class behavior.
Interface for objects, type for all types.
Configuration file.
Enforces strict type checking.
Better maintainability, fewer bugs.
Web framework for Node.js.
Simplifies server creation.
Instance of Express.
Handling URL requests.
GET, POST, PUT, DELETE.
Functions between request & response.
Application, router, error-handling.
Request data.
Response to client.
Pass control to next middleware.
API using HTTP.
Mini route handler.
Parses request body.
Serves static files.
Dynamic HTML generation.
Cross-origin resource sharing.
Managing errors in app.
Small data stored in browser.
Server-side user data.
Standard route naming.
Sending data in JSON format.
HTTP response code.
Middleware for JSON parsing.
Starts server.
Lightweight, flexible.
JavaScript library for UI development.
Reusable UI block.
Functional and Class.
HTML-like syntax in JS.
Component data.
Inputs to components.
State is internal, props external.
Lightweight DOM copy.
Hook for state.
Hook for side effects.
Function for React features.
Unique identifier for elements.
Handling user actions.
Rendering based on conditions.
Rendering arrays.
Form controlled by React.
Uses DOM directly.
Global state management.
State management library.
Navigation library.
Group elements without extra DOM.
Component phases.
Performance optimization.
Fast, reusable, scalable.
NoSQL database storing data in JSON-like format.
Data record in MongoDB.
Group of documents.
Binary JSON format.
Unique identifier.
Non-relational database.
Tables vs documents.
No fixed structure.
Create, Read, Update, Delete.
insertOne()
find()
updateOne()
deleteOne()
Improves query speed.
Data processing pipeline.
Filter stage.
Group data.
Copying data across servers.
Splitting data across machines.
Cloud MongoDB service.
Nested document.
Linking documents.
Pointer to result set.
Selecting fields.
Flexible, scalable, fast
Comments
Post a Comment