Upload Button Icon Add office photos

Filter interviews by

Mphasis Senior PHP Developer Interview Questions and Answers

Updated 2 Feb 2024

Mphasis Senior PHP Developer Interview Experiences

1 interview found

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(1 Question)

  • Q1. Explain how CSRF token works/uses in laravel
  • Ans. 

    CSRF token is used to protect against Cross-Site Request Forgery attacks in Laravel.

    • CSRF token is a unique token generated for each user session.

    • It is added to forms or AJAX requests to verify the authenticity of the request.

    • Laravel automatically generates and verifies CSRF tokens for each request.

    • CSRF tokens can be added to forms using the @csrf Blade directive.

    • CSRF tokens can be added to AJAX requests using the X-CSR

  • Answered by AI

Skills evaluated in this interview

Interview questions from similar companies

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Recruitment Consulltant and was interviewed before Nov 2022. There were 4 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Technical 

(1 Question)

  • Q1. Normal PHP related questions with oops concepts. Interviewer can ask to solve a problem.
Round 3 - Technical 

(1 Question)

  • Q1. Advanced PHP questions with coding test
Round 4 - HR 

(1 Question)

  • Q1. Ask about expectations, previous experience, and existing interview experience
Interview experience
1
Bad
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected
Round 1 - Technical 

(1 Question)

  • Q1. React hooks, nodejs routing, metadata, aws deployment process, microservices, dom, event loop

Interview Preparation Tips

Interview preparation tips for other job seekers - Interview was for only 30 mins, the interviewer was also not aware that interview is 30 mins only. he said to answer the questions fast, asked questions from front end, backend, database, deployment everything in 30 mins. The interviewer did not seem interested in hearing the answers, he was moving the next question event before i finished speaking. Very bad experience. I answer all the questions well, still received rejection mail with 30 seconds of interview got over. felt like he had pre-decided to reject and was not interested in the interview. The HR was also very rude and did got give detailed feedback when questioned on the reason for rejection.
Interview experience
3
Average
Difficulty level
Hard
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Referral and was interviewed in Dec 2024. There were 2 interview rounds.

Round 1 - Technical 

(3 Questions)

  • Q1. Run time polymorphism code
  • Q2. Linked list code
  • Q3. Deep copy shallow copy differences
  • Ans. 

    Deep copy creates a new copy of an object with its own unique memory space, while shallow copy creates a new object that references the same memory locations as the original object.

    • Deep copy duplicates all nested objects, while shallow copy only duplicates the references to nested objects.

    • Deep copy ensures that changes to the copied object do not affect the original object, while shallow copy may lead to unintended sid...

  • Answered by AI
Round 2 - Technical 

(2 Questions)

  • Q1. More deep questions about polymorphism code
  • Q2. Code for interchange of strings without strcpy
  • Ans. 

    Use a loop to swap characters of two strings without using strcpy function.

    • Create two arrays of characters to store the strings

    • Use a loop to iterate through each character of the strings and swap them

    • Ensure to handle cases where strings have different lengths

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - please prepare oops concept and data structure well because its easy for first round but for second round its too difficult - the interviewer was so irritating and asked very stupid wuestions
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
No response

I applied via Walk-in and was interviewed in Nov 2024. There were 3 interview rounds.

Round 1 - Coding Test 

It's walkin, so they conducted 1 technical mcqs round.

Round 2 - Technical 

(11 Questions)

  • Q1. Multi threading
  • Q2. Internal working of hashmap
  • Ans. 

    HashMap in Java is a data structure that stores key-value pairs and uses hashing to efficiently retrieve values based on keys.

    • HashMap uses an array of buckets to store key-value pairs.

    • Keys are hashed to determine the index in the array where the key-value pair will be stored.

    • In case of hash collisions, a linked list or a balanced tree is used to store multiple key-value pairs in the same bucket.

    • HashMap allows null keys...

  • Answered by AI
  • Q3. Spring batch related
  • Q4. Non repeating characters in a array
  • Ans. 

    Function to find and return all non-repeating characters in an array of strings.

    • Iterate through the array and count the occurrences of each character using a HashMap.

    • Then iterate through the array again and check if the count of each character is 1, if so add it to the result list.

    • Return the list of non-repeating characters.

  • Answered by AI
  • Q5. 3rd highest salary
  • Ans. 

    To find the 3rd highest salary in a database, we can use a SQL query with the 'LIMIT' and 'OFFSET' keywords.

    • Use a SQL query with 'ORDER BY salary DESC' to sort the salaries in descending order.

    • Use 'LIMIT 1 OFFSET 2' to skip the first two highest salaries and retrieve the third highest salary.

    • Example: SELECT salary FROM employees ORDER BY salary DESC LIMIT 1 OFFSET 2;

  • Answered by AI
  • Q6. Qualifier vs primary
  • Ans. 

    A qualifier in Java is used to specify additional information about a primary, which is the main data type or variable.

    • A primary in Java is the main data type or variable, while a qualifier provides additional information about the primary.

    • Qualifiers can be used to modify the behavior or characteristics of a primary.

    • For example, in Java, 'final' is a qualifier that can be used to make a variable constant.

  • Answered by AI
  • Q7. Controller vs restcontroller
  • Ans. 

    The main difference is that @RestController is a specialized version of @Controller that is used for RESTful web services.

    • Both @Controller and @RestController are used in Spring MVC to handle HTTP requests, but @RestController is specifically used for RESTful web services.

    • @Controller is used to create web pages, while @RestController is used to return data in JSON or XML format.

    • @RestController is a convenience annotati...

  • Answered by AI
  • Q8. Spring boot annotataions
  • Q9. Oops concepts with examples
  • Ans. 

    OOP concepts include inheritance, encapsulation, polymorphism, and abstraction.

    • Inheritance: Allows a class to inherit properties and behavior from another class. Example: class Dog extends Animal.

    • Encapsulation: Bundling data and methods that operate on the data into a single unit. Example: private variables with public getter and setter methods.

    • Polymorphism: Ability for objects to be treated as instances of their paren...

  • Answered by AI
  • Q10. Spring batch configuration
  • Q11. They covered all java, spring and Microservices
