Filter interviews by
Temporal dead zone is the period between entering scope and being able to access a variable.
Occurs when trying to access a variable before it is declared
Caused by hoisting in JavaScript
Example: accessing a let or const variable before its declaration will result in a ReferenceError
Event loop is a mechanism in Node.js that allows non-blocking I/O operations to be performed asynchronously.
Event loop is responsible for handling asynchronous operations in Node.js.
It allows Node.js to perform multiple operations concurrently without blocking the execution.
Event loop continuously checks the event queue for new events and executes them in a non-blocking manner.
Example: When a file is being read as...
Event loop is a mechanism in Node.js that allows non-blocking I/O operations to be performed asynchronously.
Event loop continuously checks the call stack for any functions that need to be executed.
If the call stack is empty, event loop checks the callback queue for any pending tasks.
Event loop moves tasks from the callback queue to the call stack for execution.
This allows Node.js to handle multiple I/O operations ...
A pipe in Node.js is a mechanism that allows you to connect the output of one stream to the input of another stream.
Pipes are used to read data from a readable stream and write it to a writable stream.
They are created using the pipe() method.
Pipes help in simplifying the code by avoiding nested callbacks.
Example: readableStream.pipe(writableStream);
A closure in Javascript is a function that has access to its own scope, as well as the outer function's scope.
A closure allows a function to access variables from an outer function even after the outer function has finished executing.
Closures are commonly used to create private variables and functions in Javascript.
Example: function outerFunction() { let outerVar = 'I am outer'; return function innerFunction() { c...
Yes, I have experience with GraphQL.
I have worked on implementing GraphQL APIs in various projects.
I am familiar with creating schemas, resolvers, and queries in GraphQL.
I have used tools like Apollo Server and GraphQL Playground for development.
Yes, I have experience with PostgreSQL.
I have worked on multiple projects where PostgreSQL was used as the database.
I am proficient in writing complex SQL queries and optimizing database performance.
I have experience in setting up and maintaining PostgreSQL databases.
I have used PostgreSQL in conjunction with Node.js for backend development.
Hoisting is a JavaScript mechanism where variable and function declarations are moved to the top of their containing scope during compilation.
Variable declarations are hoisted to the top of their scope but not their initializations.
Function declarations are fully hoisted, meaning they can be called before they are declared.
Hoisting can lead to unexpected behavior if not understood properly.
I have 5 years of experience working with Node.js in various projects and environments.
5 years of hands-on experience with Node.js
Developed multiple backend applications using Node.js
Familiar with popular Node.js frameworks like Express.js
Experience in optimizing performance and scalability of Node.js applications
Worked on integrating Node.js with databases like MongoDB and MySQL
let, const, and var are JavaScript keywords for variable declaration with different scopes and mutability rules.
var is function-scoped or globally scoped, while let and const are block-scoped.
let allows variable reassignment: let x = 10; x = 20;
const creates a constant reference: const y = 30; y cannot be reassigned.
var hoists the variable declaration, meaning it's accessible before its declaration: console.log(a)...
I applied via LinkedIn and was interviewed in Feb 2024. There were 3 interview rounds.
I have 5 years of experience working with Node.js in various projects and environments.
5 years of hands-on experience with Node.js
Developed multiple backend applications using Node.js
Familiar with popular Node.js frameworks like Express.js
Experience in optimizing performance and scalability of Node.js applications
Worked on integrating Node.js with databases like MongoDB and MySQL
Yes, I have experience with PostgreSQL.
I have worked on multiple projects where PostgreSQL was used as the database.
I am proficient in writing complex SQL queries and optimizing database performance.
I have experience in setting up and maintaining PostgreSQL databases.
I have used PostgreSQL in conjunction with Node.js for backend development.
Yes, I have experience with GraphQL.
I have worked on implementing GraphQL APIs in various projects.
I am familiar with creating schemas, resolvers, and queries in GraphQL.
I have used tools like Apollo Server and GraphQL Playground for development.
A closure in Javascript is a function that has access to its own scope, as well as the outer function's scope.
A closure allows a function to access variables from an outer function even after the outer function has finished executing.
Closures are commonly used to create private variables and functions in Javascript.
Example: function outerFunction() { let outerVar = 'I am outer'; return function innerFunction() { consol...
Event loop is a mechanism in Node.js that allows non-blocking I/O operations to be performed asynchronously.
Event loop is responsible for handling asynchronous operations in Node.js.
It allows Node.js to perform multiple operations concurrently without blocking the execution.
Event loop continuously checks the event queue for new events and executes them in a non-blocking manner.
Example: When a file is being read asynchr...
Hoisting is a JavaScript mechanism where variable and function declarations are moved to the top of their containing scope during compilation.
Variable declarations are hoisted to the top of their scope but not their initializations.
Function declarations are fully hoisted, meaning they can be called before they are declared.
Hoisting can lead to unexpected behavior if not understood properly.
Event loop is a mechanism in Node.js that allows non-blocking I/O operations to be performed asynchronously.
Event loop continuously checks the call stack for any functions that need to be executed.
If the call stack is empty, event loop checks the callback queue for any pending tasks.
Event loop moves tasks from the callback queue to the call stack for execution.
This allows Node.js to handle multiple I/O operations concu...
Temporal dead zone is the period between entering scope and being able to access a variable.
Occurs when trying to access a variable before it is declared
Caused by hoisting in JavaScript
Example: accessing a let or const variable before its declaration will result in a ReferenceError
let, const, and var are JavaScript keywords for variable declaration with different scopes and mutability rules.
var is function-scoped or globally scoped, while let and const are block-scoped.
let allows variable reassignment: let x = 10; x = 20;
const creates a constant reference: const y = 30; y cannot be reassigned.
var hoists the variable declaration, meaning it's accessible before its declaration: console.log(a); var...
A pipe in Node.js is a mechanism that allows you to connect the output of one stream to the input of another stream.
Pipes are used to read data from a readable stream and write it to a writable stream.
They are created using the pipe() method.
Pipes help in simplifying the code by avoiding nested callbacks.
Example: readableStream.pipe(writableStream);
Implement a custom event emitter class in Node.js
Create a class MyEventEmitter with methods 'on' and 'emit'
Store event listeners in an object with event names as keys and arrays of callbacks as values
Implement 'on' method to add event listeners to the object
Implement 'emit' method to trigger all callbacks for a given event
Top trending discussions
Java is a high-level programming language known for its platform independence and object-oriented approach.
Java is widely used for developing desktop, web, and mobile applications.
It is known for its robustness, security, and scalability.
Java programs are compiled into bytecode that can run on any Java Virtual Machine (JVM).
It supports multithreading, exception handling, and automatic memory management.
Popular framewor...
I applied via Campus Placement and was interviewed before Aug 2020. There were 4 interview rounds.
Collections are data structures that store and manipulate groups of objects.
Collections provide a way to organize and manage large amounts of data
They can be used to perform operations on groups of objects, such as sorting or searching
Examples of collections include arrays, lists, sets, and maps
Java 8 introduces lambda expressions, functional interfaces, streams, and default methods.
Lambda expressions allow functional programming in Java
Functional interfaces enable the use of lambda expressions
Streams provide a concise way to perform operations on collections
Default methods allow interfaces to have implementation
Date and Time API improvements
Nashorn JavaScript engine
Spring Boot is a framework for building standalone, production-grade Spring-based applications.
Spring Boot simplifies the process of creating and deploying Spring-based applications.
It provides a pre-configured environment with a set of opinionated defaults.
It includes embedded servers like Tomcat, Jetty, and Undertow.
It supports a wide range of data sources and data access technologies.
It enables easy integration with...
JPA stands for Java Persistence API, a specification for object-relational mapping in Java applications.
JPA is used to map Java objects to relational database tables.
It provides a set of annotations to define the mapping between Java classes and database tables.
JPA also supports querying data using the Java Persistence Query Language (JPQL).
I applied via Referral and was interviewed before Jun 2020. There were 3 interview rounds.
I applied via Company Website and was interviewed in Dec 2020. There were 3 interview rounds.
I applied via Company Website and was interviewed before Dec 2020. There were 4 interview rounds.
I applied via Campus Placement and was interviewed before May 2021. There were 4 interview rounds.
VERBAL QUANT DI/LR and Picture based test
Fibonacci series can be easily implemented using loops in C++ or C.
Declare variables for first two numbers of the series
Use a loop to calculate and print the next number in the series
Repeat the loop until desired number of terms are printed
I appeared for an interview before Sep 2020.
Round duration - 90 minutes
Round difficulty - Easy
This round was held during university hours and consisted of 2 coding questions.
Round duration - 120 minutes
Round difficulty - Easy
Make sure you do no cutting and are clear about the approach you'd be following.
Running median of an input stream is the median value of the numbers seen so far in a continuous stream of data.
Maintain two heaps - a max heap for the lower half of the numbers and a min heap for the upper half.
Keep the number of elements in the two heaps balanced or differ by at most 1.
If the total number of elements is odd, the median is the root of the max heap. If even, it is the average of the roots of the two he...
Prepare for company-wise interview questions according to the company in which you are applying. Try to write the code yourself and if got stuck in between then take help from the internet. I recommend you Codezen of Coding Ninjas for practicing Data Structures and Algorithms based questions.
Application resume tips for other job seekersBe sure 100% of what you write in your resume and prepare for that before the interview what is written on resume.
Final outcome of the interviewSelectedI applied via Company Website and was interviewed before Oct 2021. There were 5 interview rounds.
Basic Aptitude with some difficult questions
3 set of coding question were asked 1 easy ,1 medium ,1 hard
based on 1 interview experience
Difficulty level
Duration
TCS
Accenture
Wipro
Cognizant