RedBus
10+ Capgemini Interview Questions and Answers
Q1. Java: oops concepts in java? how do you initialise private elements of a class? Ways to define strings in java? exceptions in java? difference between exception and error? checked and unchecked exception? API t...
read moreQuestions on Java, API testing, Selenium, and SQL
Java: OOPs concepts, initializing private elements, defining strings, exceptions, difference between exception and error, checked and unchecked exceptions
API testing: Testing POST query, drawbacks, response codes
Selenium: Assert vs verify, drawbacks, implicit and dynamic wait, types of testing supported, types of x-path
SQL: Select query
Q2. How can you print the output when 1 is added to a given input number?
You can print the output by adding 1 to the given input number and displaying the result.
Create a variable to store the input number.
Add 1 to the input number.
Print the result of the addition.
Q3. Print right view of a tree.
Print the rightmost nodes of a binary tree.
Traverse the tree in a depth-first manner, starting from the right child of each node.
Use a queue to keep track of the nodes to be visited.
Add the rightmost node of each level to the result array.
Q4. experience share, create a form with validation
Creating a form with validation experience share
Use HTML form elements like input, select, textarea
Implement client-side validation using JavaScript
Implement server-side validation using backend technologies like Node.js or PHP
Q5. Linked list sum in reverse order (Leetcode #2. Add two numbers)
Add two numbers represented by linked lists in reverse order.
Traverse both linked lists simultaneously, adding corresponding nodes and carrying over the sum if necessary.
Handle cases where one linked list is longer than the other.
Create a dummy head node to simplify the code.
Consider edge cases like carry over at the end of the addition.
Q6. program: String reverse? count no. of words in given string? swap two np. without temp variable?
Answering programming questions related to string manipulation.
To reverse a string, use a loop to iterate through the string and append each character to a new string in reverse order.
To count the number of words in a string, split the string into an array using whitespace as the delimiter and return the length of the array.
To swap two numbers without a temp variable, use arithmetic operations to perform the swap. For example, a = a + b; b = a - b; a = a - b;
Q7. Share instances when your content helped organic traffic growth ? Talk about how you optimised keywords on webpages and helped improve rankings
My content helped organic traffic growth by optimizing keywords and improving rankings.
Researched and identified relevant keywords for each webpage
Optimized meta tags, headings, and content with targeted keywords
Created high-quality content that provided value to readers
Built backlinks from reputable sources to improve domain authority
Monitored and analyzed website traffic and rankings to make data-driven decisions
As a result, organic traffic increased by 30% within 3 months
I...read more
Q8. Garbage Collector in c#
Garbage Collector in C# manages memory allocation and deallocation automatically.
Garbage Collector is responsible for freeing up memory that is no longer in use.
It runs in the background and periodically checks for unused objects.
GC.SuppressFinalize() method can be used to prevent the finalizer from running.
GC.Collect() method can be used to force garbage collection.
GC.GetTotalMemory() method can be used to get the total memory used by the application.
Q9. If Payment SR dropped from 78% to 72% how will you do RCA and correct it
I would conduct a Root Cause Analysis (RCA) to identify the reasons for the drop in Payment SR and implement corrective actions.
Review data trends and patterns to identify any anomalies or correlations
Interview stakeholders involved in the payment process to gather insights
Evaluate system performance and potential technical issues
Analyze customer feedback and complaints related to payments
Implement corrective actions such as process improvements, training, or system upgrades
Q10. Coding- Address= "abcd 555 house no 22 bly 2223" return pincode from this string
Extract pincode from a given address string.
Split the address string by spaces to get individual words
Check each word to see if it is a valid pincode (numeric and 6 digits)
Return the first valid pincode found
Q11. Program of pyramid of numbers, Mysql queries
Program to generate pyramid of numbers and MySQL queries
For pyramid of numbers, use nested loops to print numbers in a pyramid shape
For MySQL queries, use SELECT, INSERT, UPDATE, DELETE statements to manipulate data
Use JOINs to combine data from multiple tables
Use WHERE clause to filter data based on specific conditions
Q12. How do you repurpose content ?
Repurpose content by adapting it to different formats and platforms.
Identify the most successful content and repurpose it for different audiences.
Transform blog posts into videos, infographics, or podcasts.
Create social media posts from statistics or quotes in existing content.
Update old content with new information or a fresh perspective.
Compile related content into an e-book or whitepaper.
Translate content into different languages for a global audience.
Q13. Explain OOPS concept .
OOPS (Object-Oriented Programming) is a programming paradigm based on the concept of objects, which can contain data and code.
OOPS focuses on creating objects that interact with each other to solve problems.
It involves concepts like classes, objects, inheritance, polymorphism, and encapsulation.
Classes are blueprints for creating objects, while objects are instances of classes.
Inheritance allows a class to inherit properties and behavior from another class.
Polymorphism allows...read more
Top HR Questions asked in Capgemini
Interview Process at Capgemini
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month