Infosys interview prep · updated Oct 2026

Infosys Fresher Interview Questions

Fresher 8 questions

Infosys delivers IT services and consulting to client companies, and a large part of that work is building and improving the digital platforms clients run every day, such as a retailer's online store, a telecom operator's customer app or a manufacturer's dealer portal. As a campus hire, expect fundamentals set inside those platforms, teamwork with people you have just met, and feedback taken well. What to show here: clean basics, teamwork with strangers and feedback taken well. Each question below has what the interviewer is checking, an answer frame and a sample spoken answer to adapt.

Behavioral

1. On client platforms you will work in a team of people you have never met, some from the client and some from other companies. Tell me about a time you had to work well with people you did not know.

What they are checking
Checks whether you can build working relationships quickly and contribute without waiting for friendships to form.
Answer frame
  1. Set the situation and who was in the team.
  2. Explain how you understood each person's strengths and expectations.
  3. Share how you handled a disagreement or a gap.
  4. Give the result.
Sample spoken answer

“In a hackathon I was placed in a team with three students from other colleges. We had one day. I suggested we each say what we were good at and what we did not want to do, which took ten minutes and saved hours. One teammate and I disagreed on whether to build the app or a web page first. Instead of arguing, we agreed to build the smallest web version and add the app only if time remained. I kept a shared list of who was doing what. We finished with your result. I learned to make roles clear early with new people.”

Red flag to avoid

Weak answers describe working alone within the team, or show no way of dealing with the disagreement.

Behavioral

2. Tell me about the toughest feedback you received on your code or your work, and what you did with it.

What they are checking
Checks whether you can accept correction without taking it personally, which matters when client engineers review your work.
Answer frame
  1. Describe the work and the feedback.
  2. Say honestly how it felt.
  3. Explain what you changed in the work and in your habits.
  4. Give the result.
Sample spoken answer

“During my internship, a senior engineer reviewed my first pull request and left many comments. The main one was that my functions did too many things and nobody could test them. I felt bad for an evening. The next day I asked him for ten minutes and he showed me how he would split one of them. I rewrote the whole change with small functions and wrote tests for each. He approved it and later asked me to review a junior's code the same way. The result was your result. Now I read my own code as a reviewer before I send it.”

Red flag to avoid

Weak answers claim they have never had hard feedback, or describe defending the original work instead of learning from it.

Technical

3. A manufacturer's warranty portal asks customers to enter a product serial number. What checks would you write on the input, and how would you test them?

What they are checking
Checks basic string handling, validation and the habit of testing edge cases.
Answer frame
  1. Ask for the format rules: length, allowed characters, check digit.
  2. Normalise input: trim spaces, fix case.
  3. Validate step by step with clear messages.
  4. Test with valid, invalid and boundary values.
Sample spoken answer

“First I would find out the real format from the client, such as fixed length, letters and digits only, and whether the last character is a check character. Before validating, I would trim spaces and convert to upper case, because people type serial numbers from a label in many ways. Then I check length, allowed characters and the check character, in that order, so the message tells the person exactly what is wrong. I would test with a correct number, one that is too short, one with a letter O instead of zero, one with spaces around it, and an empty string.”

Red flag to avoid

Weak answers write a single regular expression with no thought for how people actually type, or test only the happy path.

Technical

4. A retailer's online store must look up a product by its code very quickly, and also list all products within a price range. Which data structures would you use for each, and why?

What they are checking
Checks whether you can match a data structure to an access pattern and explain the cost in plain words.
Answer frame
  1. Use a hash map for lookup by an exact key.
  2. Use a sorted structure or tree for a range query.
  3. Explain the cost of each operation.
  4. Mention that a database index does the same job at scale.
Sample spoken answer

“For finding one product by its exact code, I would use a hash map, because it gives the answer in roughly constant time no matter how many products there are. A hash map cannot answer a range question well, since it has no order. For products between two prices, I would keep products in a structure sorted by price, such as a balanced tree, and walk from the lower bound to the upper bound. That costs the log of the number of products to find the start, then the number of results. In a real store these become database indexes, one on code and one on price.”

Red flag to avoid

Weak answers use a list and scan for both cases, or cannot explain why a hash map fails at range queries.

Technical

