i
Publicis Sapient
Filter interviews by
Clear (1)
C is a procedural programming language while C++ is an object-oriented programming language.
C is a low-level language while C++ is a high-level language.
C++ supports object-oriented programming concepts like classes, inheritance, and polymorphism.
C++ has better support for exception handling and templates.
C++ is more complex than C and requires more memory.
C++ is used for developing applications like video games, while...
A class is a blueprint for creating objects that have similar attributes and behaviors.
Classes are used in object-oriented programming.
They define the properties and methods that objects of that class will have.
Objects are instances of a class.
Classes can inherit properties and methods from other classes.
Examples of classes include 'Person', 'Car', and 'Animal'.
An object is a self-contained entity that contains data and behavior.
An object is an instance of a class.
It has attributes (data) and methods (behavior).
Objects can interact with each other through their methods.
Examples include a car object with attributes like color and model, and methods like start and stop.
Another example is a person object with attributes like name and age, and methods like walk and talk.
A variable that is associated with a class rather than with instances of the class.
Static variables are declared using the static keyword.
They are initialized only once, at the start of the program execution.
They retain their value throughout the program's execution.
They can be accessed without creating an instance of the class.
Example: public static int count = 0;
Static variables have local scope but retain their value between function calls, while global variables have global scope.
Static variables are declared inside a function and retain their value between function calls
Global variables are declared outside of any function and can be accessed from any part of the program
Static variables have local scope, while global variables have global scope
Static variables are initializ...
Pointers are variables that store memory addresses of other variables.
Pointers allow for dynamic memory allocation and manipulation.
They are commonly used in programming languages like C and C++.
Example: int *ptr; // declares a pointer to an integer variable
Example: ptr = # // assigns the memory address of num to ptr
Example: *ptr = 5; // assigns the value 5 to the variable pointed to by ptr
Structures are arrangements of elements that form a framework or framework-like support.
Structures can be found in various fields such as engineering, architecture, and biology.
They can be made of different materials such as steel, wood, or bone.
Examples include bridges, buildings, and the skeletal system.
Structures can be designed to withstand different types of forces such as compression, tension, or bending.
A stack is a data structure that follows the Last In First Out (LIFO) principle.
Push: adds an element to the top of the stack
Pop: removes the top element from the stack
Peek: returns the top element without removing it
IsEmpty: checks if the stack is empty
Size: returns the number of elements in the stack
Three steps for using functions in C.
Declare the function with its return type, name, and parameters.
Define the function by writing the code for it.
Call the function by using its name and passing arguments if necessary.
The limit for the number of arguments passed to functions is not fixed. Arrays or structures can be used to pass more parameters.
The limit for the number of arguments passed to functions is not fixed and depends on the programming language and system architecture.
In C programming language, there is no limit on the number of arguments that can be passed to a function.
In Java, the maximum number of arguments that can be ...
A union is an organization formed by workers to protect their rights and interests in the workplace.
Unions negotiate with employers for better wages, benefits, and working conditions.
They also provide support and representation for workers in disputes with management.
Membership in a union is voluntary, but members pay dues to support the union's activities.
Unions can be industry-specific, such as the United Auto Worker...
if else is used for simple conditions while switch case is used for multiple conditions.
if else is a sequential decision-making statement while switch case is a multi-branch decision-making statement
if else is used when there are only a few conditions to be checked while switch case is used when there are multiple conditions to be checked
if else can have multiple conditions in a single statement while switch case can o...
Member functions are functions that are defined inside a class and can access the class's private and protected members.
Member functions are also known as methods.
They can be used to manipulate the data members of an object.
They can be overloaded, meaning multiple functions with the same name but different parameters can exist within a class.
They can be declared as const, meaning they do not modify the object's state.
E...
Find the output of c=++a+b-- where a=5 and b=4.
The value of a is incremented by 1 before the addition operation
The value of b is decremented by 1 after the addition operation
The final value of c is 10
The value of a becomes 6 and the value of b becomes 3
10 plants can be planted in 5 rows with 4 plants in each row.
Divide the plants into groups of 4.
Arrange the groups in 5 rows.
Each row will have 4 plants.
Exceptions handling is a mechanism to handle runtime errors in Java programs.
Exceptions are objects that are thrown at runtime when an error occurs
Java provides try-catch-finally blocks to handle exceptions
Checked exceptions must be handled or declared in the method signature
Unchecked exceptions can be handled or left unhandled
Custom exceptions can be created by extending the Exception class
I have experience in project management, data analysis, and consulting across various industries.
Managed multiple projects simultaneously, ensuring timely delivery and client satisfaction
Analyzed data to identify trends and provide insights for clients
Consulted with clients to develop and implement strategies for growth and efficiency
Worked with clients in industries such as healthcare, finance, and retail
Collaborated ...
To gain experience in consulting and develop skills in project management, team leadership, and client relations.
Gain experience in consulting
Develop skills in project management
Develop skills in team leadership
Develop skills in client relations
What people are saying about Publicis Sapient
I applied via Recruitment Consultant and was interviewed in Nov 2020. There were 3 interview rounds.
I applied via Naukri.com and was interviewed before Nov 2020. There were 3 interview rounds.
Angular has several lifecycle methods that are called at different stages of a component's life.
ngOnInit() - called after the component is initialized
ngOnChanges() - called when the component's input properties change
ngDoCheck() - called during every change detection cycle
ngAfterViewInit() - called after the component's view has been initialized
ngOnDestroy() - called just before the component is destroyed
Pipes are a feature in Angular that allow for data transformation before displaying it in the view.
Pipes are used to format data in the view
They can be used to filter, sort, and transform data
Examples include the date pipe, currency pipe, and uppercase pipe
Global error handling in Angular can be done using ErrorHandler class.
Create a class that implements the ErrorHandler interface
Override the handleError() method to handle errors globally
Provide the ErrorHandler class in the providers array of AppModule
Use the error handling service to log errors or display error messages
Custom directives are a way to extend HTML with new attributes and functionality.
Types of custom directives are attribute, element, and class directives.
Attribute directives modify the behavior of existing HTML elements.
Element directives create new HTML elements.
Class directives modify the behavior of existing HTML elements based on their class.
To create a custom directive, use the directive() method of the AngularJS ...
I applied via Naukri.com and was interviewed in Apr 2021. There were 3 interview rounds.
I applied via Campus Placement and was interviewed in Mar 2021. There was 1 interview round.
I applied via Referral and was interviewed before Mar 2021. There were 2 interview rounds.
Grammar and analytical questions
I applied via Naukri.com and was interviewed in Apr 2021. There was 1 interview round.
HANA is an in-memory database and application development platform developed by SAP.
HANA stands for High-Performance Analytic Appliance.
It allows real-time processing of large amounts of data.
It can be used for data warehousing, analytics, and application development.
HANA is used by businesses to gain insights from their data and make better decisions.
Examples of companies using HANA include Coca-Cola, Nestle, and Merc
I applied via Referral and was interviewed before Jan 2021. There were 3 interview rounds.
I applied via Naukri.com and was interviewed before May 2020. There were 3 interview rounds.
Some of the top questions asked at the Publicis Sapient Consultant interview -
based on 2 reviews
Rating in categories
Senior Associate
2.2k
salaries
| ₹0 L/yr - ₹0 L/yr |
Associate Technology L2
1.5k
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Associate Technology L1
1.2k
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Software Engineer
743
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Associate 2
626
salaries
| ₹0 L/yr - ₹0 L/yr |
Accenture
IBM
TCS
Infosys