i
Infosys
Filter interviews by
I applied via Company Website and was interviewed in Sep 2024. There were 2 interview rounds.
To call a dummy API, use fetch() method with the API URL and handle the response using .then()
Use fetch() method to make a GET request to the dummy API URL
Handle the response using .then() method to access the data returned by the API
You can also use async/await syntax for cleaner code
Virtual DOM is a lightweight copy of the original DOM that React uses to improve performance by minimizing actual DOM manipulation.
Virtual DOM is a representation of the actual DOM in memory.
React compares the virtual DOM with the original DOM and only updates the parts that have changed.
Virtual DOM updates are faster than directly manipulating the original DOM.
Virtual DOM helps in optimizing performance by reducing th...
useEffect is a React hook that allows for side effects in functional components.
useEffect is used to perform side effects in functional components.
It runs after every render by default.
It can be used to fetch data, subscribe to events, update the DOM, and more.
To run useEffect only once, pass an empty array as the second argument.
To clean up effects, return a function from useEffect.
Infosys interview questions for designations
I applied via Recruitment Consulltant and was interviewed in Jun 2024. There was 1 interview round.
A closure is a function that has access to its own scope, as well as the scope in which it was defined.
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 in JavaScript.
Example: function outerFunction() { let outerVar = 'I am outer'; return function innerFunction() { console.log(outerVar); }; }
Web Workers are a way to run JavaScript code in the background, separate from the main thread of the web application.
Web Workers allow for multi-threading in JavaScript, improving performance by offloading tasks to separate threads.
They can be used for tasks like heavy calculations, image processing, or other CPU-intensive operations.
Communication between the main thread and Web Workers is done through message passing.
...
A first class function is a function that can be treated like any other variable in a programming language.
Can be passed as an argument to other functions
Can be returned from other functions
Can be assigned to variables
Can be stored in data structures
First paint refers to the time when the browser starts rendering pixels to the screen. Temporal dead zone is a period in JavaScript where a variable exists but cannot be accessed.
First paint is the time when the browser starts rendering content on the screen.
Temporal dead zone is a period in JavaScript where a variable is declared but cannot be accessed due to the variable being in an inaccessible state.
Example: const ...
Callbacks, event delegation, React reconciliation, and React lifecycle methods are key concepts in React development.
Callback functions are functions passed as arguments to be executed later, commonly used in event handling and asynchronous operations.
Event delegation is a technique where a single event listener is attached to a parent element to manage events for multiple child elements.
React reconciliation is the pro...
Implementing Redux in a React application involves several steps to manage state globally.
Install Redux and React-Redux libraries using npm or yarn.
Create a Redux store to hold the state of the application.
Define reducers to specify how the state should change in response to actions.
Dispatch actions to update the state in the Redux store.
Connect React components to the Redux store using the connect function from React-...
Get interview-ready with Top Infosys Interview Questions
Create a table component from array of objects in React JS
Map through the array of objects to render rows in the table
Use Object.keys() to dynamically generate table headers
Utilize CSS for styling the table
Event loop is a mechanism in JavaScript that allows for asynchronous operations to be executed in a non-blocking way.
Event loop is responsible for handling the execution of code in a single-threaded environment.
It continuously checks the call stack for any functions that need to be executed.
If the call stack is empty, it looks at the task queue for any pending tasks to be executed.
Event loop ensures that JavaScript rem...
I applied via LinkedIn and was interviewed in Aug 2024. There were 2 interview rounds.
Discussion about javascript concepts
Coding for react components
Props are used to pass data from parent to child components in React, while data refers to the information stored within a component.
Props are read-only and cannot be modified by the child component.
Data is mutable and can be changed within the component.
Props are passed down from parent to child components, while data is stored within the component itself.
Example: Passing a 'name' prop from a parent component to a chi...
50 minutes coding round they asked me some theoretical question and machine coding question they asked me DSA question
Mathematics question
React JS is a JavaScript library for building user interfaces.
React JS is a front-end library developed by Facebook.
It allows developers to create interactive user interfaces.
React uses a component-based architecture for building reusable UI components.
It uses a virtual DOM for efficient rendering of UI components.
React can be used to build single-page applications, mobile apps, and more.
Hooks in React are functions that let you use state and other React features without writing a class.
Hooks were introduced in React 16.8.
They allow you to use state and other React features in functional components.
Some commonly used hooks are useState, useEffect, useContext, and useRef.
Hooks help in reusing stateful logic across components.
Example: useState hook is used to add state to a functional component.
What people are saying about Infosys
based on 23 interviews
2 Interview rounds
based on 3 reviews
Rating in categories
Hyderabad / Secunderabad,
Chennai
+12-7 Yrs
Not Disclosed
Hyderabad / Secunderabad,
Chennai
+13-8 Yrs
Not Disclosed
Technology Analyst
55.7k
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Systems Engineer
50.6k
salaries
| ₹0 L/yr - ₹0 L/yr |
System Engineer
39.5k
salaries
| ₹0 L/yr - ₹0 L/yr |
Technical Lead
30.8k
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Associate Consultant
28k
salaries
| ₹0 L/yr - ₹0 L/yr |
TCS
Wipro
Cognizant
Accenture