Table of Contents
Unlock Your Coding Potential with Our Python Programming Course – Enroll Today
Mphasis Recruitment Process
1. Interview Process
- Online Test
- Group Discussion (There can also be a tool based communication test or coding round prior to GD).
- Technical Interview
- HR Interview
2. Interview Rounds
- Online Test:
Mphasis, like other companies, starts its recruitment campaign with a multi-part online test, the first part being the logic section, followed by the other sections. The sections are as follows:
- Logical Reasoning – The recruiter can assess the analytical and logical abilities of the candidate through this section.
- Quants – If you have a good grasp of the basics of aptitude, you will clear this section without any problems.
- Language Ability – The recruiter can analyze the grammar skills of the candidate using this area.
- Computer Programming – This stream is mainly used to assess programming skills and technical information acquired in three to four years of graduation.
- Group Discussion:
Since this is an optional session, the content will vary from institution to institution. Some institutions will have group discussions, others will not. However, you should be prepared to deal with any situation. This session focuses mainly on how you respond to other people’s views and how you function as a team member. You will be given a statement and asked to express your opinion on it while respecting the opinions of others.
- Technical Interview:
Candidates who pass the online test will be invited to an in-person technical interview. There may also be a tool communication test or a coding round before that. There will typically be two programming questions in the coding round. Candidates can choose to write programs in C or C++, depending on their preference.
Technical interviews are designed to test your technical skills, often related to the position you are applying for, as well as how you analyze, solve problems, and handle stressful situations. The interviewer will also evaluate your problem-solving skills. You will be asked about past projects, technical topics you mentioned in your resume, work experience, as well as what you did, how you used technology, how successful you were, and more. So be specific about the topics you cover in your resume.
- HR Interview:
After technical interviews, HR interviews are the next stage of assessment. Employers want to know if you are a good fit for the organization. Before you attend a HR interview, be sure to read the company’s mission and leadership values. Try to structure your answers accordingly. It is essential to prepare well for an interview with HR.
Make sure you are well prepared for any questions that the employer may ask based on your resume. Therefore, it is important that you include the information in your CV as accurately as possible. The following list includes the most common questions asked in HR interviews:
- Tell us a little about yourself.
- Would you consider relocating to another part of India?
- What do you hope to achieve from this position?
- What made you join Mphasis?
- Where do you see yourself in five years?
- What makes you want to find a new job?
- Describe a difficult situation you have encountered and how you handled it.
- Suppose you have control over a group. A team member is unproductive and refuses to change his approach despite repeated warnings. What would you do if you were in this situation?
- Describe a situation where you tried your best but failed.
MphasiS Python Interview Questions and Answers
- Simple and readable syntax
- Interpreted language: No compilation required.
- Object-oriented: Supports classes and objects.
- Dynamic typing: Variable types are determined at runtime.
- Comprehensive standard library: Python has many libraries for various tasks like web development, data science, etc.
- Cross-platform: Python can run on many different platforms, such as Windows, Linux, and macOS.
- Supports multiple programming paradigms: Procedural programming, functional programming, and object-oriented programming.
2. Explain the difference between lists and tuples in Python.
Answer: List: List is a mutable data type, meaning that the elements of the list can change after it is created.python
Copy
my_list = [1, 2, 3]
my_list[0] = 10 # This is a validTuple value: Tuple is immutable, meaning its elements cannot be changed after it is created.python
Copy
my_tuple = (1, 2, 3)
my_tuple[0] = 10 # This will throw an error
Unlock Your Coding Potential with Our Python Programming Course – Enroll Today
3. What are lambda functions? How are they different from classical functions?
Answer: A lambda function is a one-line anonymous function defined using the lambda keyword. They are often used for short-term, disposable functions.
- Syntax:
pythonlambda arguments: expression
- Example:
pythonadd = lambda x, y: x + y
print(add(2, 3)) # Output: 5
In contrast, regular functions are defined using the def
keyword and can contain multiple expressions.
- Example:
pythondef add(x, y):
return x + y
4. What is the difference between is
and ==
in Python?
Answer:
==
: Checks if the values of two objects are equal.
pythona = [1, 2, 3] b = [1, 2, 3] print(a == b) # Output: True
is
: Checks if two objects refer to the same memory location (i.e., they are the same object).
pythona = [1, 2, 3] b = [1, 2, 3] print(a is b) # Output: False (they are two different objects)
5. What is the purpose of pass
in Python?
Answer: The pass
statement is a placeholder that does nothing. It is used when a statement is required syntactically but no action is needed. It is commonly used in defining empty functions, classes, or loops.python
class MyClass:def my_function():
pass # To be implemented later
pass # Placeholder for a class definition
6. What are decorators in Python?
Answer:
Decorators are a way to modify or improve the behavior of functions or methods without modifying their actual code. They are often applied by the @ syntax and can be used to add features to functions or methods.
def decorator_function(func):
def wrapper():
print("Something before the function.")
func()
print("Something after the function.")
return wrapper
def say_hello():
print(“Hello!”)
say_hello()Output:
Something before the function.
Hello!
Something after the function.
You can manually control the garbage collection by using GC.PythoncopyMport GC
GC.Collect () # Model of one cycle of the waste collection8. What is the difference between __new__ and __init__ in Python?
Answer:
__NEW__: he is responsible for creating a new example of a class. It is called in advance __init__.
__init__: This is the initialization method, responsible for the configuration of the body’s state after creating it.
Example:
pythoncopyclass myclass:
DEF __NEW __ (Cls):
in (“Create version”)
Super (). = MyClass ()
Escape:
Copy the creative body
initialization organs
9. Who is the Python generator?
Answer:
Creation is a special type of repetition, those who provide values once and are written using the magnetic productivity lock. They are more economical in memory compared to the list because they create values for vol, without storing them in memory. :
Copy 1
2
3
10. Write a Python function to check if the string is Palindrom.
Answer: A string is a palinkrom if it reads the same front and back. “)
pythonCopydef is_palindrome(s):
return s == s[::-1]# Test the function
print(is_palindrome(“racecar”)) # Output: True
print(is_palindrome(“hello”)) # Output: False
11. Write a Python program to remove duplicates from a list.
Answer: You can use a set to delete copies because the ministries do not allow the copies.pythoncopydef ferire_duplicate (LST):
Return list (Set (LST)) # Check Look up the function
my_list 4, 2, 1.
12. Explain how the with
statement works in Python.
Answer:
Statement with the statement to simplify the management of exceptions and resource management. It ensures that the resources are cleaned properly after use, such as closing the file after reading.
with open("myfile.txt", "r") as file:
content = file.read()
# No need to explicitly close the file; it is automatically closed when the block is done
- Using integrated functions and libraries:
- they are optimized for performance.
- avoid using global variables.
- uses list knowledge instead of loops for better performance.
- uses appropriate data structures such as membership inspection instead of the list.
- Take advantage of your code with tools like CPROFILE to determine the knots.
- Minimizes the use of test blocks except for the control flow.
Unlock Your Coding Potential with Our Python Programming Course – Enroll Today
Mphasis Interview Preparation
1: Who was the first woman President of India?
- Prepare content: Structural resolution of data and regular algorithm challenges will become a habit. This link will take you to our website programming section. We have compiled a list of DSA questions that are often asked by the topic for each company. You will get an advantage in interviews if you can solve them. Also check the interview experience of the company. This will provide an idea of how an interview is really done. The answer to common personnel questions and management interviews should be prepared in advance. You can also learn more about the achievements of the company, the culture of the organization, the goals, the balance between professional and private life and other objects by visiting their website.
- Takes clues: Note the clues. Employers are always willing to guide you and will give you specific suggestions if you are stuck. It is important to act quickly on the index and go to the next stage. Never say that you won’t be able to do something. Even if you have not verified any problems before or it seems you will not be able to go there from different angles; The interviewer will give you advice. However, claiming that you will not be able to solve the problem, however, is an important red flag and you may be rejected.
- Positive attitudes: The main goal of the interviewer in the interview is to evaluate whether to treat the daily applicant. Therefore, make sure you do not say anything in the interview can create concerns.
- Think loudly: It is a skill that can learn. It is funny, but illustrating how you land at a solution or describing the reason why you do it before Y is an integral part of an interview.
- Simulation interview: It has the opportunity for simulation interviews. This will provide an idea about what to predict in the interview. You can use our interview platform for simulation interviews. You will be twins with a friend, and both of you will interview together, making it a winning script for both of you.