i
Publicis Sapient
Filter interviews by
posted on 9 Jul 2024
I applied via Referral and was interviewed before Jul 2023. There was 1 interview round.
Inheritance is a concept in object-oriented programming where a class can inherit attributes and methods from another class.
Allows for code reusability by creating a new class based on an existing class
Derived class (subclass) inherits properties and behaviors from a base class (superclass)
Can have multiple levels of inheritance, creating a hierarchy of classes
Example: Animal class can be a base class with Dog and Cat
Polymorphism is the ability of a function or method to behave differently based on the object it is acting upon.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
It enables a single interface to be used for different data types or classes.
Examples include method overloading and method overriding in object-oriented programming.
Code to reverse a string using array of characters
Iterate through half of the string and swap characters from start and end
Use a temporary variable to store the character being swapped
Handle edge cases like empty string or single character string
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.
posted on 9 Dec 2022
I applied via Recruitment Consulltant and was interviewed in Jun 2022. There were 2 interview rounds.
I applied via Campus Placement and was interviewed in Nov 2021. There were 3 interview rounds.
They will give you one topic and you want to speak about it .
I was interviewed in Sep 2021.
Round duration - 90 minutes
Round difficulty - Medium
Timing -12pm to 1:30pm
Test environment was good and we should keep in our mind about our net speed.
Given an array containing 'N' elements, the task is to reverse the order of all array elements and display the reversed array.
The elements of the given array need to...
Given a board with 2 rows and N columns, and an infinite supply of 2x1 tiles, determine the number of distinct ways to completely cover the board using these tiles.
You can place...
Try to place the tile to fill the unit column and calculate the number of ways from smaller sub-problems. Then use memoization to convert O(2^N) solution to an O(N) solution.
We can place in this way where we have ‘idx-1’ column filled.
&nb...
Round duration - 60 Minutes
Round difficulty - Easy
Timing was 3pm to 4 pm
environment was easy familier and interviwer was also in good mood ,first he ask me about general things then he come on OS/DBMS .
Round duration - 30 Minutes
Round difficulty - Easy
timing - 10am to 10:30am
environment was very familier and interviewer was with good sence of humor
Tip 1 : Don't depend on video only , practice is must and assignments provided by coding ninja's are best.
Tip 2 : Note all important point in note book so that you can easy revise.
Tip 3 : Make at least 3-4 projects on your on
Tip 1 : Be real don't go for fake and write what you are.
Tip 2 : Mention all your project and explain them in good way
posted on 22 May 2022
based on 3 interviews
Interview experience
based on 2 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