i
Publicis Sapient
Filter interviews by
I applied via Referral and was interviewed before Sep 2021. There were 4 interview rounds.
Swift and objective fundamentals
Reasoning and math with multiple options
Factory design pattern is used to create objects without specifying the exact class of object that will be created.
Factory method creates objects without specifying the exact class of object that will be created.
It provides a way to delegate the instantiation logic to child classes.
Example: Java's Calendar.getInstance() method returns a Calendar object based on the current timezone and locale.
Redux is a predictable state container for JavaScript apps.
Centralized state management
State is read-only
Changes are made with pure functions (reducers)
Actions are dispatched to update state
Used with React for managing application state
posted on 9 Dec 2024
An abstract class is a class that cannot be instantiated and is used as a blueprint for other classes to inherit from.
Cannot be instantiated directly
May contain abstract methods that must be implemented by subclasses
Can have both abstract and non-abstract methods
Used to define common behavior for subclasses
Singleton pattern ensures a class has only one instance and provides a global point of access to it.
Create a private static instance variable of the class itself
Make the constructor private to prevent instantiation from outside the class
Provide a static method to access the singleton instance
posted on 20 Jun 2024
Technical coding coding test
A view is a virtual table created by a query. CTE stands for Common Table Expression, which is a temporary result set.
View is a saved SQL query that acts as a virtual table
CTE is a temporary result set that can be referenced within a query
Views can be used to simplify complex queries and provide a layer of abstraction
CTEs are useful for recursive queries or when a result set needs to be referenced multiple times
posted on 25 Feb 2022
I applied via Naukri.com and was interviewed before Feb 2021. There was 1 interview round.
I applied via Company Website and was interviewed in Apr 2024. There was 1 interview round.
Abstraction is the concept of hiding complex implementation details and showing only the necessary features to the outside world.
Abstraction allows us to focus on what an object does rather than how it does it
Achieved through abstract classes and interfaces in object-oriented programming
Example: A car dashboard abstracts the internal workings of the car and provides only essential information to the driver
Hashtable is synchronized, while hashmap is not. Hashtable does not allow null keys or values, while hashmap does.
Hashtable is synchronized, while hashmap is not
Hashtable does not allow null keys or values, while hashmap does
Hashtable is a legacy class, while hashmap is a newer class
The get() method in HashMap retrieves the value associated with a specified key.
get() method takes a key as input and returns the value associated with that key in the HashMap.
Internally, get() uses the hash code of the key to find the corresponding bucket in the HashMap.
If multiple keys have the same hash code, get() uses the equals() method to find the correct key-value pair.
Normalization is the process of organizing data in a database to reduce redundancy and improve data integrity.
Normalization helps in minimizing data redundancy by dividing the database into multiple tables and defining relationships between them.
It ensures data integrity by avoiding update anomalies and inconsistencies.
There are different normal forms such as 1NF, 2NF, 3NF, BCNF, and 4NF, each with specific rules to fo...
Constraints are limitations or restrictions placed on a system or process.
Constraints define the boundaries within which a system must operate.
They can include limitations on resources, time, or functionality.
Examples of constraints in software engineering include memory limitations, processing speed, and input/output requirements.
Query to retrieve the 3rd highest salary from the employee table
Use the ORDER BY clause to sort salaries in descending order
Use the LIMIT clause to retrieve the 3rd highest salary
Traverse the linked list to find the 2nd last node and return its value.
Traverse the linked list while keeping track of the current and previous nodes.
Once at the end of the list, return the value of the previous node.
Use two variables to keep track of the smallest and second smallest numbers in the array.
Iterate through the array and update the variables accordingly.
Initialize the variables with the maximum possible integer value to start with.
Example: array = [5, 2, 8, 1, 3], smallest = 1, secondSmallest = 2.
I applied via Recruitment Consultant and was interviewed in Dec 2021. There were 4 interview rounds.
based on 1 interview
Interview experience
based on 7 reviews
Rating in categories
Senior Associate
2.2k
salaries
| ₹11 L/yr - ₹40 L/yr |
Associate Technology L2
1.5k
salaries
| ₹6.5 L/yr - ₹20 L/yr |
Senior Associate Technology L1
1.2k
salaries
| ₹10 L/yr - ₹30 L/yr |
Senior Software Engineer
739
salaries
| ₹9.5 L/yr - ₹37 L/yr |
Senior Associate 2
622
salaries
| ₹14.1 L/yr - ₹41 L/yr |
Accenture
IBM
TCS
Infosys