i
Capgemini
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
To reverse an integer, convert it to a string, reverse the string, and convert it back to an integer.
Convert the integer to a string
Reverse the string
Convert the reversed string back to an integer
Scenario is a single test case while scenario outline is a template for multiple test cases with different inputs
Scenario is a single test case with specific inputs and expected outcomes
Scenario outline is a template for multiple test cases with placeholders for different inputs
Scenario outline uses Examples keyword to provide different sets of inputs for each test case
Xpath is used to locate elements in XML/HTML documents. For dynamic elements, use functions like contains, starts-with, or position.
Use contains() function to locate elements with partial attribute values
Use starts-with() function to locate elements with attribute values starting with a specific string
Use position() function to locate elements based on their position in the document
Passing authorization dynamically involves generating and sending tokens or credentials at runtime.
Use token-based authentication to generate and pass tokens dynamically
Implement OAuth for secure authorization handling
Utilize JWT (JSON Web Tokens) for passing authorization dynamically
Java program to remove repeating characters in a string
Create a new string to store the result
Iterate through each character in the input string
Check if the character is already present in the result string before adding it
Return the final result string
What people are saying about Capgemini
I applied via Naukri.com and was interviewed before May 2023. There was 1 interview round.
An array is a data structure that stores a collection of elements of the same type in a contiguous block of memory.
Arrays have a fixed size determined at the time of declaration.
Elements in an array are accessed using an index starting from 0.
Example: ['apple', 'banana', 'orange']
Capgemini interview questions for designations
posted on 13 Jan 2025
Abstract class is a class that can have both abstract and non-abstract methods, while interface is a contract that defines methods that a class must implement.
Abstract class can have constructors, fields, and methods, while interface can only have abstract methods.
A class can implement multiple interfaces but can only inherit from one abstract class.
Abstract classes are used when some common functionality needs to be s...
Find the 2nd largest number in an array of strings.
Convert the strings to numbers before comparing.
Sort the array in descending order and return the second element.
Handle edge cases like empty array or array with only one element.
List is a collection of elements with duplicates allowed, while set is a collection of unique elements. Linked list is a data structure where each element points to the next element.
List allows duplicates, set does not
Linked list has elements connected by pointers
List can be implemented using arrays or linked lists
Set is implemented using hash tables or trees
I applied via Naukri.com and was interviewed in Jun 2024. There was 1 interview round.
I applied via Job Portal and was interviewed in Jan 2024. There was 1 interview round.
To troubleshoot a mobile application crash, I would start by checking the crash logs, analyzing the code, testing on different devices, and updating the app.
Check the crash logs to identify the error or exception that caused the crash
Analyze the code related to the crash to find any bugs or issues
Test the application on different devices to see if the crash is device-specific
Update the app to the latest version or appl...
2 coding ques in 1 hr
The 'this' keyword in Java refers to the current instance of the class.
Used to refer to instance variables or methods of the current object
Can be used to differentiate between instance variables and local variables with the same name
Can be passed as an argument to other methods
final is a keyword used in Java to declare constants, while finally is a block of code used in exception handling to ensure a piece of code is always executed.
final is used to declare constants in Java, its value cannot be changed once assigned
finally is a block of code used in exception handling to ensure a piece of code is always executed, regardless of whether an exception is thrown or not
Example: final int MAX_VALU...
Basic principles of OOP include encapsulation, inheritance, and polymorphism.
Encapsulation: Bundling data and methods that operate on the data into a single unit (class).
Inheritance: Ability of a class to inherit properties and behavior from another class.
Polymorphism: Ability to present the same interface for different data types.
Example: A 'Car' class may have properties like 'color' and 'model', and methods like 'st
Coding a function to check if a number is a palindrome
Create a function that takes in a number as input
Convert the number to a string to easily check for palindrome
Reverse the string and compare it with the original string to check for palindrome
Return true if the number is a palindrome, false otherwise
To find the xpath of a site, inspect the element in the browser and use developer tools.
Inspect the element on the website using browser developer tools
Right click on the element and select 'Inspect' to view the HTML code
Locate the element in the HTML code and right click to copy the xpath
Use the copied xpath in your automation scripts for testing
1 Interview rounds
based on 2 reviews
Rating in categories
Consultant
55.2k
salaries
| ₹5.2 L/yr - ₹18 L/yr |
Associate Consultant
52k
salaries
| ₹2.9 L/yr - ₹11.8 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.1 L/yr |
Wipro
Accenture
Cognizant
TCS