i
Publicis
Sapient
Work with us
Filter interviews by
Functional components are stateless components in React that render UI based on props.
Functional components are JavaScript functions that return JSX.
They can accept props as arguments, e.g., `const MyComponent = (props) => <div>{props.text}</div>`.
They promote code reusability and simplicity compared to class components.
With React Hooks, they can manage state and side effects, e.g., `useState` and `...
React is a JavaScript library for building user interfaces, particularly single-page applications, using a component-based architecture.
Component-Based: React allows developers to build encapsulated components that manage their own state, making code reusable and easier to maintain.
Virtual DOM: React uses a virtual representation of the DOM to optimize rendering, improving performance by minimizing direct updates ...
Fetch cart items and display them
Create a function to fetch cart items from database
Display the items in the cart on the user interface
Handle empty cart scenarios
Consider pagination for large number of items
Fetch characters and their movies
Use API like IMDb or The Movie Database to fetch movie data
Parse the data to extract characters and their associated movies
Store the characters and movies in an array of strings
Create a Login form with email validation using Vanilla JS.
Create a form in HTML with input fields for email and password
Use JavaScript to validate the email input using regular expressions
Display error messages if the email input is not in the correct format
Using useReducer and useContext for API fetching and state management in React applications.
useReducer is ideal for managing complex state logic, especially when the state depends on previous values.
useContext allows for sharing state across components without prop drilling, making it easier to manage global state.
Example: Create a context for user data and useReducer to handle actions like FETCH_USER, UPDATE_USER...
Find duplicate numbers in an unsorted array and return the array.
Iterate through the array and keep track of seen numbers using a hash table.
If a number is already in the hash table, it is a duplicate.
Add the duplicate number to a new array and return it.
Recursion program is a function that calls itself until a base condition is met.
Identify the base case and write the code to handle it
Write the code to call the function recursively
Ensure that the recursion terminates eventually
Examples: factorial, Fibonacci sequence, binary search
Comparator in Java 8 provides default methods and lambda expressions for sorting.
Comparator in Java 8 can be implemented using lambda expressions.
Comparator in Java 8 provides default methods like reversed() and thenComparing() for sorting.
Comparator in pre-Java 8 versions can be implemented using anonymous inner classes.
Comparator in pre-Java 8 versions requires more code to implement compared to Java 8.
Example: ...
Java collections are evolving with new features for better performance, usability, and integration with modern programming paradigms.
Introduction of new collection types like Stream API for functional-style operations.
Improvements in performance with concurrent collections like ConcurrentHashMap.
Enhanced support for immutability with List.of(), Set.of(), and Map.of() methods.
Integration with reactive programming t...
I appeared for an interview in Dec 2024, where I was asked the following questions.
Java collections are evolving with new features for better performance, usability, and integration with modern programming paradigms.
Introduction of new collection types like Stream API for functional-style operations.
Improvements in performance with concurrent collections like ConcurrentHashMap.
Enhanced support for immutability with List.of(), Set.of(), and Map.of() methods.
Integration with reactive programming throug...
Fetch cart items and display them
Create a function to fetch cart items from database
Display the items in the cart on the user interface
Handle empty cart scenarios
Consider pagination for large number of items
Fetch characters and their movies
Use API like IMDb or The Movie Database to fetch movie data
Parse the data to extract characters and their associated movies
Store the characters and movies in an array of strings
I applied via LinkedIn and was interviewed in Apr 2024. There were 3 interview rounds.
Create a Login form with email validation using Vanilla JS.
Create a form in HTML with input fields for email and password
Use JavaScript to validate the email input using regular expressions
Display error messages if the email input is not in the correct format
Using useReducer and useContext for API fetching and state management in React applications.
useReducer is ideal for managing complex state logic, especially when the state depends on previous values.
useContext allows for sharing state across components without prop drilling, making it easier to manage global state.
Example: Create a context for user data and useReducer to handle actions like FETCH_USER, UPDATE_USER.
Comb...
I applied via Naukri.com and was interviewed in Jun 2024. There were 3 interview rounds.
MCQ Questions from various topics in java, spring, unit testing, multithreading and other OOPS concepts
Need to develop microservices with multiple APIs.
Some online test with MCQ and Coding
I applied via Recruitment Consulltant and was interviewed in Aug 2024. There was 1 interview round.
Custom hooks are reusable functions that allow you to extract component logic into separate functions for better reusability and readability.
Custom hooks are created by prefixing the function name with 'use' (e.g. useCustomHook)
They can be used to share logic between components without repeating code
Custom hooks can be used for data fetching, state management, and more
What people are saying about Publicis Sapient
Some of the top questions asked at the Publicis Sapient Senior Software Engineer interview -
The duration of Publicis Sapient Senior Software Engineer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 28 interview experiences
Difficulty level
Duration
based on 84 reviews
Rating in categories
Senior Associate
2.2k
salaries
| ₹11.3 L/yr - ₹40 L/yr |
Associate Technology L2
1.6k
salaries
| ₹6.7 L/yr - ₹21.7 L/yr |
Senior Associate Technology L1
1.4k
salaries
| ₹10.5 L/yr - ₹30 L/yr |
Senior Software Engineer
901
salaries
| ₹10.1 L/yr - ₹37 L/yr |
Senior Associate 2
686
salaries
| ₹15 L/yr - ₹42 L/yr |
Genpact
DXC Technology
Sutherland Global Services
Optum Global Solutions