i
Infosys
Filter interviews by
Clear (1)
I applied via LinkedIn and was interviewed in Nov 2024. There was 1 interview round.
I applied via Company Website and was interviewed in Jul 2024. There were 3 interview rounds.
A generator in Python is a function that returns an iterator object which can be iterated over to generate values lazily.
Generators are created using a function with 'yield' keyword instead of 'return'.
They allow for efficient memory usage as they generate values on the fly.
Generators are useful for generating large sequences of data without storing them in memory.
Example: def my_generator(): for i in range(5): yiel...
Decorator is a design pattern in Python that allows adding new functionality to an existing object without modifying its structure.
Decorators are functions that take another function as an argument and extend its behavior without modifying it directly.
They are commonly used to add logging, timing, caching, or authentication to functions.
Decorators use the @ symbol followed by the decorator name above the function defin...
List is mutable, tuple is immutable in Python.
List can be modified after creation, tuple cannot.
List uses square brackets [], tuple uses parentheses ().
List is used for dynamic data, tuple for fixed data.
Example: list_example = [1, 2, 3], tuple_example = (4, 5, 6)
List comprehension is a concise way to create lists in Python by iterating over an existing list or iterable.
List comprehension is more concise and readable than traditional loops.
It can be used to filter elements, perform operations on elements, or create new lists based on existing ones.
Example: squares = [x**2 for x in range(10)]
Example: even_numbers = [x for x in range(10) if x % 2 == 0]
Fibonacci series is a sequence of numbers where each number is the sum of the two preceding ones.
Initialize variables for the first two numbers in the series (0 and 1)
Use a loop to calculate the next number by adding the previous two numbers
Continue the loop until the desired number of terms is reached
A dictionary in Python is a collection of key-value pairs. It does not accept duplicate keys.
A dictionary is created using curly braces {}
Keys in a dictionary must be unique, but values can be duplicated
Example: my_dict = {'name': 'John', 'age': 30, 'city': 'New York'}
Main principles of OOP include encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation: Bundling data and methods that operate on the data into a single unit (class). Example: Class with private attributes and public methods.
Inheritance: Ability to create a new class (derived class) from an existing class (base class), inheriting its attributes and methods. Example: Subclass 'Dog' inheriting from superc...
Type of inheritance in object-oriented programming determines how a subclass can inherit attributes and methods from a superclass.
Single inheritance: a subclass inherits from only one superclass.
Multiple inheritance: a subclass inherits from multiple superclasses.
Multilevel inheritance: a subclass inherits from a superclass, which in turn inherits from another superclass.
Hierarchical inheritance: multiple subclasses in...
AWS Lambda is a serverless computing service provided by Amazon Web Services.
Serverless computing service
Allows running code without provisioning or managing servers
Automatically scales based on incoming traffic
Supports multiple programming languages like Python, Node.js, Java, etc.
Pay only for the compute time consumed
I am a seasoned Python developer with experience leading teams and delivering high-quality software solutions.
Over 5 years of experience in Python development
Strong leadership skills in guiding and mentoring team members
Proven track record of delivering successful software projects on time and within budget
Developed a web application for online shopping with user authentication and payment gateway integration.
Created user registration and login functionality using Django framework
Integrated Stripe API for secure payment processing
Implemented product catalog and shopping cart features
What people are saying about Infosys
I was interviewed in Apr 2017.
I am a software developer with a passion for coding and problem-solving. My family is supportive and has always encouraged my career in tech.
Experienced software developer
Passionate about coding and problem-solving
Supportive family that encourages my career in tech
I was interviewed before Mar 2021.
Round duration - 60 minutes
Round difficulty - Easy
This was an easy round which went really smooth.
Calculate the Nth term in the Fibonacci sequence, where the sequence is defined as follows: F(n) = F(n-1) + F(n-2)
, with initial conditions F(1) = F(2) = 1
.
Calculate the Nth Fibonacci number efficiently using dynamic programming.
Use dynamic programming to store previously calculated Fibonacci numbers to avoid redundant calculations.
Start with base cases F(1) and F(2) as 1, then iteratively calculate F(n) using F(n-1) and F(n-2).
Ensure the input N is within the constraints 1 <= N <= 10000.
Example: For N = 5, the 5th Fibonacci number is 5 (1, 1, 2, 3, 5).
Given a positive integer N
, your task is to determine and return all prime numbers less than or equal to N
.
N = 10
2 3 5 7
N = 20
Implement a function to return all prime numbers less than or equal to a given positive integer N.
Create a function that takes a positive integer N as input
Iterate from 2 to N and check if each number is prime
Use a helper function to determine if a number is prime
Return an array of all prime numbers less than or equal to N
A merge join in SQL is a method of combining two sorted datasets by matching corresponding rows based on a specified condition.
Merge join is used when joining two large datasets that are already sorted.
It is more efficient than other join methods like nested loop join or hash join for sorted datasets.
The join condition must be an equality condition.
Example: SELECT * FROM table1 INNER JOIN table2 ON table1.id = table2.i
Round duration - 30 minutes
Round difficulty - Easy
The round went excellent. I really enjoyed it. Just be confident about whatever you answer
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
I was interviewed before Mar 2021.
Round duration - 60 minutes
Round difficulty - Easy
This round went well. Interview depends on your basic knowledge of C/C++.
Given two sparse matrices MAT1
and MAT2
of integers with dimensions 'N' x 'M' and 'M' x 'P' respectively, the goal is to determine the resulting matrix produced by their multipl...
Implement a function to multiply two sparse matrices and return the resulting matrix.
Create a function that takes two sparse matrices as input and returns the resulting matrix after multiplication
Iterate through the non-zero elements of the matrices to perform the multiplication efficiently
Handle the edge cases such as empty matrices or matrices with all zero elements
Ensure the dimensions of the matrices are compatible
Tanmay and Rohit are best buddies. Tanmay gives Rohit a challenge involving an array of N natural numbers. The task is to perform and answer a series of queries on the ...
Count the number of even or odd numbers in a range of an array based on given queries.
Create an array to store the input numbers.
Iterate through the queries and update or count even/odd numbers based on the query type.
Output the count of even or odd numbers for each query of type 1 or 2.
Round duration - 30 minutes
Round difficulty - Easy
Typical HR round with behavioral problems.
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
I was interviewed before Sep 2016.
I was interviewed in Mar 2017.
Oops concepts in Java
Encapsulation - hiding implementation details
Inheritance - reusing code and creating parent-child relationships
Polymorphism - multiple forms of a method or object
Abstraction - creating abstract classes and interfaces
Example: Encapsulation - using private variables and public methods
Example: Inheritance - creating a subclass that inherits from a superclass
Example: Polymorphism - using method overloa...
Altering columns in databases involves modifying the structure of a table by adding, deleting or modifying columns.
Use ALTER TABLE statement to modify columns
Add new columns using ADD COLUMN
Delete columns using DROP COLUMN
Modify columns using MODIFY COLUMN
Changing column data type may result in data loss
Reversing a number in Java
Convert the number to a string
Use StringBuilder to reverse the string
Convert the reversed string back to a number
To extract words from a line in Java, split the line using whitespace as delimiter.
Use the split() method of String class
Pass the whitespace regex as argument to split() method
Iterate over the resulting array to get individual words
posted on 23 Sep 2017
I was interviewed in Sep 2017.
Generic collections provide type safety and reusability in software development.
Generic collections allow us to store and manipulate objects of any type in a type-safe manner.
They provide compile-time type checking, reducing the chances of runtime errors.
They promote code reusability by allowing the same collection to be used with different types.
Generic collections improve performance by eliminating the need for boxin...
I was interviewed before Jun 2016.
I am a passionate software developer with 5 years of experience in web development and a strong background in computer science.
5 years of experience in web development
Strong background in computer science
Passionate about software development
To separate personal and professional calls, and to ensure availability and accessibility.
Separate personal and professional calls
Ensure availability and accessibility
Maintain work-life balance
Avoid mixing personal and work-related contacts
based on 2 interviews
Interview experience
Technology Analyst
55.6k
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Systems Engineer
50.7k
salaries
| ₹0 L/yr - ₹0 L/yr |
System Engineer
39.6k
salaries
| ₹0 L/yr - ₹0 L/yr |
Technical Lead
30.7k
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Associate Consultant
28.1k
salaries
| ₹0 L/yr - ₹0 L/yr |
TCS
Wipro
Cognizant
Accenture