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
I applied via Referral and was interviewed in Dec 2024. There was 1 interview round.
I applied via Naukri.com and was interviewed in Oct 2024. There was 1 interview round.
A Java program to count the occurrences of the letter 'l' in the string 'Hello world'.
Create a Java program with a main method.
Initialize a String variable with the value 'Hello world'.
Use a loop to iterate through each character in the string and count the occurrences of the letter 'l'.
Print the count of 'l' at the end.
Reverse the characters of each word in a given string
Split the input string into an array of words
Reverse each word in the array
Join the reversed words back into a single string
Comparator is an interface used to sort objects, while Comparable is an interface used to compare objects for natural ordering.
Comparator is used to define custom sorting logic for objects, while Comparable is used for natural ordering based on the class's implementation of compareTo() method.
Comparator can be used to sort objects of different classes, while Comparable is implemented within the class itself.
Example: So...
Lambda expression is a concise way to represent an anonymous function in programming languages.
Lambda expressions are used to create small, inline functions without a formal definition.
They are commonly used in functional programming languages like Python, Java, and C#.
Lambda expressions can be used to simplify code and make it more readable.
Example: (x, y) -> x + y is a lambda expression that takes two parameters a
Constructor chaining is the process of calling one constructor from another constructor in a class.
Allows reusing code and avoiding duplication
Can be achieved using 'this' keyword in the constructor
Helps in initializing objects with different parameters
Handle notifications in mobile automation by using automation tools to interact with notifications, verify content, dismiss or respond to them.
Use automation tools like Appium or Espresso to interact with notifications
Verify the content of notifications by extracting text or images
Dismiss notifications to continue with test execution
Respond to notifications if required for test scenarios
Handle different types of notifi...
Use platform-specific locators or conditional statements to handle different element xpaths in iOS and Android apps.
Use platform-specific locators like accessibility id for iOS and resource id for Android
Implement conditional statements to switch between different xpaths based on the platform
Utilize Appium's platformName capability to identify the platform and adjust the element xpath accordingly
TestNG annotations include @Test, @BeforeMethod, @AfterMethod, @BeforeClass, @AfterClass, @BeforeSuite, @AfterSuite
@Test - denotes a test method
@BeforeMethod - runs before each test method
@AfterMethod - runs after each test method
@BeforeClass - runs before the first test method in the current class
@AfterClass - runs after the last test method in the current class
@BeforeSuite - runs before all tests in the suite
@AfterSu
pom.xml is a configuration file used in Maven projects to define project settings and dependencies.
pom.xml stands for Project Object Model XML
It is used in Maven projects to manage project configuration, build settings, and dependencies
Dependencies are mentioned inside the <dependencies> tag in pom.xml
Each dependency is specified with <groupId>, <artifactId>, and <version>
I applied via Naukri.com and was interviewed in Oct 2024. There were 3 interview rounds.
Regression testing is the process of retesting a software application to ensure that new code changes have not adversely affected existing functionality.
Performed after code changes to verify that existing features still work correctly
Helps prevent the introduction of new bugs or issues
Can be automated to save time and effort
Examples: running test cases after a software update, checking for bugs after adding new featur
List is mutable, tuple is immutable in Python.
List can be modified after creation, tuple cannot.
List uses square brackets [], tuple uses parentheses ().
List is used for collections of items that may change, tuple for fixed collections.
Example: list_example = [1, 2, 3], tuple_example = (4, 5, 6)
A program to check if a number is prime or not
Iterate from 2 to square root of the number and check if it divides the number evenly
If any number divides the given number, it is not prime
If no number divides the given number, it is prime
Program to find palindrome in an array of strings.
Iterate through each string in the array
Reverse each string and compare with original string
If they are equal, it is a palindrome
To find an element using CSS selector, you can use the document.querySelector() method.
Use document.querySelector() method with the CSS selector as the argument.
Make sure the CSS selector is unique to the element you want to find.
You can also use document.querySelectorAll() to find multiple elements.
Scenario based questions
Joins in SQL are used to combine rows from two or more tables based on a related column between them.
Joins are used to retrieve data from multiple tables based on a related column.
Types of joins include INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL JOIN.
Example: SELECT * FROM table1 INNER JOIN table2 ON table1.column = table2.column;
TestNG is a testing framework for Java that supports various testing levels and annotations.
TestNG allows for easy configuration of test suites, test cases, and test methods.
It supports parallel execution of tests, data-driven testing, and parameterization.
TestNG provides detailed test reports and allows for grouping of test methods.
Annotations like @Test, @BeforeSuite, @AfterSuite, etc., help in defining test methods
POM is a design pattern in automation testing where web pages are represented as classes, and the interactions are defined as methods.
POM helps in creating a clear separation between test scripts and page objects.
It improves test maintenance and readability.
Page classes contain locators and methods to interact with the elements on the page.
Test scripts call these methods to perform actions on the page.
Example: LoginPag...
As a QA lead, my day to day activities involve overseeing testing processes, coordinating with team members, creating test plans, and ensuring quality standards are met.
Coordinate with team members to assign testing tasks and ensure deadlines are met
Create and review test plans, test cases, and test scripts
Conduct regular meetings with the team to discuss progress and address any issues
Collaborate with developers and o...
I applied via Naukri.com
Webtables in Selenium can be handled using methods like findElements, getText, getAttribute, etc.
Use findElements method to locate the table and its rows
Iterate through rows and columns using loops
Use getText method to retrieve text from cells
Use getAttribute method to retrieve specific attributes like class, id, etc.
I applied via Approached by Company and was interviewed in Dec 2024. There was 1 interview round.
1 Interview rounds
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.8 L/yr |
Senior Consultant
46k
salaries
| ₹7.4 L/yr - ₹24 L/yr |
Senior Analyst
20.5k
salaries
| ₹2 L/yr - ₹7.5 L/yr |
Senior Software Engineer
19.9k
salaries
| ₹3.5 L/yr - ₹12.5 L/yr |
Wipro
Accenture
Cognizant
TCS