Top Infosys Interview Questions and Answers For 2024

Infosys Interview Questions 2024

Infosys, a global leader – in IT services and consulting, conducts interviews that test your technical skills, problem-solving abilities, and cultural fit. This guide covers common Infosys interview questions and answers for freshers and experienced, helping you prepare for technical and HR rounds.

This blog is about the Infosys Interview Questions and Answers in 2024. It has 13 Infosys interview questions and 20 HR interview questions for experienced. Read this blog to know more about the Infosys interview questions.

Whether you’re a fresh graduate or an experienced professional, this blog will help you understand what to expect and how to succeed in your Infosys interview.

13 Infosys Interview Questions And Answers For 2024

Graduates can check out the Infosys Interview Questions and Answers for your reference. These Infosys interview questions will improve your knowledge about commonly asked questions and provide you, with an understanding of how to answer those Infosys interview questions. The generally asked 13 Infosys interview questions are listed below:

1. What is a Constructor?

Ans. A constructor is a special function in a class that is automatically called when creating a new class object. It has the same name as the class.

The compiler provides a default if you don’t define a constructor. However, the compiler won’t create a default constructor if you define your constructor (with or without parameters).

2. What do you mean by access specifiers?

Ans. When you define a class, you can control how its members (functions and variables) can be accessed from other parts of your code using access specifiers. There are three types of access specifiers:

  1. private: Private members can only be accessed from within the same class where they are defined. They cannot be accessed from outside that class.
  2. public: Public members can be accessed anywhere in your code, inside and outside the class.
  3. protected: Protected members can be accessed from within the same class where they are defined, from any child classes inherited from that class. However, they cannot be accessed from code outside the class and child classes.

The protected access specifier is particularly useful when dealing with inheritance, as it allows child classes to access and modify the protected members of their parent class.

3. What is the purpose of the __init__.py file in a Python package?

Ans.The __init__.py file is executed when the package is imported. This allows you to – run the initialization code for the package. For instance, you might set up package-level variables or configurations.

  1. Namespace Indicator:
    • It indicates to Python that the directory should be treated as a package. Without this file, Python will not recognize the directory as a package, preventing it from being imported.
  2. Controlling Package Imports:
    • By defining the __all__ list in the __init__.py file, you can control what is imported when using the from package import * syntax. This list should contain the names of the modules and sub-packages you want to be accessible.
  3. Modularization:
    • It allows you to modularize your code by organizing it into a package with sub-modules. The __init__.py file can import sub-modules and make them available at the package level.

4. Explain the difference between *args and **kwargs in function definitions.

Ans. In Python, *args and **kwargs are used to pass a variable number of arguments to a function.

  1. *args:
    • *args is used to pass a variable number of non-keyword arguments to a function. Inside the function, *args is accessible as a tuple containing the arguments passed.

Example :

def my_function(*args):
    for arg in args:
        print(arg)

# Calling the function with variable number of arguments
my_function(1, 2, 3)
my_function('a', 'b', 'c')

Output

1
2
3
a
b
c

2. kwargs:

  • **kwargs is used to pass a variable number of keyword arguments to a function. Inside the function, **kwargs is accessible as a dictionary containing the argument names and values.
def my_function(**kwargs):
    for key, value in kwargs.items():
        print(f"{key}: {value}")

# Calling the function with variable number of keyword arguments
my_function(name="Alice", age=30, city="Wonderland")
my_function(fruit="Apple", color="Red")

Output

name: Alice
age: 30
city: Wonderland
fruit: Apple
color: Red

5. What is inheritance? Name its types.

Ans. One of the most important concepts in object-oriented programming (OOP) is inheritance. Inheritance allows one class to use the properties and methods of another class. This helps make the code more reusable.

There are different types of inheritance:

  • Single inheritance: A class inherits from one parent class.
  • Multi-level inheritance: A class inherits from a parent class and another class is formed from that class.
  • Hierarchical inheritance: Multiple classes inherit from the same parent class.
  • Multiple inheritance: A class inherits from more than one parent class.
  • Hybrid inheritance: A combination of two or more types of inheritance.
  • Multipath inheritance: Involves multiple inheritance paths to a common base class.

6. Why do we use stdio. h in a program?

Ans. In C programming, “stdio” stands for “standard input-output.” When you write #include <stdio.h> at the beginning of your code, the computer – includes the standard input-output library in your program. This library provides functions, printf and scanf, which you can use to input and output data.

Think of #include <stdio.h> as a special instruction to the computer before your code is run.

7. What is the use of return 0?

Ans. In most C and C++ programs, the main function has a return type of int. This means it should return an integer value.

When a program finishes running, it sends a message such as “exit status” back to the operating system. This exit status indicates whether the program ran successfully or encountered an error.

To indicate that the program ran successfully, we use return 0; at the end of the main function. This tells the operating system that everything went well and the program ended successfully.

