Publicis Sapient
20+ Prinics Photo Printers Interview Questions and Answers
Q1. 1. remove duplicate from the list of object
Remove duplicates from a list of objects.
Create a new empty list.
Iterate through the original list.
For each object, check if it is already in the new list.
If not, add it to the new list.
Return the new list without duplicates.
Q2. Do you know core values of Sapient?
Yes, the core values of Sapient are People, Collaboration, Innovation, and Excellence.
People - Putting people first, valuing diversity and inclusion
Collaboration - Working together as a team, fostering open communication
Innovation - Encouraging creativity, embracing new ideas and technologies
Excellence - Striving for high quality, continuous improvement
Q3. What is controlled and uncontrolled component
Controlled components are inputs whose value is controlled by React, while uncontrolled components are inputs whose value is controlled by the DOM.
Controlled components are typically used in forms where the input value is controlled by React state.
Uncontrolled components are often used for inputs that do not need to be controlled by React.
Examples of controlled components include input fields with value and onChange props specified.
Examples of uncontrolled components include ...read more
Q4. What is Hosting in JS? give one example
Hosting in JS refers to the behavior of variable declarations being moved to the top of their containing scope during the compilation phase.
Variable declarations are 'hoisted' to the top of their scope, regardless of where the actual declaration occurs.
Only the declarations are hoisted, not the initializations.
Example: var x; console.log(x); var x = 5; // Output: undefined
Q5. Sql query performance and optimisation ways
Tips for SQL query performance and optimization
Use indexes to speed up query execution
Avoid using SELECT * and only select necessary columns
Use JOINs instead of subqueries
Avoid using functions in WHERE clauses
Use EXPLAIN to analyze query performance
Normalize database tables to reduce redundancy
Use stored procedures for frequently executed queries
Q6. What is debouncing and throttling in JS
Debouncing and throttling are techniques used in JavaScript to limit the number of times a function is called.
Debouncing delays the execution of a function until a certain amount of time has passed without it being called again.
Throttling limits the rate at which a function can be called, ensuring it is not called more than once within a specified time interval.
Q7. What is Boolean Search?
Boolean search is a type of search that allows users to combine keywords with operators such as AND, OR, and NOT to produce more relevant results.
Boolean search is commonly used in search engines and databases.
It helps to narrow down search results by using specific keywords and operators.
For example, searching for 'cats AND dogs' will only show results that include both keywords.
On the other hand, searching for 'cats NOT dogs' will exclude any results that include the keywor...read more
Q8. Explain design system in JS with one example
A design system in JS is a collection of reusable components and guidelines for consistent UI design.
Design systems help maintain consistency and efficiency in UI development.
Components in a design system can include buttons, forms, typography, etc.
One example is Material-UI, a popular design system for React applications.
Q9. What is X-ray Search?
X-ray search is a process of examining an object or a person using X-rays to reveal its internal structure.
X-ray search is commonly used in medical imaging to diagnose and treat various conditions.
It can also be used in security screening to detect hidden objects or weapons.
X-ray search involves exposing the object or person to a controlled amount of radiation and capturing the resulting image.
The image can then be analyzed by a trained professional to identify any abnormalit...read more
Q10. How to implement DWH n why
A data warehouse (DWH) is implemented to centralize and integrate data from various sources for analysis and reporting purposes.
DWH helps in improving data quality and consistency by integrating data from multiple sources.
It provides a single source of truth for decision-making by consolidating data into a unified view.
DWH enables historical analysis and trend identification by storing large volumes of data over time.
It supports complex queries and ad-hoc reporting by optimiz...read more
Q11. What is pure component
A pure component is a component in thermodynamics that is made up of a single substance or chemical element.
A pure component has a fixed chemical composition and distinct physical properties.
It cannot be separated into simpler substances by physical means.
Examples include water, oxygen, and gold.
Q12. What is prototype in JS
Prototype in JS is an object that every function in JS has, which allows for inheritance and sharing of properties and methods.
Prototype is an object that every function in JS has.
It allows for inheritance and sharing of properties and methods.
You can access an object's prototype using the __proto__ property.
Q13. Explain the cost cutting process?
Cost cutting process involves identifying and reducing unnecessary expenses to improve profitability.
Analyze current expenses and identify areas where costs can be reduced
Implement cost-saving measures such as negotiating better prices with suppliers or reducing energy consumption
Monitor and track expenses regularly to ensure cost-cutting measures are effective
Communicate with stakeholders about the cost-cutting process and the benefits it will bring
Evaluate the impact of cos...read more
Q14. microservices various design patterns
Microservices design patterns are architectural patterns used to design and implement microservices-based applications.
Some common microservices design patterns include API Gateway, Service Registry, Circuit Breaker, and Saga Pattern.
API Gateway pattern acts as a single entry point for clients to access multiple microservices.
Service Registry pattern helps in service discovery and registration of microservices.
Circuit Breaker pattern prevents cascading failures by failing fas...read more
Q15. What is Aem component
An AEM component is a reusable building block used to create web pages in Adobe Experience Manager.
AEM components are used to define the structure and layout of web pages.
They can include HTML, CSS, JavaScript, and server-side logic.
Examples of AEM components include image carousels, navigation menus, and contact forms.
Q16. Solid principle with examples
SOLID principles are a set of guidelines for writing maintainable and scalable code.
Single Responsibility Principle - A class should have only one reason to change.
Open/Closed Principle - A class should be open for extension but closed for modification.
Liskov Substitution Principle - Subtypes should be substitutable for their base types.
Interface Segregation Principle - A client should not be forced to depend on methods it does not use.
Dependency Inversion Principle - High-le...read more
Q17. Use case to create a DHA
A DHA (Data Handling Application) is created to manage and process data efficiently.
Identify the data sources and types of data to be handled
Design a data model and schema for organizing the data
Implement data collection and storage mechanisms
Develop data processing algorithms and workflows
Ensure data security and privacy measures
Create user-friendly interfaces for data input and retrieval
Perform regular data quality checks and maintenance
Integrate with other systems or appli...read more
Q18. Explain react life cycle
React life cycle refers to the series of methods that are invoked in the process of creating, updating, and destroying a component.
Mounting phase: constructor, render, componentDidMount
Updating phase: shouldComponentUpdate, render, componentDidUpdate
Unmounting phase: componentWillUnmount
Q19. internals of dictionary
A dictionary is a data structure that stores key-value pairs for efficient lookups.
Key-value pairs are stored in dictionaries.
Keys must be unique within a dictionary.
Values can be accessed using keys.
Dictionaries are mutable and can be modified.
Example: {'name': 'John', 'age': 30}
Q20. Implement Observer Pattern
The Observer Pattern is a behavioral design pattern where an object (subject) maintains a list of dependents (observers) that are notified of any state changes.
Create an interface for the observer with methods like update()
Create a subject class with methods to add, remove, and notify observers
Implement concrete observer classes that implement the observer interface
When the state of the subject changes, notify all observers by calling their update() method
Q21. Implement Fork Join Framework
Fork Join Framework is a feature in Java for parallelizing tasks.
ForkJoinPool class is used to create and manage ForkJoinTasks.
ForkJoinTask class represents a task that can be forked and joined.
Use fork() method to asynchronously execute a subtask.
Use join() method to wait for the result of a subtask.
Q22. Diff between elt vs etl
ELT stands for Extract, Load, Transform while ETL stands for Extract, Transform, Load.
ELT focuses on extracting data from the source, loading it into a target system, and then transforming it within the target system.
ETL focuses on extracting data from the source, transforming it, and then loading it into a target system.
In ELT, the target system has the processing power to handle the transformation tasks.
In ETL, the transformation tasks are performed by a separate system or ...read more
Q23. Diff between oltp vs olap
OLTP is a transactional system that handles real-time data processing, while OLAP is an analytical system that deals with historical data analysis.
OLTP focuses on day-to-day operations and supports high transaction volumes.
OLAP focuses on complex queries and data analysis for decision-making.
OLTP databases are normalized for efficient transaction processing.
OLAP databases are denormalized for faster query performance.
OLTP systems are designed for concurrent access and data in...read more
Q24. Flatten a json file
Flatten a JSON file by converting nested objects into a single level structure.
Use recursion to iterate through the JSON file and flatten nested objects.
Combine keys from nested objects with parent keys to create unique keys for the flattened structure.
Handle arrays by converting them into separate objects with numerical keys.
Top HR Questions asked in Prinics Photo Printers
Interview Process at Prinics Photo Printers
Top Senior Associate Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month