i
Infosys
Filter interviews by
I applied via Approached by Company and was interviewed in Oct 2024. There were 2 interview rounds.
Node.js is a runtime environment that allows you to run JavaScript on the server side.
Node.js is built on the V8 JavaScript engine from Google Chrome.
It uses an event-driven, non-blocking I/O model that makes it lightweight and efficient for handling concurrent operations.
Node.js uses the libuv library to handle asynchronous operations and manage event loops.
Concurrency in Node.js is achieved through event loops and ca...
SQL is a relational database management system, while NoSQL is a non-relational database management system.
SQL databases are table-based and have a predefined schema, while NoSQL databases are document-based, key-value pairs, graph databases, or wide-column stores.
SQL databases are good for complex queries and transactions, while NoSQL databases are better for hierarchical data storage and real-time web applications.
Ex...
Find the 3rd highest number in an array without sorting.
Iterate through the array to find the highest, second highest, and third highest numbers.
Keep track of these numbers as you iterate.
Return the third highest number once the iteration is complete.
What people are saying about Infosys
Node.js is a runtime environment that allows you to run JavaScript code outside of a web browser.
Node.js is built on Chrome's V8 JavaScript engine.
It uses an event-driven, non-blocking I/O model that makes it lightweight and efficient.
Node.js is commonly used for building server-side applications and APIs.
It has a large ecosystem of open-source libraries and frameworks, such as Express.js.
Middleware is a software component that acts as a bridge between an application's request and response.
Middleware functions have access to the request and response objects
They can modify the request and response objects
Middleware can be used for tasks like authentication, logging, error handling, etc.
A promise is an object representing the eventual completion or failure of an asynchronous operation.
Promises are used to handle asynchronous operations in JavaScript.
They can be in one of three states: pending, fulfilled, or rejected.
Promises can be chained using .then() to handle success and .catch() to handle errors.
Example: new Promise((resolve, reject) => { setTimeout(() => resolve('Done!'), 1000); });
promise.all is a method in JavaScript that takes an array of promises and returns a single promise that resolves when all of the input promises have resolved.
Used to handle multiple asynchronous operations at once
Returns a single promise that resolves when all input promises have resolved
If any of the input promises is rejected, the returned promise is rejected with the reason of the first rejected promise
A callback is a function passed as an argument to another function to be executed later.
Callbacks are commonly used in asynchronous programming to handle tasks that take time to complete.
They are often used in event handling, timers, and AJAX requests.
Callbacks can be synchronous or asynchronous, depending on when they are executed.
Example: setTimeout(callback, 1000) will execute the callback function after 1 second.
I applied via Approached by Company and was interviewed in Nov 2021. There were 2 interview rounds.
Closures are functions that have access to variables from their outer scope, even after the outer function has finished executing.
Closures are created when a function is defined inside another function.
The inner function has access to the outer function's variables, even after the outer function has returned.
Closures are useful for creating private variables and data encapsulation.
They can be used to implement callback...
I was asked a problem around Edit distance and how to compute a average for a stream of data.
I am a passionate Backend Developer with 5 years of experience in building scalable and efficient web applications.
5 years of experience in backend development
Proficient in programming languages like Java, Python, and Node.js
Strong understanding of database management systems such as MySQL and MongoDB
Experience in developing RESTful APIs and microservices
Familiar with cloud technologies like AWS and Azure
I was interviewed in Jul 2024.
Find pairs from list whose sum is equal to target
Iterate through the list and for each element, check if the target minus the element exists in a hashmap
If it exists, add the pair to the result list
If it doesn't exist, add the current element to the hashmap
Event loop is a mechanism in node.js that allows non-blocking I/O operations by handling asynchronous tasks efficiently.
Event loop is responsible for handling asynchronous operations in node.js.
It allows node.js to perform non-blocking I/O operations by delegating tasks to the operating system.
Event loop continuously checks the event queue for new tasks and executes them in a loop.
It helps in preventing the blocking of...
I applied via Naukri.com and was interviewed in Jan 2024. There were 2 interview rounds.
Technology Analyst
56.2k
salaries
| ₹3 L/yr - ₹11 L/yr |
Senior Systems Engineer
49.7k
salaries
| ₹2.8 L/yr - ₹8 L/yr |
System Engineer
39k
salaries
| ₹2.5 L/yr - ₹5.5 L/yr |
Technical Lead
30.7k
salaries
| ₹5.2 L/yr - ₹19.5 L/yr |
Senior Associate Consultant
27.1k
salaries
| ₹4.3 L/yr - ₹16.8 L/yr |
TCS
Wipro
Cognizant
Accenture