Round 3 - Technical 

(4 Questions)

  • Q1. Microservices architecture
  • Q2. How do Microservices communicate
  • Ans. 

    Microservices communicate with each other through various communication protocols like HTTP, messaging queues, and gRPC.

    • Microservices can communicate over HTTP using RESTful APIs.

    • Messaging queues like RabbitMQ or Kafka can be used for asynchronous communication between microservices.

    • gRPC is a high-performance, open-source RPC framework that can be used for communication between microservices.

    • Service discovery mechanism...

  • Answered by AI
  • Q3. How to access the Microservice end point
  • Ans. 

    Microservice endpoints can be accessed using HTTP requests with the appropriate URL

    • Use HTTP methods like GET, POST, PUT, DELETE to interact with the microservice

    • Construct the URL with the base URL of the microservice and the specific endpoint path

    • Include any necessary headers or parameters in the request for authentication or data filtering

  • Answered by AI
  • Q4. Why we use microservices
  • Ans. 

    Microservices allow for modular, scalable, and flexible software development by breaking down applications into smaller, independent services.

    • Microservices enable easier maintenance and updates as each service can be developed, deployed, and scaled independently.

    • They improve fault isolation, as failures in one service do not necessarily affect the entire application.

    • Microservices promote agility and faster time-to-mark...

  • Answered by AI

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
Selected Selected

I applied via Naukri.com and was interviewed in Nov 2024. There were 2 interview rounds.

Round 1 - One-on-one 

(2 Questions)

  • Q1. Admin part and mainly LWC development
  • Q2. Case study on devlopment part
Round 2 - One-on-one 

(1 Question)

  • Q1. Last project details and more technical skills and real-time cases
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
No response

I applied via Company Website and was interviewed in Nov 2024. There were 3 interview rounds.

Round 1 - Aptitude Test 

A standard online test conducted through one of the testing platforms.

Round 2 - Technical 

(4 Questions)

  • Q1. Java 8 features
  • Q2. Rest API
  • Q3. Java 8 coding problem
  • Q4. Collections
Round 3 - Technical 

(1 Question)

  • Q1. It was based on my previous project
Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Aptitude Test 

SQL , CODING QUESTION PYTHON

Round 2 - Technical 

(2 Questions)

  • Q1. BASIC SQL QUESTIOS
  • Q2. OOPS 4 PILLARS INHERITANCE ETC
Round 3 - HR 

(2 Questions)

  • Q1. TELL ME ABOUT YOURSELF
  • Ans. 

    I am a software developer with 5 years of experience in Java, Python, and SQL.

    • 5 years of experience in Java, Python, and SQL

    • Strong problem-solving skills

    • Experience working in Agile development environment

    • Familiarity with version control systems like Git

    • Passionate about learning new technologies

  • Answered by AI
  • Q2. WHAT DO YOU KNOW ABOUT YOUR COMPANY
  • Ans. 

    Company is a leading software development firm specializing in creating innovative solutions for various industries.

    • Company has a strong reputation for delivering high-quality software products

    • Specializes in creating custom solutions for clients in different industries

    • Known for innovative and cutting-edge technology solutions

    • Has a diverse portfolio of successful projects

    • Company values teamwork and collaboration in thei

  • Answered by AI
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
No response

I applied via Approached by Company and was interviewed in Jun 2024. There was 1 interview round.

Round 1 - Technical 

