Company QuestionsCompany Interviewsbeginner

Infosys Interview Questions for Freshers

The Infosys fresher selection process in general terms, plus 20 practice questions covering pseudocode, Python programs, DBMS, OOP and HR, with sample answers and tested code.

Published
TL;DR – Quick Answer

Infosys usually hires freshers through an online assessment followed by interviews. Candidate reports describe test sections on reasoning, mathematical ability, verbal ability and pseudocode, and interviews that cover programming basics, your project, DBMS and HR questions. Role names and the process change, so check the official Infosys careers page before you prepare.

On This Page

Infosys interview questions for freshers come after an online assessment and usually cover programming basics, your project, DBMS and HR. This page explains the selection process in general terms. It then gives 20 practice questions, including pseudocode tracing, which candidates often mention for Infosys tests.

Important: Infosys changes its test pattern, eligibility, roles and number of rounds from time to time. Use this page to prepare, not as an official description. Always check the official Infosys careers website and your placement cell notice for the current process.

The Infosys selection process in general

Stage What usually happens
Registration Apply through the official Infosys careers site or your campus drive
Online assessment Aptitude, verbal, reasoning and code-related sections
Interview Technical and HR questions, often in one combined round
Offer Offer letter, document verification and joining details

Infosys has hired freshers into roles such as Systems Engineer, Digital Specialist Engineer and Specialist Programmer. Higher roles usually include harder coding rounds. Infosys also runs HackWithInfy, a coding contest for engineering students that has been used as a route to these higher roles. Check the official pages for the current roles and routes.

What the online test usually covers

Candidate reports describe sections on logical reasoning, mathematical ability, verbal ability and pseudocode. Some years have included puzzle solving or coding sections. The exact sections and timings change, so read the current pattern from official sources.

Practise aptitude with aptitude practice sets, and practise tracing code by hand for the pseudocode part.

How to answer in an Infosys interview

Interviewers look for clear basics and honest answers. Speak in short sentences. For programs, explain your approach before you write, and test it with one small example.

Pro tip: Write a table of variable values when tracing pseudocode. It is slower at first, but it stops careless mistakes.

Pseudocode practice questions

These questions show the style candidates describe. They are practice items, not real test questions.

Q1. What is the output of this pseudocode?

SET x = 5
SET y = 0
WHILE x > 0
    y = y + x
    x = x - 2
END WHILE
PRINT y

Answer: 9.

Step x before y after x after
1 5 5 3
2 3 8 1
3 1 9 -1

The loop stops when x becomes -1.

Q2. What does this pseudocode print?

SET a = 10, b = 4
a = a + b
b = a - b
a = a - b
PRINT a, b

Answer: 4 10. The steps swap the two values without a third variable. After the first line a is 14. Then b becomes 10, and a becomes 4.

Q3. What does this function return for n = 4?

FUNCTION f(n)
    IF n == 0 THEN RETURN 1
    RETURN n * f(n - 1)
END FUNCTION

Answer: 24. It computes the factorial: 4 x 3 x 2 x 1 x 1. The base case n == 0 returns 1 and stops the recursion.

Infosys technical interview questions

These match commonly reported topics. They are not a list of questions Infosys will ask.

Q4. Tell me about yourself.

Sample answer: "I am [your name], a final-year ECE student. I learned Python and SQL alongside my branch subjects. My project is a student attendance tracker built with Python and SQLite, where I wrote the report module. I want to build a career in software, starting with backend development."

The guide to tell me about yourself has more examples.

Q5. Write a program to find the second largest number in a list.

def second_largest(nums):
    first = second = None
    for n in nums:
        if first is None or n > first:
            first, second = n, first
        elif n != first and (second is None or n > second):
            second = n
    return second


print(second_largest([12, 45, 7, 45, 30]))
print(second_largest([5, 5, 5]))

Output:

30
None

This works in one pass and handles duplicates of the largest value. Mention the edge case: if all values are the same, there is no second largest.

Q6. Count the vowels in a string.

def count_vowels(text):
    return sum(1 for ch in text.lower() if ch in "aeiou")


print(count_vowels("Infosys Interview"))

Output:

6

lower() makes the check work for capital letters too.

Q7. Find how many times each character appears in a word.

from collections import Counter

print(Counter("banana").most_common())

Output:

[('a', 3), ('n', 2), ('b', 1)]

Be ready to write the same logic with a dictionary and a loop, in case the interviewer asks you not to use Counter.

Q8. What is the difference between a list and a tuple in Python?

Sample answer: A list is mutable, so you can add, remove and change items. A tuple is immutable after creation. Tuples are used for fixed groups of values, such as coordinates, and can be dictionary keys if all their items are hashable. More Python basics are in Python interview questions.

Q9. What is the difference between method overloading and overriding?

Sample answer: Overloading means the same method name with different parameters in the same class, decided at compile time in languages like Java. Overriding means a child class gives its own version of a parent method with the same signature, decided at run time.