8. What is a Database Management System?

Ans. A database management system (DBMS) is a special tool that helps you build databases. It’s software that lets you create, organize, and control databases.

With a DBMS, regular people like you and me can create and look after databases without the experts. It’s like a bridge between us (the users) and the databases, helping us interact with them easily.

9. What is database Schema?

Ans. The rules that keep the data in a database safe and organized are known as database schema. It’s like a set of instructions that tells the database how to store and handle information correctly.

10. Differentiate between TRUNCATE and DELETE commands in SQL.

Ans.

FEATURES TRUNCATEDELETE
OperationRemoves all rows from a table quickly.Deletes specific rows from a table.
RollbackIt can’t be rolled back.It can be rolled back using a transaction.
Auto IncrementResets auto-incremented identity columns to start from 1.Does not reset auto-incremented identity columns.
PermissionsRequires ALTER and DROP table permissions.Requires DELETE table permissions.

11. What is the difference between a session and a socket?

Ans.

Aspect Session Socket
DefinitionA session is a series of interactions between a client and a server, maintained for the particular activity.A socket is an endpoint for sending or receiving data across a computer network.
Level of OperationOperates at a higher level, managing the state and context of the interaction.Operates at a lower level, handling data transfer between systems.
State ManagementMaintains state information (like user data, and preferences) across multiple requests.Stateless, each socket communication is independent unless managed at a higher level.
ProtocolOften uses HTTP/HTTPS in web applications, which are stateless but session management provides state.Uses transport layer protocols such as TCP or UDP.

12. Explain about Agile model.

Ans. Agile is a way of developing software that focuses on delivering value to customers quickly and efficiently. Instead of working on a big project, agile teams break the work into smaller parts and release them in stages.

With agile, teams constantly review and adapt their plans, which helps them respond to changes and customer feedback more effectively. This approach leads to higher-quality products with fewer errors.

The two most popular techniques used in agile are Scrum and Kanban. These methods help teams organize their work, track progress, and collaborate effectively to achieve their goals.

13. Differentiate between white box and black box testing.

Ans.

Feature White Box TestingBlack Box Testing
FocusTests internal structures or workings of a system.Test functionality without knowing internal workings.
Knowledge RequiredRequires knowledge of internal code and logic.Does not require knowledge of internal code.
Design PerspectiveTests based on code structure and implementation.Tests based on requirements and user perspective.
Testing TechniquesMethods include statement coverage, branch coverage, path coverage, etc.Methods include equivalence partitioning, boundary value analysis, etc.
ScopeOften used for unit testing or integration testing.It is used for system testing or acceptance testing.
Error DetectionEffective in finding logical errors and code bugs.Focuses on finding discrepancies between expected and actual results.
ExamplesUnit testing, integration testing, code review.Functional testing, regression testing, usability testing.

20 Infosys HR Interview Questions For Experienced 2024

Candidates can refer to the 20 Infosys HR Interview questions for candidates with more than 5 years of experience, Refer to those Infosys Interview questions which are provided below:

1. Tell me about yourself.

Ans. I am a highly motivated and hardworking individual with a strong track record of success in my previous roles. Throughout my career, I have developed excellent problem-solving skills and the ability to work effectively independently and as part of a team.

One of my key strengths is learning quickly and adapting to new environments and challenges. I am always eager to take on new responsibilities and expand my skill set. At the same time, I strongly emphasize attention to detail and strive for excellence in everything I do.

I hold a Bachelor’s degree in [relevant field] from [university name], where I graduated with honors. During my time there, I gained valuable hands-on experience through internships and projects, which helped me develop practical skills to complement my theoretical knowledge.

2. How do you ensure that all the tasks are completed effectively?

Ans. If I found myself working under a manager whose leadership style or conduct was extremely problematic, I would take the following professional steps:

First, I would schedule a private meeting with that manager to explain my concerns directly, but respectfully. Often issues can be resolved through open communication.

If the situation did not improve after that conversation, I would begin documenting specific incidents or examples of the challenges to perform my job duties to the highest standard.

If those issues persisted or worsened, posing a risk to my work or well-being, I would escalate the matter to Human Resources. Most companies have protocols to review and mediate conflicts between employees impartially.

3. If the priorities of the projects are changed how will you manage those?

Ans. If the priorities of the projects I’m working on get changed, I would take the following steps to manage the shift effectively:

First, I will conduct an open discussion with my manager to fully understand the new priorities and reasons. Asking clarifying questions upfront is crucial.

Next, I would re-evaluate my current task list and deadlines. I would make adjustments as needed to align with the new priority order. This may involve putting some lower-priority tasks on hold temporarily.

Clear communication would be key throughout this process. I would inform all relevant team members and stakeholders about the updated priorities to remain on the same page.

4. Why do you have a gap in the resume?

