Filter interviews by
Debugging memory leaks involves identifying and fixing areas where memory is not properly released after use.
Use tools like Valgrind or AddressSanitizer to detect memory leaks in your application.
Check for unfreed memory allocations, such as 'malloc' or 'new' without corresponding 'free' or 'delete'.
Review your code for circular references in data structures, which can prevent memory from being released.
Implement ...
EventEmitter is a class in Node.js that allows multiple functions to be attached to an event and triggered when the event is emitted.
EventEmitter is a core module in Node.js that allows communication between objects in a loosely coupled way.
It is used for handling events in Node.js applications.
Listeners can be attached to EventEmitter instances using the 'on' method and events can be emitted using the 'emit' meth...
No, you cannot declare a variable with the same name using var keyword.
Variables declared with var keyword can only be declared once within the same scope
Attempting to declare a variable with the same name using var will result in a syntax error
A Promise is an object representing the eventual completion or failure of an asynchronous operation.
Promises have three states: pending, fulfilled, and rejected.
A fulfilled promise returns a value, while a rejected promise returns an error.
Example: const myPromise = new Promise((resolve, reject) => { /* async operation */ });
You can handle results using .then() for fulfilled and .catch() for rejected promises.
E...
Hoisting is a JavaScript mechanism where variables and function declarations are moved to the top of their containing scope during compilation.
Variables declared with 'var' are hoisted, but their initialization is not. Example: console.log(x); var x = 5; // undefined
Function declarations are fully hoisted, allowing them to be called before their definition. Example: greet(); function greet() { console.log('Hello')...
Request and Response objects are created in Node.js using the 'http' module.
Require the 'http' module in your code
Use the 'http.createServer()' method to create a server
Access the request and response objects in the callback function
let, var, and const are all used to declare variables in JavaScript, but they have different scopes and behaviors.
let: block-scoped variable, can be reassigned
var: function-scoped variable, can be reassigned
const: block-scoped variable, cannot be reassigned, but its properties can be modified
Callback is a function passed as an argument to another function to be executed later. Async await is a syntax for writing asynchronous code in a synchronous manner.
Callback is used in event handling, asynchronous programming, and more.
Async await is a modern way to write asynchronous code in a synchronous style.
Example: Callback - setTimeout function in JavaScript.
Example: Async await - fetching data from an API ...
I applied via Approached by Company and was interviewed before May 2023. There was 1 interview round.
Callback is a function passed as an argument to another function to be executed later. Async await is a syntax for writing asynchronous code in a synchronous manner.
Callback is used in event handling, asynchronous programming, and more.
Async await is a modern way to write asynchronous code in a synchronous style.
Example: Callback - setTimeout function in JavaScript.
Example: Async await - fetching data from an API in Ja...
EventEmitter is a class in Node.js that allows multiple functions to be attached to an event and triggered when the event is emitted.
EventEmitter is a core module in Node.js that allows communication between objects in a loosely coupled way.
It is used for handling events in Node.js applications.
Listeners can be attached to EventEmitter instances using the 'on' method and events can be emitted using the 'emit' method.
Ex...
Request and Response objects are created in Node.js using the 'http' module.
Require the 'http' module in your code
Use the 'http.createServer()' method to create a server
Access the request and response objects in the callback function
No, you cannot declare a variable with the same name using var keyword.
Variables declared with var keyword can only be declared once within the same scope
Attempting to declare a variable with the same name using var will result in a syntax error
Top trending discussions
I applied via Naukri.com and was interviewed before Aug 2020. There were 4 interview rounds.
Reversing a string involves rearranging its characters in the opposite order, which can be done using various methods.
Use built-in functions: In Python, you can reverse a string with slicing: `reversed_string = original_string[::-1]`.
Iterative approach: Loop through the string from the end to the beginning and build a new string.
Using recursion: Define a function that calls itself with a smaller substring until it reac...
I applied via Recruitment Consulltant and was interviewed before Nov 2021. There were 4 interview rounds.
MCQ's and Coding Problem - 1 related with Java, RDBMS, JS
I applied via Recruitment Consultant and was interviewed in Aug 2021. There was 1 interview round.
Questions related to Java programming language concepts and features.
StringBuilder and StringBuffer are used for efficient string manipulation.
Arrays are fixed in size while linked lists can grow dynamically.
TreeSet is a sorted set implementation in Java.
Java 8 introduced lambda expressions, streams, and functional interfaces.
Static keyword is used to create class-level variables and methods.
Dynamic method dispatch is ...
I applied via Campus Placement and was interviewed before May 2020. There were 4 interview rounds.
based on 1 interview experience
Difficulty level
Duration
Software Engineer
4
salaries
| ₹13 L/yr - ₹30 L/yr |
Technical Lead
4
salaries
| ₹24.1 L/yr - ₹30 L/yr |
Senior Manager-HR
3
salaries
| ₹28 L/yr - ₹38 L/yr |
Senior Software Engineer
3
salaries
| ₹18 L/yr - ₹22.1 L/yr |
TCS
Accenture
Wipro
Cognizant