Q10. What is an abstract class, and how is it different from an interface?

Sample answer: An abstract class can have both abstract methods and normal methods with code, plus fields. An interface defines a contract that classes implement. In Java, a class can extend only one class but implement many interfaces.

Q11. What are the types of SQL joins?

Sample answer: INNER JOIN returns matching rows from both tables. LEFT JOIN returns all rows from the left table and matches from the right. RIGHT JOIN does the opposite. FULL OUTER JOIN returns all rows from both, though MySQL does not support it directly. A self join joins a table to itself.

Q12. What is the difference between DELETE, TRUNCATE and DROP?

Command Removes Can use WHERE Table remains
DELETE Selected rows Yes Yes
TRUNCATE All rows No Yes
DROP The whole table No No

Sample answer: DELETE removes chosen rows. TRUNCATE quickly removes all rows. DROP removes the table itself.

Q13. What is a deadlock?

Sample answer: A deadlock happens when two or more processes each hold a resource and wait for a resource held by another, so none can continue. It needs four conditions together: mutual exclusion, hold and wait, no preemption and circular wait.

Q14. What is the difference between compiler and interpreter?

Sample answer: A compiler translates the whole program into machine code or bytecode before running. An interpreter runs the program line by line. C is usually compiled. Python is usually run by an interpreter, which first compiles code to bytecode internally.

Infosys HR interview questions

Q15. Why Infosys?

Sample answer: Mention things you can verify, such as its training for freshers, its work across many industries and the chance to learn on large client projects. Connect it to your goal. "I want structured training at the start of my career, and I want to work on real projects for global clients."

Q16. Are you willing to relocate?

Sample answer: Answer honestly. Infosys has offices in many Indian cities, and freshers may be placed based on business needs. If you have a real constraint, say it politely.

Q17. How do you handle pressure?

Sample answer: Give a real example. "During my final exams I also had a project deadline. I broke the work into daily goals, finished the core features first and kept extra features for later. We submitted on time."

Q18. What is your biggest weakness?

Sample answer: Pick a real weakness and show the fix. "I used to take on too much without asking for help. Now I plan my week and ask for help early when a task is blocked."

Q19. What did you learn from your internship or project?

Sample answer: Talk about one technical and one non-technical lesson. "Technically, I learned to write SQL queries with joins. I also learned to write a short status update every day, which kept my mentor informed."

Q20. Do you have any questions for us?

Sample answer: "What skills should I build before joining to make the training easier?" This shows interest and planning.

A two-week preparation plan for Infosys

Days Focus
1 Check the current official process and roles
2 to 5 Aptitude, verbal and pseudocode tracing daily
6 to 7 Your main language and 10 common programs
8 to 9 OOP, DBMS, SQL and OS basics
10 Project explanation and resume check
11 to 12 HR answers with your own examples
13 to 14 Mock interview and light revision

Common mistakes to avoid

Mistake Better approach
Skipping pseudocode practice Trace 20 small programs on paper
Using old test patterns from blogs Check official sources for the current year
Saying "I know Python" without practice Write and run small programs every day
Generic answers to "Why Infosys?" Use specific, verifiable reasons
Trusting unofficial job offers Apply only through official channels and never pay for a job

Many topics overlap with other service companies. Practise TCS interview questions for freshers as well, and use the same project and HR stories for both.

Frequently Asked Questions

What is the Infosys selection process for freshers?
It usually has registration, an online assessment, one or more interviews and then an offer. Many candidates report a combined technical and HR interview. The number of rounds and the test pattern change by year, role and drive, so check the official Infosys careers page and your placement cell notice.
What roles does Infosys hire freshers for?
Infosys has hired freshers into roles such as Systems Engineer, Digital Specialist Engineer and Specialist Programmer. Higher roles usually need stronger coding. Role names and routes change, so check the current openings on the official Infosys careers site.
What is HackWithInfy?
HackWithInfy is a coding competition run by Infosys for engineering students. Infosys has used it as a route to interview strong coders for higher roles. Eligibility, dates and outcomes change each year, so read the official HackWithInfy page before registering.
What are pseudocode questions in the Infosys test?
Pseudocode questions show a short algorithm in plain, code-like steps and ask for its output or purpose. They test whether you can trace loops, conditions and variables by hand. Practise tracing small programs on paper with a table of variable values.
What salary does Infosys offer freshers?
This page does not list salary figures, because they vary by role and year. Check the official job description or your offer communication from Infosys for the correct numbers.
Siva Prasad Galaba
Founder, CodeBegun · Staff Engineer

Founder of CodeBegun. 15+ years building Java systems at companies like Crunchyroll. Teaches Java, Spring Boot and system design the way the industry actually works, and mentors students through projects, mock interviews and placement preparation.

Technically reviewed by CodeBegun Technical TeamLast reviewed 4 December 2026 LinkedIn
Chat with us