5. A telecom operator's app needs a small service that returns the nearest customer service centres for a location. Design the API endpoints, and say what each returns when something goes wrong.

What they are checking
Checks understanding of REST basics: resources, methods, parameters and error responses.
Answer frame
  1. Define the resource and a read endpoint with location parameters.
  2. Choose the method and what the response contains.
  3. Define error cases: missing parameters, no results, server failure.
  4. Mention paging and caching for repeated calls.
Sample spoken answer

“I would create a read endpoint for service centres that takes a latitude and longitude as query parameters, plus an optional limit. It is a read, so it uses the get method and can be cached for a short time. The response is a list of centres with name, address, distance, opening hours and a link to each centre's details. If the location is missing or malformed, it returns a bad request status with a message naming the problem. No centres nearby is not an error, so it returns an empty list. A failure inside the service returns a server error status without exposing internal details.”

Red flag to avoid

Weak answers use a post request for a read, or return an error for an empty result.

Technical

6. You wrote a function that applies a discount to a shopping cart. What tests would you write before calling it done?

What they are checking
Checks whether you think about edge cases and can describe unit tests clearly.
Answer frame
  1. Test the normal case with a known input and output.
  2. Test boundaries: empty cart, discount of zero, discount larger than the total.
  3. Test rounding and item quantities.
  4. Test invalid input such as negative values.
Sample spoken answer

“I would start with a normal cart and a normal discount and check the exact total by hand. Then the edges: an empty cart should give zero, a discount of zero should change nothing, and a discount bigger than the total should never make the total negative. I would test a cart with several units of the same item, and totals that end in fractions, to see that rounding is done once at the end and in the way the client expects. Negative prices or quantities should raise a clear error. Each test has one purpose and a name that says what it checks.”

Red flag to avoid

Weak answers test only one happy case, or do not consider what a negative total would mean for the store.

Scenario

7. Your change passes all tests on your laptop, but the same tests fail in the team's shared pipeline. Your teammates are busy. What do you do?

What they are checking
Checks whether you can debug an environment difference methodically instead of rerunning and hoping.
Answer frame
  1. Read the pipeline log for the exact failure.
  2. Compare the environment: versions, environment variables, test order, time zone.
  3. Reproduce the pipeline conditions locally.
  4. Fix the real cause and note it for the team.
Sample spoken answer

“I would not just rerun the pipeline and hope. I would read the log to find the first real failure, not the last message. Then I compare my machine with the pipeline: language version, dependency versions, environment variables, and whether the tests run in a different order or in a different time zone. A common cause is a test that depends on a file or a database left behind by another test. I would try to run the tests the way the pipeline does, from a clean folder. When I find the cause, I fix it properly and write a short note in the ticket so the next person knows.”

Red flag to avoid

Weak answers mark the test as skipped to get a green build, or say it works on my machine and wait.

Why this company

8. Why do you want to begin your career at Infosys, working on the digital platforms of client companies?

What they are checking
Checks whether you understand what the work is and want it for reasons connected to the work.
Answer frame
  1. Say what you want to learn in your first years.
  2. Connect it to building and improving platforms for clients.
  3. Show you accept the realities: team work with clients, process, learning new tools.
  4. Say what you hope to become.
Sample spoken answer

“I want my first years to be about learning how software is built and improved when real customers use it every day. Infosys works on that kind of platform for client companies, such as online stores, telecom apps and dealer portals, and I would see how a change goes from an idea to something a customer touches. I know it means working in teams with client engineers, following their standards and learning whatever tools the project uses. I like that variety. In a few years I want to be an engineer a squad relies on for careful, tested work.”

Red flag to avoid

Weak answers talk only about training or brand, and say nothing about the kind of work.

Salary questions come last

No figures on this page: pay depends on the level, the city and the offer in front of you. When the offer comes, the free salary negotiation script helps with that part.

For the call itself

The questions above are the prep. On the real call, ClapAssist helps with the ones you did not practice.

ClapAssist is an AI interview assistant for Mac and Windows. It listens to the interview on your computer and shows you what to say, in short lines you can read while you talk. Your live interview audio and screen are never stored. Your resume and notes are saved to your account so the app fills them in on any computer. It is hidden from screen share on every plan, including Free; only you can see it.

Download with 10 free minutes
Mac and Windows · Stays out of screen share · No card