i
Publicis Sapient
Filter interviews by
Clear (1)
posted on 4 Sep 2015
Function definition specifies the implementation of a function, while declaration provides the function signature.
Function definition includes the function body, while declaration only includes the function signature.
Function definition is used to define the behavior of a function, while declaration is used to announce the existence of a function.
Function definition can only appear once in a program, while declaration ...
Swapping numbers without using a temporary variable
Use addition and subtraction to swap the numbers
Example: a = 5, b = 10. a = a + b (15), b = a - b (5), a = a - b (10)
Alternatively, use bitwise XOR operation to swap the numbers
Example: a = 5, b = 10. a = a ^ b (15), b = a ^ b (5), a = a ^ b (10)
This program generates a Fibonacci series up to a given length.
Use an array to store the Fibonacci series
Initialize the first two elements of the array as 0 and 1
Use a loop to generate the subsequent elements of the series
Stop the loop when the desired length is reached
Data types are classifications of data that determine the type of values that can be stored and manipulated. Pointers are variables that store memory addresses.
Data types include integers, floating-point numbers, characters, and booleans.
Pointers are used to store memory addresses of variables or objects.
Example: int num = 10; int *ptr = # // ptr stores the memory address of num
An array is a data structure that stores a collection of elements of the same type in a contiguous block of memory.
Arrays can be of any data type, including strings.
Elements in an array are accessed using an index starting from 0.
Arrays have a fixed size, which is determined at the time of declaration.
Arrays can be multidimensional, allowing for the storage of data in multiple dimensions.
Example: ['apple', 'banana', 'o
I faced a complex situation when I had to lead a team to complete a high-pressure project within a tight deadline.
I was assigned as the project manager for a software development project that had a strict deadline.
The project involved integrating multiple systems and coordinating with different teams.
We faced unexpected technical challenges and had to make quick decisions to overcome them.
I had to effectively communica...
What people are saying about Publicis Sapient
I applied via Campus Placement and was interviewed in Jun 2020. There were 4 interview rounds.
posted on 14 May 2022
I applied via Naukri.com and was interviewed before May 2021. There was 1 interview round.
I applied via Walk-in and was interviewed before Apr 2020. There were 5 interview rounds.
I appeared for an interview before Sep 2020.
Round duration - 140 minutes
Round difficulty - Medium
Test timing was at 2:00 pm , it was conducted in a college and the environment was good for the test. Camera was a primary part of test, so no suspicious activity.
Given two numbers in the form of two arrays where each element of the array represents a digit, calculate the sum of these two numbers and return this sum as an ar...
Given two numbers represented as arrays, calculate their sum and return the result as an array.
Iterate through the arrays from right to left, adding digits and carrying over if necessary
Handle cases where one array is longer than the other by considering the remaining digits
Ensure the final sum array does not have any leading zeros
Round duration - 20 minutes
Round difficulty - Easy
The round was conducted at around 12 p.m. I was called at the college location and then it was conducted. The interviewer was quite polite and frank.
Round duration - 8 minutes
Round difficulty - Easy
This round was conducted right after finishing and clearing the technical round at the same place and on the same day.
Tip 1 : Practice atleast 2-3 Coding problems daily so your logic building becomes stronger.
Tip 2 : Exercise problems based on OOPS concepts and others too.
Tip 3 : If you can have your own project built, then it's the major point and will act as a plus point.
Tip 1 : Your resume should be in standard form, short and simple will be more effective.
Tip 2 : Whatever you have learned, you need to mention it in your resume as that will be your primary source of selection and having project on your resume is important.
I applied via Recruitment Consultant and was interviewed before Sep 2020. There were 3 interview rounds.
I applied via Naukri.com and was interviewed in Jul 2020. There were 4 interview rounds.
I applied via Job Portal and was interviewed before Apr 2021. There was 1 interview round.
I applied via Campus Placement and was interviewed before Feb 2020. There were 4 interview rounds.
Senior Associate
2.2k
salaries
| ₹11 L/yr - ₹40 L/yr |
Associate Technology L2
1.5k
salaries
| ₹5 L/yr - ₹20 L/yr |
Senior Associate Technology L1
1.2k
salaries
| ₹10.2 L/yr - ₹30 L/yr |
Senior Software Engineer
743
salaries
| ₹9.6 L/yr - ₹37 L/yr |
Senior Associate 2
626
salaries
| ₹14.1 L/yr - ₹41 L/yr |
Accenture
IBM
TCS
Infosys