i
Capgemini
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
I applied via Naukri.com and was interviewed in Jul 2022. There was 1 interview round.
I applied via Naukri.com and was interviewed in Sep 2024. There was 1 interview round.
Bit shift 1 by 4 positions from LSB results in 16
Use the left shift operator (<<) to shift the bits by 4 positions
1 << 4 = 16
Use a loop to copy characters from one string to another
Create two character arrays to store the strings
Use a loop to iterate through each character of the source string and copy it to the destination string
Add a null terminator at the end of the destination string to mark the end of the copied string
A function pointer is a variable that stores the address of a function. Its signature includes the return type and parameter types of the function.
Function pointers allow for dynamic function calls based on the stored address
Syntax: return_type (*pointer_name)(parameter_types)
Example: void (*funcPtr)(int) = &someFunction;
Polymorphism is the ability of a function to behave differently based on the object it is called with.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
There are two types of polymorphism: compile-time (function overloading) and runtime (virtual functions).
Example: A base class Animal with a virtual function 'makeSound'. Subclasses Dog and Cat override 'makeSound' to bark
Compile time polymorphism is achieved through function overloading and templates in C++.
Compile time polymorphism allows for different functions to be called based on the arguments provided at compile time.
Function overloading is a form of compile time polymorphism where multiple functions have the same name but different parameters.
Templates in C++ allow for generic programming and compile time polymorphism by creatin...
Overload + operator to add two complex numbers in C++.
Define a class for complex numbers with real and imaginary parts.
Overload the + operator as a member function of the class.
Return a new complex number with the sum of real and imaginary parts.
To delete a node from a linked list, update the pointers of the previous node to skip the node to be deleted.
Traverse the linked list to find the node to be deleted
Update the pointers of the previous node to skip the node to be deleted
Free the memory allocated to the node to be deleted
Reverse the order of strings in an array
Iterate through the array and swap the elements from start to end
Use two pointers, one at the beginning and one at the end, to swap elements
Example: Input array ['apple', 'banana', 'cherry'] becomes ['cherry', 'banana', 'apple'] after reversing
The design pattern used in my project is the Observer pattern.
Implemented to establish a one-to-many dependency between objects.
Allows multiple objects to listen and react to changes in a subject.
Promotes loose coupling between objects.
Example: Used to notify multiple UI components when a data model changes.
I applied via Company Website and was interviewed in Dec 2024. There were 5 interview rounds.
An aptitude test is an assessment to measure a candidate mental aptitude/mental ability
A group discussion is a structured conversation in which participants share their ideas, perspectives, and solutions on a specific topic.
Assignment details refer to the specifics of an assignment, including any documents and/or emails or subsequent correspondence between the company and the client.
I was interviewed in Dec 2024.
I chose Flask over Django and FastAPI due to its simplicity, flexibility, and ease of use for smaller projects.
Flask is lightweight and minimalistic, making it easier to set up and use for smaller projects.
Flask allows for more flexibility in terms of project structure and customization compared to Django.
Flask is well-suited for rapid prototyping and smaller applications where simplicity is key.
Django, on the other ha...
Flask request and response block code snippet
Use Flask's request object to access incoming request data
Use Flask's jsonify function to create a JSON response
Handle different HTTP methods like GET, POST, etc. in the route function
ORM stands for Object-Relational Mapping, a programming technique for converting data between incompatible type systems in object-oriented programming languages.
ORM is used to map objects from an application to tables in a relational database.
It simplifies data manipulation by allowing developers to work with objects instead of SQL queries.
Popular ORM tools include Hibernate for Java, Entity Framework for .NET, and Seq
Use ORM code to select item from a table in database.
Use ORM query methods like find(), findOne(), or where() to select items from a table.
Specify the table name and any conditions for the selection.
Example: User.find({ where: { id: 1 } }) will select a user with id 1 from the User table.
I applied via Naukri.com and was interviewed in Nov 2024. There was 1 interview round.
I applied via LinkedIn and was interviewed in Nov 2024. There was 1 interview round.
I was interviewed in Jul 2024.
It was easy, had average difficulty . Basic english and aptitude was asked
posted on 4 Dec 2024
It was an online assessment containing 3 DSA questions
I applied via Recruitment Consulltant and was interviewed in Nov 2024. There was 1 interview round.
Using sliding window technique to find subarray with sum equal to k.
Initialize two pointers at the start of the array.
Move the right pointer to expand the window until the sum is greater than or equal to k.
Move the left pointer to shrink the window if the sum exceeds k.
Repeat until the end of the array is reached.
Example: Input array [1, 4, 20, 3, 10, 5], k=33. Output: [20, 3, 10].
based on 2 reviews
Rating in categories
Consultant
55.3k
salaries
| ₹5.2 L/yr - ₹18 L/yr |
Associate Consultant
52k
salaries
| ₹2.9 L/yr - ₹11.7 L/yr |
Senior Consultant
46k
salaries
| ₹7.5 L/yr - ₹25 L/yr |
Senior Analyst
20.6k
salaries
| ₹2 L/yr - ₹9 L/yr |
Senior Software Engineer
19.9k
salaries
| ₹3.5 L/yr - ₹12.5 L/yr |
Wipro
Accenture
Cognizant
TCS