i
Publicis
Sapient
Work with us
Filter interviews by
SOLID principles are a set of five design principles that help make software designs more understandable, flexible, and maintainable.
S - Single Responsibility Principle: A class should have only one reason to change.
O - Open/Closed Principle: Software entities should be open for extension but closed for modification.
L - Liskov Substitution Principle: Objects of a superclass should be replaceable with objects of it...
List is mutable, tuple is immutable in Python.
List can be modified after creation, tuple cannot.
List is defined using square brackets [], tuple using parentheses ().
List is slower than tuple due to mutability.
Example: list_example = [1, 2, 3], tuple_example = (1, 2, 3)
Extended methods are a way to add new functionality to existing classes without modifying their source code.
Extended methods allow developers to add new methods to existing classes without inheritance.
They are commonly used in languages like C# and Kotlin.
Extended methods can improve code readability and maintainability by keeping related functionality together.
Reversing a linked list involves changing the direction of its nodes to point to the previous node instead of the next.
1. Initialize three pointers: previous (prev), current (curr), and next.
2. Traverse the list: while curr is not null, set next to curr.next.
3. Reverse the link: curr.next = prev.
4. Move prev and curr one step forward: prev = curr; curr = next.
5. Repeat until curr is null; prev will be the new head...
Invert a binary tree by swapping left and right children recursively.
Use a recursive approach to swap left and right children.
Base case: If the node is null, return.
Example: For a tree with root 1, left 2, right 3, after inversion, left becomes 3, right becomes 2.
Iterative approach can also be used with a queue or stack.
Method overloading is having multiple methods with the same name but different parameters. Method overriding is having a subclass method with the same name and parameters as a superclass method.
Method overloading is used to provide different ways of calling the same method with different parameters.
Method overriding is used to provide a specific implementation of a method in a subclass that is already defined in t...
Switch case is used for multiple conditions while if else is used for binary conditions.
Switch case is faster than if else for multiple conditions.
If else can handle complex conditions while switch case cannot.
Switch case can only compare values of the same data type.
If else can handle null values while switch case cannot.
Example: switch (day) { case 1: console.log('Monday'); break; case 2: console.log('Tuesday');...
Interface and abstract class are both used for abstraction in object-oriented programming.
An interface is a collection of abstract methods that define a contract for a class to implement.
An abstract class is a class that cannot be instantiated and may contain abstract methods.
Interfaces are used to achieve multiple inheritance in Java.
Abstract classes can have non-abstract methods and instance variables.
An example...
Polymorphism is the ability of an object to take on many forms.
It allows objects of different classes to be treated as if they were objects of the same class.
It is achieved through method overriding and method overloading.
Example: A shape class can have multiple subclasses like circle, square, etc. and all can be treated as shapes.
Example: A method can have different implementations in different classes but with t...
Inheritance is a mechanism in object-oriented programming where a new class is created by inheriting properties of an existing class.
Inheritance allows code reusability and saves time and effort in writing new code.
The existing class is called the parent or base class, and the new class is called the child or derived class.
The child class inherits all the properties and methods of the parent class and can also add...
I handle pressure by staying organized, prioritizing tasks, and taking breaks when needed.
I prioritize tasks based on deadlines and importance
I break down complex tasks into smaller, manageable steps
I communicate with team members and managers about workload and deadlines
I practice stress-relief techniques such as deep breathing or taking short walks
I appeared for an interview in Feb 2025, where I was asked the following questions.
It's an 1 hour round
I appeared for an interview in Sep 2023.
List is mutable, tuple is immutable in Python.
List can be modified after creation, tuple cannot.
List is defined using square brackets [], tuple using parentheses ().
List is slower than tuple due to mutability.
Example: list_example = [1, 2, 3], tuple_example = (1, 2, 3)
Extended methods are a way to add new functionality to existing classes without modifying their source code.
Extended methods allow developers to add new methods to existing classes without inheritance.
They are commonly used in languages like C# and Kotlin.
Extended methods can improve code readability and maintainability by keeping related functionality together.
I applied via Campus Placement and was interviewed in Oct 2023. There were 2 interview rounds.
It was okay but easy comparatively.
Was easy but they select very few students.
I applied via Company Website and was interviewed in Mar 2023. There were 3 interview rounds.
I applied via Referral and was interviewed before Sep 2023. There were 2 interview rounds.
SOLID principles are a set of five design principles that help make software designs more understandable, flexible, and maintainable.
S - Single Responsibility Principle: A class should have only one reason to change.
O - Open/Closed Principle: Software entities should be open for extension but closed for modification.
L - Liskov Substitution Principle: Objects of a superclass should be replaceable with objects of its sub...
I can join within 2 weeks of receiving an offer.
I can start within 2 weeks of receiving an offer.
My current notice period is 2 weeks.
I am available to start immediately.
Good questions related to coding and performance tuning
Top trending discussions
Some of the top questions asked at the Publicis Sapient Software Developer interview -
based on 9 interview experiences
Difficulty level
Duration
based on 38 reviews
Rating in categories
Senior Associate
2.2k
salaries
| ₹11.2 L/yr - ₹41.8 L/yr |
Associate Technology L2
1.6k
salaries
| ₹6.7 L/yr - ₹21.5 L/yr |
Senior Associate Technology L1
1.3k
salaries
| ₹10.5 L/yr - ₹30 L/yr |
Senior Software Engineer
866
salaries
| ₹10.4 L/yr - ₹37 L/yr |
Senior Associate 2
658
salaries
| ₹15 L/yr - ₹42 L/yr |
Genpact
DXC Technology
Optum Global Solutions
Virtusa Consulting Services