i
Infosys
Filter interviews by
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
I applied via Referral and was interviewed in Sep 2020. There were 4 interview rounds.
C# concepts including abstraction, interface, abstract method, abstract class, polymorphism, encapsulation, inheritance, and serialization.
Abstraction: hiding implementation details
Interface: defining a contract for behavior
Abstract method: method without implementation
Abstract class: class with one or more abstract methods
Polymorphism: ability of objects to take on multiple forms
Encapsulation: bundling data and behavi...
Switch case is used for multiple conditions while if else is for binary conditions. Sorting can be done using various algorithms.
Switch case is faster than if else for multiple conditions
If else is more readable for binary conditions
Sorting can be done using bubble sort, insertion sort, quick sort, etc.
Example code for bubble sort: for(i=0;i
Difference between compiler and interpreter with a coding challenge
Compiler translates the entire code into machine language before execution while interpreter translates line by line during execution
Compiler generates an executable file while interpreter does not
Compiler is faster but debugging is harder while interpreter is slower but debugging is easier
Coding challenge: Write a program to find the sum of two numbers
I applied via Naukri.com and was interviewed in Mar 2021. There was 1 interview round.
I applied via Company Website and was interviewed in Feb 2021. There was 1 interview round.
I applied via Walk-in and was interviewed before Dec 2020. There were 3 interview rounds.
based on 2 interviews
Interview experience
Technology Analyst
55.4k
salaries
| ₹3 L/yr - ₹11 L/yr |
Senior Systems Engineer
51.2k
salaries
| ₹2.5 L/yr - ₹8 L/yr |
System Engineer
31.7k
salaries
| ₹2.5 L/yr - ₹5.6 L/yr |
Technical Lead
31k
salaries
| ₹5.1 L/yr - ₹19.5 L/yr |
Senior Associate Consultant
28.8k
salaries
| ₹6.2 L/yr - ₹16.9 L/yr |
TCS
Wipro
Cognizant
Accenture