Ans. After working diligently for several years, I took a temporary break from full-time employment for personal reasons. During this period, I devoted time to caring for an elderly family member who required extra assistance. It was an important priority for me to be there for my loved one during a challenging time.

However, I made sure to use this break productively. I took online courses and participated in training programs to keep my technical skills up-to-date. I also volunteered my time with a non-profit organization, allowing me to contribute my expertise while gaining valuable experience in a different environment.

5. Tell me about a point in your career where you have made mistakes if any.

Ans. There was a time earlier in my career when I made a mistake that taught me a valuable lesson. It was a project where I had multiple tasks and deadlines to manage. I underestimated how long a particular task would take and didn’t leave enough time to complete it properly.

As a result, I rushed to finish that task towards the end and the work quality suffered. When I submitted it to my manager, there were avoidable errors that I could have easily caught if I had planned better and given myself more time.

6. Are you fine with working night shifts?

Ans. I am open to working night shifts. I recognize the importance of being flexible in today’s work environment and am prepared to adapt my schedule to meet the needs of the team and the organization.

7. What is your greatest strength?

Ans. I’m good at learning new things quickly and adjusting to different situations. I’m great at solving problems and thinking of creative solutions, especially in fast-paced environments. I’m super organized so I can manage my tasks well.

8. Why do you want to join Infosys?

Ans. I want to join Infosys because of its reputation for innovation, excellence, and commitment to delivering quality services to clients worldwide. I’m impressed by the company’s focus on technology-driven solutions and its dedication to employee growth and development. I believe that joining Infosys will provide opportunities to work on challenging projects, collaborate with talented professionals, and contribute to meaningful initiatives that have a global impact.

9. Tell me something which is not mentioned in your resume.

Ans. One thing not mentioned in my resume is my passion for volunteering. In my free time, I actively participate in community service projects, such as organizing food drives for local shelters, tutoring underprivileged children, and participating in environmental clean-up efforts. Volunteering allows me to give back to the community and make a positive difference in the lives of others, which is something I am deeply passionate about.

10. What salary are you expecting?

Ans. I’m looking for a competitive salary that reflects my skills, experience, and the value I can bring to the company. However, I am open to discussing the specific number and am confident that we can reach an agreement – that is fair for both of us. My main goal is to find a role where I can contribute effectively and grow within the company.

11. What will you do if you are offered a job with a higher salary?

Ans. If I get a job offer with a higher salary, I will think about all parts of the job, not just the money. I care about the work environment, chances to grow in my career, the company culture, and how much I can contribute. If I feel that Infosys is the best place for my career growth and aligns with my values, I would choose to stay with Infosys.

12. Do you have any questions for me?

Ans. Some of the questions that can be asked are :

  1. What are the main challenges the team is currently facing?
  2. What opportunities for professional growth and development does Infosys offer?
  3. How does Infosys support work-life balance for its employees?

13. Are you ready to relocate?

Ans. Yes, I am ready to relocate. I understand that relocation might be necessary for the role, and I am open to moving to a new location to contribute to the company’s success and advance my career.

14. How do you handle challenges and work under pressure? Can you provide an example from your previous work experience?

Ans. I once led a team to reprioritize and redeliver a major software implementation project with revised requirements under a tight deadline through careful planning, collaboration, and motivating everyone to go the extra mile. Work Stress and Challenges can be handled with composure, organization, and commitment to continuous improvement.

15. Are you a team player?

Ans. I was part of a cross-functional team that worked on a large digital transformation project. Despite coming from different backgrounds, we checked our egos at the door and worked cohesively. I made an effort to listen to others’ viewpoints and expertise. At the same time, I didn’t hesitate to voice my ideas when I saw opportunities for improvement.

16. Describe your management style.

Ans. As a manager, I would focus on clear communication, supporting my team’s growth, and creating an environment of teamwork. I believe in leading by example – working hard, being ethical, and paying attention to details. At the same time, I would ask for and value input from my team members.

My role would be to provide Resources and remove issues. This will allow the team to do their best work. I would celebrate successes and address issues by coaching and working to find solutions.

Ultimately, I would aim to create an environment where team members feel comfortable to innovate, take calculated risks, and learn from mistakes. Being transparent, continuously improving, and bringing out the best in people through collaboration would be very important.

17.  How would you be an asset to our organization?

Ans. As someone who has worked in the corporate world for several years. I could bring a unique and valuable skill set to your organization at Infosys.

Firstly, I’m an extremely hard worker with a strong drive to take on new challenges and deliver quality results. I thrive in fast-paced environments where I’m pushed to grow and develop new capabilities. With my diverse experience across various roles and industries, I can quickly adapt to changing demands and requirements.

