i
Mphasis
Filter interviews by
I applied via Naukri.com and was interviewed in Jun 2021. There were 3 interview rounds.
I applied via Campus Placement and was interviewed in Aug 2020. There were 4 interview rounds.
A program to replace a character with another character in Java.
Create a string variable with the original text
Use the replace() method to replace the character with another character
Print the new string with the replaced character
I applied via Campus Placement and was interviewed in Nov 2020. There were 3 interview rounds.
Program to print unique elements in an array in Java
Create a HashSet to store unique elements
Iterate through the array and add each element to the HashSet
Print the HashSet to get the unique elements
Data structures are ways of organizing and storing data in a computer so that it can be accessed and used efficiently.
Arrays - a collection of elements of the same type
Linked Lists - a sequence of nodes where each node contains a reference to the next node
Stacks - a collection of elements with two main operations: push (add) and pop (remove)
Queues - a collection of elements with two main operations: enqueue (add) and d...
OOPs stands for Object-Oriented Programming. It is a programming paradigm based on the concept of objects.
OOPs focuses on creating objects that contain both data and functions.
It emphasizes on encapsulation, inheritance, and polymorphism.
Examples of OOPs languages are Java, C++, Python, etc.
OOPs is used for creating modular, reusable and maintainable code.
Encapsulation: Hiding implementation details and exposing only necessary information.
Inheritance: Reusing code and creating a hierarchy of classes.
Polymorphism: Using a single interface to represent multiple entities.
Abstraction: Reducing complexity by hiding unnecessary details.
Examples: Java, C++, Python, Ruby, etc.
Inheritance is a mechanism in object-oriented programming where a new class is created by inheriting properties of an existing class.
Inheritance allows code reuse and promotes code organization.
The existing class is called the parent or superclass, and the new class is called the child or subclass.
The child class inherits all the properties and methods of the parent class and can also add its own unique properties and ...
Polymorphism is the ability of an object to take on many forms.
It allows objects of different classes to be treated as if they were objects of the same class.
It is achieved through method overriding and method overloading.
Example: A parent class Animal can have child classes like Dog, Cat, and Bird, each with their own unique implementation of the method 'makeSound'.
Polymorphism makes code more flexible and reusable.
Abstraction is the process of hiding complex implementation details and exposing only the necessary information.
Abstraction helps in reducing complexity and increasing efficiency.
It allows us to focus on the essential features of an object or system.
For example, a car can be abstracted as a vehicle with certain properties like speed, fuel efficiency, and seating capacity.
Abstraction can be achieved through interfaces,
Encapsulation is the process of hiding implementation details and providing a public interface for accessing the functionality.
Encapsulation helps in achieving data abstraction and information hiding
It prevents unauthorized access to the internal details of an object
It allows for easy modification of implementation without affecting the external code
Example: A class with private variables and public methods
Example: A b...
I applied via Naukri.com and was interviewed in Jan 2021. There were 3 interview rounds.
I applied via Naukri.com and was interviewed before Mar 2022. There were 3 interview rounds.
The question asks for information about current salary, notice period, and expected salary.
Provide the current salary, notice period, and expected salary.
If you don't have the information, mention that you don't have the data.
Format the response in JSON.
I applied via Campus Placement and was interviewed before Aug 2021. There were 3 interview rounds.
The first round was an aptitude test with questions ranging from basic mathematical concepts to logical/analytical questions. English was also included in the test. The difficulty was medium and I was able to solve 70-80% of the questions.
Two coding questions were the part of the test. I was supposed to solve and pass all the test cases for both the questions. The coding questions tested my knowledge in the field of arrays, loops and pointers. I was able to solve one and partially solve another.
I applied via Campus Placement and was interviewed before Sep 2021. There were 4 interview rounds.
Prepare normal for aptitude - maths, quant, analytic
My GD topic was Is internet good for students or not
I didn't attempt this as I was noob back in third year Engg
I applied via Campus Placement and was interviewed before Oct 2021. There were 4 interview rounds.
Aptitude test has aptitude, logical and 2 coding questions
Remove duplicate objects from an array of multiple objects.
Create a new array to store unique objects
Loop through the original array and check if the object already exists in the new array
If not, add it to the new array
Return the new array
Maintain state by using a global variable or a state management system.
Use a global variable to store the state and access it whenever needed.
Use a state management system like Redux or MobX to manage the state.
Avoid using local variables or closures to store state as they will be lost when the code is repeated.
Consider using object-oriented programming principles to encapsulate state within objects.
Use functional prog...
based on 2 interviews
Interview experience
based on 4 reviews
Rating in categories
Software Engineer
6.5k
salaries
| ₹2 L/yr - ₹9.5 L/yr |
Senior Software Engineer
5.7k
salaries
| ₹6 L/yr - ₹24 L/yr |
Associate Software Engineer
4.7k
salaries
| ₹2 L/yr - ₹6 L/yr |
Module Lead
2.4k
salaries
| ₹9.5 L/yr - ₹36 L/yr |
Transaction Processing Officer
2.3k
salaries
| ₹1.4 L/yr - ₹4.5 L/yr |
Cognizant
Wipro
Accenture
TCS