i
Infosys
Filter interviews by
I was interviewed in Aug 2024.
Java code to reverse a string using StringBuilder
Create a StringBuilder object with the input string
Use the reverse() method of StringBuilder to reverse the string
Convert the reversed StringBuilder object back to a string using toString()
To maximize screen in a webpage, use CSS properties like 'width: 100%' and 'height: 100vh'.
Set 'width: 100%' to make the content fill the entire width of the screen
Use 'height: 100vh' to make the content fill the entire height of the viewport
Consider using media queries for responsive design
I applied via Company Website and was interviewed in Oct 2023. There were 3 interview rounds.
React offers a component-based architecture, virtual DOM for performance optimization, and a strong community support.
Component-based architecture allows for reusability and easier maintenance of code.
Virtual DOM helps in improving performance by only updating the necessary parts of the actual DOM.
React has a strong community support with a vast ecosystem of libraries and tools available.
React allows for server-side re...
State is mutable and managed within the component, while props are immutable and passed from parent component.
State is managed within the component and can be changed using setState() method
Props are passed from parent component to child component and cannot be changed by the child component
State is used for internal component data management, while props are used for passing data from parent to child components
useReducer is a React hook that manages state changes through a specified reducer function. useContext is a hook that allows access to a context object.
useReducer is used for managing complex state logic in React applications.
It takes in a reducer function and an initial state, and returns the current state and a dispatch function.
Example: const [state, dispatch] = useReducer(reducer, initialState);
useContext is used f...
One way data binding is a unidirectional flow of data from the model to the view in React applications.
Data flows from the model (or source of truth) to the view, but not vice versa.
Changes in the model automatically update the view, but changes in the view do not affect the model.
Helps in maintaining a clear and predictable data flow in React components.
I have used useState, useEffect, useContext, useReducer, and useRef hooks in my projects.
useState - for managing state in functional components
useEffect - for handling side effects in functional components
useContext - for accessing context in functional components
useReducer - for managing complex state logic in functional components
useRef - for accessing DOM elements or storing mutable values
Redux middleware is a function that intercepts actions before they reach the reducer.
Middleware can be used for logging, crash reporting, asynchronous API calls, etc.
It sits between the action dispatch and the reducer.
Examples of popular middleware include redux-thunk and redux-saga.
Git commands for committing, merging code, and resolving merge conflicts
To commit code: git commit -m 'Commit message'
To merge code from a branch: git merge branch_name
To resolve merge conflicts: manually edit the conflicting files, add changes, and then commit the merge
It's 10 multiple-choice question with low,medium, and difficult range levels.
Sprint Zero is a preparatory phase before the start of the first official sprint in Scrum.
Sprint Zero focuses on setting up the project, team, and environment.
Activities in Sprint Zero may include creating the project backlog, setting up development tools, and defining team roles.
Sprint Zero helps in laying the foundation for a successful project by addressing any initial setup or preparation tasks.
It is not a mandator...
Infosys interview questions for popular designations
Find the next greater element in an array of strings.
Iterate through the array and for each element, compare it with the elements to its right to find the next greater element.
Use a stack to keep track of elements whose next greater element is yet to be found.
If the current element is greater than the top element in the stack, update the next greater element for the top element and pop it from the stack.
Continue this p...
Interviewer gave me 3 question of 1 easy and 2 medium level questions
Get interview-ready with Top Infosys Interview Questions
I applied via Company Website and was interviewed in May 2024. There was 1 interview round.
I applied via Referral and was interviewed in Apr 2024. There was 1 interview round.
I applied via Job Portal and was interviewed in Jan 2024. There were 2 interview rounds.
I applied via Naukri.com and was interviewed in Dec 2023. There were 2 interview rounds.
The question covers topics like internal working of HashSet, HashMap vs HashTable, IoC container, Spring boot annotations, and current project details.
HashSet is implemented using a hash table, HashMap is implemented using a hash table with key-value pairs, and HashTable is a synchronized version of HashMap.
ArrayList is a dynamic array that can grow or shrink in size, and the output of a code snippet depends on the spe...
What people are saying about Infosys
Some of the top questions asked at the Infosys interview for experienced candidates -
The duration of Infosys interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 1.2k interviews
Interview experience
based on 38.7k reviews
Rating in categories
Technology Analyst
56k
salaries
| ₹3 L/yr - ₹11 L/yr |
Senior Systems Engineer
50.4k
salaries
| ₹2.8 L/yr - ₹8 L/yr |
System Engineer
39.4k
salaries
| ₹2.5 L/yr - ₹5.5 L/yr |
Technical Lead
30.8k
salaries
| ₹5.2 L/yr - ₹19.5 L/yr |
Senior Associate Consultant
27.7k
salaries
| ₹6.2 L/yr - ₹17 L/yr |
TCS
Wipro
Cognizant
Accenture