i
Capgemini
Filter interviews by
Prime numbers are natural numbers greater than 1 that have no divisors other than 1 and themselves.
A prime number is only divisible by 1 and itself. Example: 2, 3, 5.
The first prime number is 2, which is also the only even prime number.
All other even numbers greater than 2 are not prime because they can be divided by 2.
The prime numbers between 1 and 100 are: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47,...
Method overriding allows a subclass to provide a specific implementation of a method already defined in its superclass, while overloading allows multiple methods with the same name but different parameters.
Method Overriding: Redefining a method in a subclass. Example: class Animal { void sound() { } } class Dog extends Animal { void sound() { } }
Method Overloading: Same method name with different parameters in the...
Polymorphism in C++ allows methods to do different things based on the object that it is acting upon, enhancing flexibility and reusability.
Polymorphism is a core concept in OOP, enabling methods to be overridden in derived classes.
There are two types: compile-time (static) and run-time (dynamic) polymorphism.
Compile-time polymorphism is achieved through function overloading and operator overloading.
Run-time polym...
Operation overloading allows custom behavior for operators in user-defined classes, enhancing code readability and usability.
Overloading the '+' operator to add two complex numbers: class Complex { int real, imag; Complex operator+(const Complex &c) { return Complex(real + c.real, imag + c.imag); } };
Overloading the '<<' operator for outputting a custom class: class Point { int x, y; ...
What people are saying about Capgemini
A factorial program calculates the product of all positive integers up to a given number, denoted as n!.
Factorial of a non-negative integer n is the product of all positive integers less than or equal to n.
Mathematically, n! = n × (n-1) × (n-2) × ... × 1.
Example: 5! = 5 × 4 × 3 × 2 × 1 = 120.
Factorial of 0 is defined as 1 (0! = 1).
Factorials grow very quickly; for instance, 10! = 3,628,800.
Generate a sequence of numbers or characters based on a given pattern.
Use a loop to generate the sequence based on the pattern provided.
Consider using if-else statements for different cases in the pattern.
Store the generated sequence in an array of strings.
Code for data statistics involves analyzing and summarizing data to extract meaningful insights.
Use built-in functions in programming languages like Python, R, or SQL to calculate statistics such as mean, median, mode, standard deviation, etc.
Consider using libraries like NumPy, Pandas, or SciPy for more advanced statistical analysis.
Visualize data using tools like Matplotlib, Seaborn, or Tableau to better underst...
The login page is displayed when a user clicks on a webpage icon like Facebook by redirecting to a separate login page.
Clicking on the webpage icon triggers a redirect to the login page
The login page prompts the user to enter their credentials
After successful login, the user is redirected back to the original webpage
An object is a self-contained entity that consists of data and methods to manipulate that data.
Objects are instances of classes in object-oriented programming.
They have attributes (data) and methods (functions) to operate on the data.
Objects can interact with each other through method calls.
Example: In a car simulation program, a 'Car' object may have attributes like 'color' and 'speed', and methods like 'accelera...
A class is a blueprint for creating objects in object-oriented programming.
Defines the properties and behaviors of objects
Can be used to create multiple instances of objects
Encapsulates data and methods within a single unit
It included all aptitude
Contains all pseudo questions related to DSA
A class is a blueprint for creating objects in object-oriented programming.
Defines the properties and behaviors of objects
Can be used to create multiple instances of objects
Encapsulates data and methods within a single unit
An object is a self-contained entity that consists of data and methods to manipulate that data.
Objects are instances of classes in object-oriented programming.
They have attributes (data) and methods (functions) to operate on the data.
Objects can interact with each other through method calls.
Example: In a car simulation program, a 'Car' object may have attributes like 'color' and 'speed', and methods like 'accelerate' a...
The login page is displayed when a user clicks on a webpage icon like Facebook by redirecting to a separate login page.
Clicking on the webpage icon triggers a redirect to the login page
The login page prompts the user to enter their credentials
After successful login, the user is redirected back to the original webpage
Polymorphism allows methods to do different things based on the object type, while method overriding enables subclass methods to replace superclass methods.
Polymorphism is a core concept in OOP that allows objects to be treated as instances of their parent class.
Method overriding occurs when a subclass provides a specific implementation of a method already defined in its superclass.
Example of polymorphism: A function t...
Object-oriented programming in Java involves creating classes, objects, inheritance, polymorphism, and encapsulation.
Classes are blueprints for objects, defining attributes and behaviors.
Objects are instances of classes, representing real-world entities.
Inheritance allows a class to inherit attributes and methods from another class.
Polymorphism enables objects to be treated as instances of their parent class.
Encapsulat...
I applied via Naukri.com and was interviewed in Dec 2024. There were 3 interview rounds.
I applied via Company Website and was interviewed in Sep 2024. There were 2 interview rounds.
N0rmal hacker rank queationss
Servlet implement code is the code that defines the behavior of a servlet in a Java web application.
Servlet implement code is written in Java and typically extends the HttpServlet class.
It includes methods like doGet() and doPost() to handle HTTP GET and POST requests.
Servlet implement code can interact with databases, process form data, and generate dynamic web content.
JWT implementation methods involve encoding, decoding, and verifying tokens for secure authentication.
Use a library like jsonwebtoken to easily create and verify JWT tokens
When creating a token, include a payload with user information and a secret key for signing
To verify a token, decode it using the secret key and check the signature
Object-oriented programming concepts that focus on classes and objects.
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.
Abstraction: Hiding the complex implementation details and showing only the necessary features.
...
RDBMS stands for Relational Database Management System. It is a type of database management system that stores data in a structured format.
Organizes data into tables with rows and columns
Uses SQL for querying and managing data
Enforces relationships between tables using foreign keys
Examples include MySQL, PostgreSQL, Oracle
Microservices are a software development technique where applications are broken down into smaller, independent services that communicate with each other.
Each microservice is responsible for a specific function or feature
Microservices can be developed, deployed, and scaled independently
Communication between microservices is typically done through APIs
Examples: Netflix, Amazon, Uber
I applied via Campus Placement and was interviewed in Nov 2024. There were 2 interview rounds.
It was pretty easy and quick
I applied via Naukri.com and was interviewed in Nov 2024. There were 2 interview rounds.
I applied via Naukri.com
To find the first non duplicate character in a string?
I appeared for an interview in Jun 2025, where I was asked the following questions.
Prime numbers are natural numbers greater than 1 that have no divisors other than 1 and themselves.
A prime number is only divisible by 1 and itself. Example: 2, 3, 5.
The first prime number is 2, which is also the only even prime number.
All other even numbers greater than 2 are not prime because they can be divided by 2.
The prime numbers between 1 and 100 are: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, ...
Palindromes are words, phrases, or sequences that read the same backward as forward, showcasing symmetry in language.
Words: 'level', 'radar', 'civic', 'deified'
Phrases: 'A man, a plan, a canal, Panama!'
Numbers: 121, 12321
Dates: 02/02/2020
I applied via Naukri.com and was interviewed in Aug 2024. There was 1 interview round.
Oops concepts refer to Object-Oriented Programming principles like Inheritance, Encapsulation, Polymorphism, and Abstraction.
Inheritance allows a class to inherit properties and behavior from another class.
Encapsulation involves bundling data and methods that operate on the data into a single unit.
Polymorphism allows objects to be treated as instances of their parent class.
Abstraction hides the complex implementation d...
Java Stream API simplifies data processing with functional-style operations on collections.
Streams can be created from collections, arrays, or I/O channels. Example: List<String> names = Arrays.asList('Alice', 'Bob'); Stream<String> stream = names.stream();
Common operations include filter, map, and reduce. Example: List<Integer> lengths = names.stream().map(String::length).collect(Collectors.toList())...
Java OOPs concepts refer to the principles of Object-Oriented Programming and their implementation in Java.
Java OOPs concepts include inheritance, encapsulation, polymorphism, and abstraction.
Inheritance allows a class to inherit properties and behavior from another class.
Encapsulation involves bundling data and methods that operate on the data into a single unit.
Polymorphism allows objects to be treated as instances o...
Some of the top questions asked at the Capgemini Software Developer interview -
The duration of Capgemini Software Developer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 149 interview experiences
Difficulty level
Duration
based on 440 reviews
Rating in categories
Noida,
Chennai
+12-7 Yrs
₹ 1.5-40 LPA
Consultant
58.8k
salaries
| ₹8.9 L/yr - ₹16.5 L/yr |
Associate Consultant
51.2k
salaries
| ₹4.5 L/yr - ₹10 L/yr |
Senior Consultant
50.2k
salaries
| ₹12.5 L/yr - ₹21 L/yr |
Senior Analyst
22.3k
salaries
| ₹3.1 L/yr - ₹7.6 L/yr |
Senior Software Engineer
21.6k
salaries
| ₹4.7 L/yr - ₹13 L/yr |
Wipro
Accenture
Cognizant
TCS