Mphasis pvt limited interview experience Real time questions & tips from candidates to crack your interview

Associate Software Engineer

Mphasis pvt limited
upvote
share-icon
4 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Journey
I was always interested to see myself as a software developer so when the campus placement came I saw a number of IT companies coming to our college. we were trained in C,C++ and Python from the second year and we have participated and won many hackathons throughout our time in college. We sat for the placement drive and I got the offer from an Indian multinational company called Mphasis.
Application story
It was a on campus placement so I applied through a Google form sent by my college placement team. The first round we had a online screening test at Hackerrank. The online test consisted of MCQ question based on OOPS concepts and 2 coding questions and we were allowed to use C, c++, python and Java. There were 10 test cases. Then few people were shortlisted and the second round was Group Discussion round. So we were given a topic and expected to give our views on it. The third round was technical interview and it lasted for around 1 hr and we were asked to solve a coding question by presenting our screen. The follow are the concepts where questions were raised. DATA TYPES IN PYTHON DIFFERENCE BETWEEN TUPLE AND DICTIONARY HOW TO OVERCOME MULTIPLE INHERITANCE HOW TO RESOLVE MULTIPLE INHERITANCE WHAT IS MONKEY PATCHING AND CODING EXAMPLE WHAT IS ENCAPSULATION WRITE A PROGRAM USING CLASS AND OBJECT WHAT IS CONSTRUCTOR Questions in C Pointers, arrays memory management Session layer and its functions ,TCP/IP protocol ,diff btw ipv4 and ipv6 About project Pointers arrays oops c++, java Data structure Binary search tree Linked list stack Bubble sort DBMS Write a program for sorting array in c overloading overriding Post technical interview we had hr round which was around some basic Hr questions and the our interest for mphasis and service aggreement discussion
Why selected/rejected for the role?
I was selected for my good performance during interview and my skills are particularly well-suited to this position so they choose to select me.
Preparation
Duration: 6 months
Topics: Data Structures and Algorithm, Competitive Programming, Spring boot, Cloud Security and Database Management System
Tip
Tip

Tip 1 : Start your preparation from 2nd year itself and make sure you put all your projects in GitHub.
Tip 2 : Prepare atleast one programming language thoroughly.
Tip 3 : Practice Mock interview questions in codechef and Leetcode on daily basis

Application process
Where: Campus
Eligibility: 6 CGPA
Resume Tip
Resume tip

Tip 1: Put only what you know in resume
Tip 2: put some projects so that you can speak about those confidently

Interview rounds

01
Round
Easy
Online Coding Interview
Duration90 mins
Interview date18 Aug 2021
Coding problem2

1. Sort Array

Moderate
15m average time
85% success
0/80
Asked in companies
HSBCHCL TechnologiesOYO

You are given an array consisting of 'N' positive integers where each integer is either 0 or 1 or 2. Your task is to sort the given array in non-decreasing order.

Note :
1. The array consists of only 3 distinct integers 0, 1, 2.
2. The array is non-empty.
Problem approach

The program starts by declaring an integer arraya of size 100 and variables n (for the size of the array), i and j (for loop iteration), and temp (to store temporary values during sorting).
The user is prompted to enter the size of the array, which is stored in the variable n. The program then uses a for loop to prompt the user to enter values for each element in the array, which are stored in the array a.
The program then uses nested for loops to iterate over each element in the array a and compare it with every other element in the array. If an element is greater than the element it is being compared to, the two elements are swapped. This process continues until the entire array is sorted in ascending order.
Finally, the program prints the sorted array using another for loop.

Try solving now

2. Debugging Question

In the below snippet code, Is m1() correctly overridden in the subclasses of class X?

public class One 

void m1()
{



public class Two extends One 

@Override 
protected void m1()

System.out.println("m1-Two"); 


public class Three extends Two 

@Override 
public void m1()

System.out.println("m1-Three"); 

}
Ans: Yes

Problem approach

m1() method is correctly overridden in the subclasses of class X.

02
Round
Easy
Group Discussion
Duration30 mins
Interview date20 Aug 2021
Coding problem1

We were a batch of 10 folks. And it was afternoon. We were said to speak on Mobile Phone Application and it's threat to Cuber Security. I spoke on Pro's to it.

1. GD Topic

Mobile Phone Application and it's threat to Cuber Security

03
Round
Easy
Face to Face
Duration60 mins
Interview date22 Aug 2021
Coding problem1

The interview was on Google meet and lasted for 1 hour

1. What will be the output of the following program?

package overridingPrograms; 
public class X 

void draw(int a, float b) throws Throwable

System.out.println("Circle"); 


public class Y extends X 

@Override
void draw(int a, float b)

System.out.println("Rectangle"); 


public class Z extends Y 

@Override 
void draw(int a, float b) throws ArithmeticException

System.out.println("Square"); 


public class Test 

public static void main(String[] args) throws Throwable 

X x = new Y(); 
x.draw(20, 30.5f); 
Y y = (Y)x; 
y.draw(10,2.9f); 
Z z = (Z)y; 
z.draw(20, 30f); 

}

Problem approach

x.draw(20,30.5f); will call draw method of class Y because the reference variable is pointing to the objects of class Y. Therefore, the output is “Rectangle”.

2. When the statement Y y = (Y)x; will be executed, JVM will perform downcasting. When the reference variable of child class refers to the object of a parent class, it is known as downcasting.

Here, the reference variable y is pointing to the reference x of the parent class X but x is pointing to the objects of Class Y. So, y is pointing to the objects of class Y. Therefore, y.draw(10, 2.9f); will call draw method of class Y and the output will be “Rectangle”.

3. When the statement Z z = (Z)y; will be executed, JVM will throw ClassCastException because Y cannot be cast to Z.

04
Round
Easy
HR Round
Duration10 mins
Interview date24 Aug 2021
Coding problem1

It was late night

1. Basic HR Questions

Introduce yourself

Why mphasis

Tell me about your weakness and strength

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
Associate Software Engineer
3 rounds | 3 problems
Interviewed by Mphasis pvt limited
920 views
1 comments
0 upvotes
Associate Software Engineer
3 rounds | 3 problems
Interviewed by Mphasis pvt limited
1448 views
0 comments
0 upvotes
Associate Software Engineer
3 rounds | 2 problems
Interviewed by Mphasis pvt limited
1177 views
0 comments
0 upvotes
Associate Software Engineer
4 rounds | 3 problems
Interviewed by Mphasis pvt limited
2769 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Associate Software Engineer
3 rounds | 10 problems
Interviewed by Amdocs
2410 views
0 comments
0 upvotes
company logo
Associate Software Engineer
3 rounds | 2 problems
Interviewed by Ernst & Young (EY)
2775 views
0 comments
0 upvotes
company logo
Associate Software Engineer
3 rounds | 15 problems
Interviewed by Ernst & Young (EY)
2405 views
0 comments
0 upvotes