(6 Questions)

  • Q1. Can we call future method from batch class
  • Ans. 

    Yes, future methods can be called from a batch class in Salesforce.

    • Future methods can be called from batch classes to perform asynchronous processing.

    • This can be useful for offloading long-running tasks to future methods to avoid hitting governor limits.

    • Example: Calling a future method from a batch class to update records in Salesforce asynchronously.

  • Answered by AI
  • Q2. What's the use of @track decorator. Is it mandatory to explicitly use it? If yes, for which use case?
  • Ans. 

    The @track decorator in Salesforce is used to track changes to a property in a Lightning web component.

    • Used to make a property reactive and trigger re-renders when its value changes

    • Not mandatory but recommended for properties that need to be reactive

    • Use @track when you want changes to a property to be reflected in the UI

  • Answered by AI
  • Q3. When does APEX CPU Limit Exceeded error happens. What's the best practice to avoid getting this error?
  • Ans. 

    APEX CPU Limit Exceeded error happens when code consumes too much CPU time. Best practices include optimizing code, reducing loops, and using asynchronous processing.

    • Avoid using nested loops and optimize code for better performance

    • Use asynchronous processing like @future or Queueable to offload CPU intensive tasks

    • Limit the use of SOQL queries inside loops to reduce CPU consumption

  • Answered by AI
  • Q4. When does Mixed DML Exception occurs?
  • Ans. 

    Mixed DML Exception occurs when DML operations are performed on setup and non-setup objects in a single transaction.

    • Occurs when DML operations are performed on both setup and non-setup objects in a single transaction

    • Setup objects include User, Profile, PermissionSet, etc.

    • Non-setup objects include custom objects, standard objects like Account, Contact, etc.

  • Answered by AI
  • Q5. Debug the following code: var a=10; function abc() { console.log(a); var a=2; } abc();
  • Ans. 

    The code will output 'undefined' because variable 'a' is hoisted within the function.

    • Variable 'a' is hoisted to the top of the function scope, so when 'console.log(a)' is called, 'a' is undefined.

    • To fix this, move the declaration of 'var a=2;' above the 'console.log(a);' statement.

  • Answered by AI
  • Q6. Write a SOQL query to fetch the values of description field from the Account. Why does "the description field cannot be filtered in the query call"?
  • Ans. 

    SOQL query to fetch description field from Account and reason for inability to filter

    • SOQL query: SELECT Description FROM Account

    • Description field is not filterable because it is a long text field

    • Long text fields cannot be filtered in SOQL queries

  • Answered by AI

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
-

I applied via Naukri.com and was interviewed in Oct 2024. There were 2 interview rounds.

Round 1 - Aptitude Test 

Quantitative , figure ,mcq question based on tech stack and 2 coding question which are basic. 90 minute time limit.

Round 2 - Technical 

(2 Questions)

  • Q1. Angular question
  • Q2. .net question and sql question

Mphasis Interview FAQs

How many rounds are there in Mphasis Senior PHP Developer interview?
Mphasis interview process usually has 1 rounds. The most common rounds in the Mphasis interview process are Technical.
How to prepare for Mphasis Senior PHP Developer interview?
Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at Mphasis. The most common topics and skills that interviewers at Mphasis expect are Ajax, Front End, JSON, Javascript and PHP.

Tell us how to improve this page.

Mphasis Senior PHP Developer Interview Process

based on 1 interview

Interview experience

4
  
Good
View more

Interview Questions from Similar Companies

TCS Interview Questions
3.7
 • 10.4k Interviews
Infosys Interview Questions
3.7
 • 7.6k Interviews
Wipro Interview Questions
3.7
 • 5.6k Interviews
Tech Mahindra Interview Questions
3.5
 • 3.8k Interviews
HCLTech Interview Questions
3.5
 • 3.8k Interviews
LTIMindtree Interview Questions
3.8
 • 3k Interviews
DXC Technology Interview Questions
3.7
 • 805 Interviews
Nagarro Interview Questions
4.0
 • 776 Interviews
View all
Mphasis Senior PHP Developer Salary
based on 6 salaries
₹7.5 L/yr - ₹8.5 L/yr
10% more than the average Senior PHP Developer Salary in India
View more details

Mphasis Senior PHP Developer Reviews and Ratings

based on 1 review

2.0/5

Rating in categories

1.0

Skill development

2.0

Work-life balance

2.0

Salary

5.0

Job security

2.0

Company culture

1.0

Promotions

2.0

Work satisfaction

Explore 1 Review and Rating
Software Engineer
6.3k salaries
unlock blur

₹2 L/yr - ₹11 L/yr

Senior Software Engineer
5.6k salaries
unlock blur

₹6 L/yr - ₹23 L/yr

Associate Software Engineer
4.6k salaries
unlock blur

₹2 L/yr - ₹7 L/yr

Module Lead
2.4k salaries
unlock blur

₹8.1 L/yr - ₹33 L/yr

Transaction Processing Officer
2.3k salaries
unlock blur

₹1.4 L/yr - ₹4.5 L/yr

Explore more salaries
Compare Mphasis with

Cognizant

3.8
Compare

Wipro

3.7
Compare

Accenture

3.9
Compare

TCS

3.7
Compare
Did you find this page helpful?
Yes No
write
Share an Interview