i
Mphasis
Filter interviews by
Clear (1)
I was interviewed in Jul 2021.
Round duration - 60 minutes
Round difficulty - Medium
Technical interview round that lasted for about 60 minutes. Questions based on Java and Java Design patterns were asked.
A Singleton class in Java ensures that only one instance of the class is created and provides a global point of access to it.
Use a private static instance variable to hold the single instance of the class.
Make the constructor private to prevent instantiation from outside the class.
Provide a public static method to access the single instance, creating it if necessary.
Factory Pattern can be used to create objects without exposing the instantiation logic to the client.
Used when a class can't anticipate the class of objects it must create
Helps in creating objects without specifying the exact class of object that will be created
Encapsulates object creation logic in a separate class
Promotes loose coupling between classes
Static binding is resolved at compile time, while dynamic binding is resolved at runtime.
Static binding is also known as early binding, while dynamic binding is known as late binding.
Static binding is achieved using method overloading, while dynamic binding is achieved using method overriding.
Example of static binding: function overloading in C++.
Example of dynamic binding: method overriding in Java.
Abstract class can have both abstract and non-abstract methods, while interface can only have abstract methods.
Abstract class can have constructors, member variables, and methods with implementation.
Interface can only have abstract methods and constants.
A class can implement multiple interfaces but can only extend one abstract class.
Example: Abstract class - Animal with abstract method 'eat', Interface - Flyable with m
Round duration - 45 minutes
Round difficulty - Medium
Technical interview round that lasted for about 45 minutes. Questions based on SQL, DBMS and Entity Framework were asked.
SQL injection is a type of cyber attack where malicious SQL code is inserted into input fields to manipulate a database.
SQL injection is a common web application security vulnerability.
Attackers can inject malicious SQL code into input fields to access or manipulate database data.
This can lead to unauthorized access, data leakage, data manipulation, and even complete database compromise.
Example: Entering ' OR '1'='1' i
A weak entity set is an entity set that does not have sufficient attributes to form a primary key on its own.
Weak entity sets depend on another entity set (strong entity set) to form a primary key.
They have a partial key which is a set of attributes that can uniquely identify entities within the weak entity set.
Examples include 'Order Item' which depends on 'Order' entity set to uniquely identify each item.
Another exam...
The SQL query to fetch the first 5 characters of a string is achieved using the SUBSTRING function.
Use the SUBSTRING function in SQL to extract the first 5 characters of a string.
The syntax is: SELECT SUBSTRING(column_name, 1, 5) FROM table_name;
For example, SELECT SUBSTRING('Hello World', 1, 5) will return 'Hello'.
Clustered indexes physically order the data in the table, while non-clustered indexes do not.
Clustered indexes determine the physical order of data in the table, while non-clustered indexes do not.
Clustered indexes are faster for retrieval of data, as they eliminate the need for sorting, while non-clustered indexes require an additional lookup step.
Tables can have only one clustered index, but multiple non-clustered in...
Round duration - 40 minutes
Round difficulty - Easy
Technical interview round that lasted for about 45 minutes. Questions based on React js and Web APIs were asked.
Synthetic events in React are cross-browser wrappers around the browser's native events.
Synthetic events are created by React to normalize browser events and ensure consistent behavior across different browsers.
They are instances of SyntheticEvent, which is a cross-browser wrapper around the browser's native event.
Synthetic events have the same interface as native events but are implemented independently to work consis...
React component lifecycle methods control the behavior of components during creation, updating, and destruction.
Mounting: constructor, render, componentDidMount
Updating: render, componentDidUpdate
Unmounting: componentWillUnmount
Main return types in Web API include HttpResponseMessage, IHttpActionResult, and void.
HttpResponseMessage: Represents an HTTP response message.
IHttpActionResult: Represents an HTTP response that can be returned from a controller action.
void: Indicates that the action does not return a value.
REST API is an architectural style, while RESTful API is an API that follows the principles of REST.
REST API is an architectural style that defines a set of constraints for creating web services.
RESTful API is an API that follows the principles of REST, such as using HTTP methods and URIs to perform actions.
REST API focuses on system design, while RESTful API focuses on the implementation of the API.
An example of a RES...
Round duration - 30 minutes
Round difficulty - Easy
Typical HR round where behavioral questions were asked.
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
I applied via Naukri.com and was interviewed in Sep 2021. There was 1 interview round.
I applied via Naukri.com and was interviewed in Jun 2021. There were 3 interview rounds.
Liskov Principle is a principle of object-oriented programming that states that objects of a superclass should be replaceable with objects of its subclasses without affecting the correctness of the program.
Named after Barbara Liskov, a computer scientist who introduced the principle in 1987
Also known as Liskov Substitution Principle (LSP)
Helps in designing classes that are easy to extend and maintain
Violation of LSP ca...
Factory Design Pattern is a creational pattern that provides an interface for creating objects in a superclass, but allows subclasses to alter the type of objects that will be created.
Factory Design Pattern is used to create objects without exposing the creation logic to the client.
It provides a way to delegate the instantiation logic to child classes.
It promotes loose coupling by eliminating the need to bind applicati...
Runtime polymorphism is the ability of an object to take on multiple forms during runtime.
It is achieved through inheritance and method overriding.
The method called depends on the actual object type at runtime.
Example: Animal class with a speak() method, and Dog and Cat classes that inherit from Animal and override the speak() method.
When a Dog object calls speak(), the overridden method in the Dog class is executed.
Wh...
Dependency injection is a design pattern where objects are passed as dependencies rather than being created within a class.
Reduces coupling between classes
Increases testability and maintainability
Allows for easier swapping of dependencies
Examples: Constructor injection, Setter injection, Interface injection
Yes, I have worked with nUnit framework.
I have used nUnit for unit testing in C# projects.
I am familiar with its syntax and assertions.
I have integrated nUnit with Visual Studio for continuous testing.
I have used nUnit to test both simple and complex scenarios.
For example, I used nUnit to test a payment processing system.
I also used nUnit to test a complex algorithm for data analysis.
Endpoints are URLs that clients use to access resources in a WebAPI.
Endpoints are the entry points for a WebAPI.
They define the resources that can be accessed by clients.
Endpoints are identified by a URL and HTTP method.
Examples of endpoints include /api/users and /api/products.
Endpoints can have parameters that are passed in the URL or request body.
WebService is a software system designed to support interoperable machine-to-machine interaction over a network. WebApi is a framework for building HTTP services that can be consumed by a broad range of clients.
WebService uses SOAP protocol for communication while WebApi uses HTTP protocol.
WebService is platform-independent while WebApi is platform-dependent.
WebService supports only XML format while WebApi supports XML...
Singleton and static are both design patterns used to create objects with global access, but they differ in their implementation.
Singleton restricts the instantiation of a class to a single object, while static allows multiple instances.
Singleton provides a global point of access to the object, while static members are accessed through the class name.
Singleton can be lazy-loaded, while static members are initialized at...
Entity framework supports left/right join to pull details from joinee table.
Use LINQ to perform left/right join in Entity framework
Use DefaultIfEmpty() method to perform left join
Use join...into statement to perform right join
Example: var result = from employee in context.Employees
join department in context.Departments on employee.DepartmentId equals department.Id into empDept
from department in empDept.DefaultIfEmpty()
DI can be achieved through method, constructor, and property level patterns.
Method level DI involves passing dependencies as method parameters.
Constructor level DI involves passing dependencies as constructor parameters.
Property level DI involves setting dependencies as properties of an object.
Examples of DI frameworks that use these patterns include Spring and Unity.
Choosing the appropriate pattern depends on the spec
Select alternate rows from SQL
Use the modulo operator to filter alternate rows
Add a WHERE clause with the modulo operator
Example: SELECT * FROM table WHERE id % 2 = 0
Example: SELECT * FROM table WHERE MOD(id, 2) = 0
Clustered index determines physical order of data while non-clustered index has separate structure.
Clustered index determines the physical order of data in a table while non-clustered index has a separate structure.
Clustered index is faster for retrieval of data while non-clustered index is faster for retrieval of specific data.
A table can have only one clustered index while multiple non-clustered indexes can be create...
What people are saying about Mphasis
I applied via Recruitment Consulltant and was interviewed before Feb 2023. There was 1 interview round.
Dsa, spring boot REST
Mphasis interview questions for designations
I applied via Referral and was interviewed before Oct 2022. There were 3 interview rounds.
DB related queries asked to write
Get interview-ready with Top Mphasis Interview Questions
I applied via Naukri.com and was interviewed before Aug 2022. There was 1 interview round.
I applied via Recruitment Consultant and was interviewed in Sep 2021. There were 4 interview rounds.
I applied via Naukri.com and was interviewed in Jul 2021. There were 3 interview rounds.
Hashmap uses hashing to store key-value pairs, while linkedlist is a data structure used to store a collection of elements.
Hashmap uses a hash function to map keys to indices in an array, where the values are stored.
Linkedlist is a collection of nodes, where each node contains a value and a reference to the next node.
Hashmap can have collisions, where multiple keys map to the same index, which is resolved using separat...
A framework is a set of rules, guidelines, and standards that provide a structure for developing software applications.
A framework provides a foundation for building software applications
It includes pre-written code and libraries that can be reused
Frameworks can be used to speed up development time and improve code quality
Examples of popular frameworks include React, Angular, and Django
The duration of Mphasis Module Lead interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 28 interviews
3 Interview rounds
based on 243 reviews
Rating in categories
Software Engineer
6.3k
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Software Engineer
5.6k
salaries
| ₹0 L/yr - ₹0 L/yr |
Associate Software Engineer
4.7k
salaries
| ₹0 L/yr - ₹0 L/yr |
Module Lead
2.4k
salaries
| ₹0 L/yr - ₹0 L/yr |
Transaction Processing Officer
2.3k
salaries
| ₹0 L/yr - ₹0 L/yr |
Cognizant
Wipro
Accenture
TCS