i
Infosys
Work with us
Filter interviews by
Printing 1 to 100 without for loop
Use recursion to print numbers from 1 to 99
Print 100 outside the recursion
Use a base case to stop recursion at 100
Prime numbers are those that are only divisible by 1 and themselves.
Start with 2 and check if it is divisible by any number between 2 and itself-1
If not, it is a prime number
Continue checking for all numbers greater than 2
Use Sieve of Eratosthenes for finding prime numbers in a range
Reverse the number means to get the digits in the opposite order.
Extract the digits of the number using modulo operator
Multiply the reversed number by 10 and add the next digit
Repeat until all digits are processed
Binary search tree is a data structure where each node has at most two children and the left child is smaller than the parent while the right child is greater.
Binary search tree is used for searching, sorting and indexing data.
The three different traversals are: Inorder (left-root-right), Preorder (root-left-right) and Postorder (left-right-root).
Inorder traversal of a binary search tree gives the nodes in ascendi...
OOP is Object-Oriented Programming while POP is Procedural-Oriented Programming.
OOP focuses on objects and their interactions while POP focuses on procedures and functions.
OOP allows for encapsulation, inheritance, and polymorphism while POP does not.
OOP is more modular and easier to maintain while POP can be more efficient for small programs.
Examples of OOP languages include Java and Python while examples of POP ...
Yes, I have experience in coding.
Proficient in programming languages such as Java, Python, and C++
Familiar with software development methodologies such as Agile and Waterfall
Experience in developing and maintaining software systems
Ability to troubleshoot and debug code
Examples of projects include developing a web application using Java and Spring framework, and creating a Python script for data analysis
C++ has three types of loops: for, while, and do-while.
For loop is used when the number of iterations is known beforehand.
While loop is used when the number of iterations is not known beforehand.
Do-while loop is similar to while loop, but it executes at least once before checking the condition.
Choose at most N/2 elements from an array A of N elements and find XOR of all the chosen elements.
Choose the N/2 largest elements to maximize the XOR value.
Use a priority queue to efficiently select the largest elements.
If N is small, brute force all possible combinations of N/2 elements.
C++ is a powerful and versatile programming language widely used in system engineering.
C++ offers high performance and low-level control, making it suitable for system-level programming.
It supports object-oriented programming, allowing for modular and reusable code.
C++ has a large standard library and a vast ecosystem of third-party libraries and frameworks.
It provides features like templates, exception handling, ...
This question tests the candidate's knowledge of C programming language and output formatting.
The code initializes an integer variable 'a' with value 100.
The printf statement uses two format specifiers: '%0' and '%x'.
The '%0' specifier is invalid and will not print anything.
The '%x' specifier prints the value of 'a' in hexadecimal format.
The output will be '64' in hexadecimal format.
I appeared for an interview in Jan 2025.
The exam consists of seven sections, and the cutoff score is quite high; it is essential to complete the exam thoroughly.
I completed a 6-month internship at a tech company, where I worked on network infrastructure projects.
Assisted in setting up and configuring network devices such as routers and switches
Troubleshooted network issues and implemented solutions
Collaborated with team members on various IT projects
Participated in meetings with clients to discuss project requirements
I have worked on various major projects including designing and implementing network infrastructure, developing automation scripts, and optimizing system performance.
Designed and implemented a new network infrastructure for a large company, improving network speed and reliability
Developed automation scripts to streamline system monitoring and maintenance tasks, saving time and reducing errors
Optimized system performanc...
The latest news I heard regarding technology is the release of the new iPhone 13 with improved camera features.
Apple recently announced the release of the iPhone 13 series with upgraded camera capabilities.
The new iPhone 13 models come with improved low-light performance and cinematic mode for videos.
Apple also introduced the A15 Bionic chip for enhanced performance and battery life.
I appeared for an interview in Feb 2025.
Sorting algorithms arrange data in a specific order, crucial for efficient data processing and retrieval.
Types of sorting algorithms include: Bubble Sort, Quick Sort, Merge Sort, and Heap Sort.
Bubble Sort is simple but inefficient for large datasets; it repeatedly steps through the list.
Quick Sort is efficient for large datasets, using a divide-and-conquer approach to sort elements.
Merge Sort divides the array into hal...
The Software Development Lifecycle (SDLC) is a structured process for developing software applications through various stages.
1. Requirements Gathering: Identify user needs and system requirements.
2. Design: Create architecture and design specifications for the software.
3. Implementation: Write and compile the code based on design documents.
4. Testing: Validate the software through various testing methods (e.g., unit t...
I applied via Campus Placement and was interviewed in Dec 2024. There were 2 interview rounds.
Aptitude test consists of topics like percentages ,profits and loss like this they covered all the topics there is verbal ability also
I appeared for an interview before Jul 2024, where I was asked the following questions.
Global variables are accessible throughout the program, while local variables are confined to the block or function where they are defined.
Global variables are declared outside of functions and can be accessed anywhere in the code.
Local variables are declared within a function or block and can only be accessed within that scope.
Example of a global variable: `int globalVar = 10;`
Example of a local variable: `void functi...
A for loop iterates through an array to print each element sequentially.
Use a for loop syntax: for (initialization; condition; increment) { }
Example: for (int i = 0; i < array.length; i++) { System.out.println(array[i]); }
In JavaScript: for (let i = 0; i < array.length; i++) { console.log(array[i]); }
In Python: for element in array: print(element)
A class is a blueprint for creating objects, while a method is a function defined within a class that operates on its data.
A class encapsulates data and behavior in object-oriented programming.
Example: class Car { } defines a Car class.
A method is a function that belongs to a class.
Example: class Car { void drive() { } } defines a drive method.
I applied via Campus Placement and was interviewed in Oct 2024. There were 3 interview rounds.
Covers all aptitude topics
I applied via Campus Placement and was interviewed in Sep 2024. There were 2 interview rounds.
The round 1 was an online assessment that was held in campus labs. It was a 2 hour long test having 7 sections that are reasoning ability,verbal ability,comprehension,pseudocode,puzzle solving,essay writing,quants. There was a sectional cutoff around 70%
I appeared for an interview in May 2025, where I was asked the following questions.
OOP is a programming paradigm based on objects, encapsulating data and behavior for modular and reusable code.
Encapsulation: Bundling data and methods that operate on the data within one unit (e.g., a class).
Inheritance: Mechanism to create a new class from an existing class, inheriting attributes and methods (e.g., a 'Dog' class inheriting from an 'Animal' class).
Polymorphism: Ability to present the same interface for...
Encapsulation is a fundamental concept in OOP that restricts direct access to an object's data and methods.
Encapsulation combines data and methods that operate on that data into a single unit called a class.
It restricts access to certain components, which is achieved using access modifiers like private, protected, and public.
For example, a class 'Car' can have private attributes like 'speed' and 'fuelLevel', and public...
I appeared for an interview in May 2025, where I was asked the following questions.
Fundamental coding concepts include syntax, data structures, algorithms, and debugging, essential for effective programming.
Syntax: The set of rules that defines the combinations of symbols that are considered to be correctly structured programs. Example: In Python, indentation is crucial.
Data Structures: Ways to organize and store data for efficient access and modification. Example: Arrays, linked lists, and hash tabl...
OOP is a programming paradigm based on objects, encapsulating data and behavior for modular and reusable code.
Encapsulation: Bundling data and methods that operate on the data within one unit (e.g., a class).
Inheritance: Mechanism to create a new class using properties and methods of an existing class (e.g., a 'Dog' class inheriting from an 'Animal' class).
Polymorphism: Ability to present the same interface for differe...
I appeared for an interview in Apr 2025, where I was asked the following questions.
I appeared for an interview in Feb 2025.
Self introduction, academics, project in engineering,
Exams on SAP and training related to it.
What people are saying about Infosys
Some of the top questions asked at the Infosys System Engineer interview for freshers -
The duration of Infosys System Engineer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 123 interview experiences
Difficulty level
Duration
based on 4k reviews
Rating in categories
Technology Analyst
54.8k
salaries
| ₹4.8 L/yr - ₹10 L/yr |
Senior Systems Engineer
54.2k
salaries
| ₹2.5 L/yr - ₹6.3 L/yr |
Technical Lead
35.3k
salaries
| ₹9.6 L/yr - ₹16.5 L/yr |
System Engineer
32.6k
salaries
| ₹2.4 L/yr - ₹5.5 L/yr |
Senior Associate Consultant
32k
salaries
| ₹8.2 L/yr - ₹15 L/yr |
TCS
Wipro
Cognizant
Accenture