i
Infosys
Filter interviews by
I was interviewed in Aug 2024.
General math topics and English grammer etc.
I applied via Company Website and was interviewed in May 2024. There were 2 interview rounds.
List and Tuple differences, ordering, indexing, and iteration
List is mutable, Tuple is immutable
Lists are ordered and indexed starting from 0, Tuples are also ordered but indexed starting from 0
Iterating through a List: for item in my_list: print(item)
Iterating through a Tuple: for item in my_tuple: print(item)
Decorator pattern allows adding new functionality to an object dynamically.
Decorator pattern involves adding new behaviors to objects by wrapping them in another object.
It allows for adding functionality without altering the original object.
Example: Adding logging functionality to a method by decorating it with a logging decorator.
Generate prime numbers from 1 to n
Iterate from 2 to n and check if each number is prime
Use a boolean array to mark non-prime numbers
Optimize by only checking up to square root of n
Infosys interview questions for popular 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
final, finally, and finalize are related to Java programming language.
final is a keyword used to restrict the user from changing the value of a variable.
finally is a block of code that is always executed, whether an exception is thrown or not.
finalize is a method used for cleanup operations before an object is garbage collected.
HashMap is a data structure that stores key-value pairs and uses hashing to efficiently retrieve values.
HashMap internally uses an array of linked lists to store key-value pairs.
When a key-value pair is added, the key is hashed to determine the index in the array where it will be stored.
If multiple keys hash to the same index, a linked list is used to handle collisions.
HashMap allows one null key and multiple null valu...
Fetch vs lazy loading in Java development
Fetch eagerly loads data when the query is executed, while lazy loading loads data only when it is needed
Fetch can lead to performance issues if unnecessary data is loaded, while lazy loading can improve performance by loading data on demand
Hibernate supports lazy loading for associations to avoid unnecessary database queries
Mapping properties in Spring using @Value annotation
Use @Value annotation to map properties from application.properties file
Specify the key of the property inside the @Value annotation
Example: @Value("${app.name}") private String appName;
Swapping two numbers without using a third variable in Java
Use bitwise XOR operation to swap two numbers without using a third variable
Example: a = 5, b = 10; a = a ^ b; b = a ^ b; a = a ^ b; // Now a = 10, b = 5
I applied via Referral and was interviewed in Aug 2024. There were 2 interview rounds.
Coding questions from leetcode. 15 minutes to solve
Life cycle hooks in Angular are functions that allow you to tap into specific points in a component's life cycle.
Angular components have several life cycle hooks such as ngOnInit, ngOnDestroy, ngOnChanges, etc.
These hooks allow you to perform actions at specific points in the component's life cycle, such as initialization, change detection, and destruction.
For example, ngOnInit is called after the component has been in...
Pure pipes do not change the input data, while impure pipes can change the input data.
Pure pipes are used for data transformation without side effects.
Impure pipes can have side effects and are used for operations like logging or API calls.
Pure pipes are faster as they are only executed when a pure change to the input is detected.
Impure pipes are executed on every change detection cycle.
Example: currency pipe is pure,
I applied via Naukri.com and was interviewed in Jul 2024. There were 2 interview rounds.
3 questions - 1 easy, 1 medium and 1 hard level questions were asked, if you solve between 1 and partial another u will be considered for DSE role if you solve 2 or more u will get PP role
What people are saying about Infosys
Some of the top questions asked at the Infosys interview -
The duration of Infosys interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 4.9k interviews
Interview experience
based on 39.4k reviews
Rating in categories
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