Secondly, I’m an excellent team player who understands the importance of collaboration and knowledge sharing. I actively listen to my colleagues’ perspectives and provide constructive feedback. At the same time, I’m not afraid to respectfully voice my ideas and suggestions, especially if they could lead to process improvements or innovative solutions.

18. What motivates you to do a good job?

Ans. At my core, I’m driven by a strong sense of personal pride in my work. I find immense satisfaction and fulfillment in tackling new challenges head-on and seeing projects through to successful completion.

But it’s not just about self-gratification. I’m also deeply motivated by how my contributions positively impact the people around me – colleagues, Team Lead customers.

19. Describe your ideal Company, Location, and Job.

Ans. Starting with the company itself, culture and values are paramount. I want to work somewhere that supports well-being and career growth. A place that sees employees as human beings first, not just resources. With psychological safety to speak up and embrace different perspectives.

However, in location, I’m drawn towards vibrant, thriving urban centers that are pedestrian and bike-friendly. Also, it would be easy to get a car for long commutes. Plus, having easy access to arts, culture, green spaces, community events, you name it. I crave environments that spark inspiration and connection.

As for the actual job role, whether in marketing, consulting, you name it – I want to be challenged in a fast-paced, collaborative atmosphere. I thrive when developing new skills, pushing my bounds of creativity, and problem-solving on projects with tangible impact. I get restless with stagnation.

20. What are your career options right now?

Ans. My career goal is to work at a well-respected company like yours. This will allow me to develop my professional skills, using these skills to help the company grow and succeed.

To summarize, preparing thoroughly for an interview at Infosys requires understanding the company culture, values, and business priorities. The interview process assesses – technical knowledge but also communication abilities, problem-solving skills, and cultural fit.


Candidates should be ready to provide specific examples showcasing their expertise, achievements, and leadership qualities. This blog has discussed the top 13 Infosys interview questions and 20 HR Infosys interview questions with answers.

Above all, passion, confidence, and a solutions-focused mindset are vital. With the right preparation strategies, including researching common questions, practicing mock interviews, and highlighting relevant strengths. A positive attitude, clear thought process, and ability to align goals with Infosys’ vision maximize chances of success in these interviews.

  1. Infosys Hiring 2024- Infosys Exam Date, Eligibility Criteria, Exam Pattern
  2. Top Infosys Coding Questions and Answers 2024
  3. Infosys Exam Syllabus and Exam Pattern 2024 – PDF Download
  4. Infosys Application Form 2024-Apply Now, Application Link
  5. Infosys Eligibility Criteria For Freshers And Experienced 2024
  6. Infosys Salary For Freshers And Experienced in 2024
  7. How to Prepare For Infosys Exam 2024- Tips and Strategies
  8. Infosys Previous Year Paper-Download PDF With Answers

Infosys Interview Questions and Answers- FAQs

Q1.What are the key values of Infosys?

Ans. Infosys has focused on core values like client value, leadership by example, integrity and transparency, and excellence.

Q2. What is the hiring process like at Infosys?

Ans. The hiring process typically involves screening interviews, technical interviews, an HR interview, and sometimes case study or group discussion rounds depending on the role. Be prepared to discuss your technical skills – teamwork and leadership abilities.

Q3. What technical skills are most valued at Infosys?

Ans. In-demand technical skills can vary by position, skills in Java, .NET, UNIX, SQL, data structures, algorithms, Agile methodologies, cloud computing, cybersecurity, and newer technologies like AI/ML are highly valued.

Q4. How should I prepare for the technical interview rounds?

Ans. Review core computer science concepts thoroughly and practice coding challenges on the Infosys mock test by Skillvertex. Be ready to write clean, efficient code, and explain your logic and approach. Prepare to answer questions about your technical project experience.

Q5.What kind of sample behavioral questions should I expect?

Ans. Common behavioral questions include describing a challenge you overcame, a mistake you learned from, how you handle conflicts or pressures, or examples of leadership roles. Have 2-3 detailed situational examples ready to showcase your skills.

Q6. How can I stand out in the Infosys interviews?

Ans. Research the company well and align your background to their needs. Highlight any relevant work experience, training, or certifications. Emphasize your problem-solving abilities and passion for technology. Ask insightful questions about the role and company.

Q7. What is the work culture like at Infosys?

Ans. Infosys has a professional yet collaborative work culture that values continuous learning, innovation, and client focus. Be prepared to discuss how you thrive and adapt in fast-paced, team-oriented environments.

Q8. What types of roles and career paths are available?

Ans. Infosys offers diverse roles across IT services, consulting, product engineering, and AI/data. Research career paths of interest ahead of time and inquire about growth opportunities during interviews.

Hridhya Manoj

Hello, I’m Hridhya Manoj. I’m passionate about technology and its ever-evolving landscape. With a deep love for writing and a curious mind, I enjoy translating complex concepts into understandable, engaging content. Let’s explore the world of tech together

Leave a Comment