
Capgemini


300+ Capgemini Interview Questions and Answers for Freshers
Q1. In a dark room,there is a box of 18 white and 5 black gloves. You are allowed to pick one and then you are allowed to keep it and check it outside. How many turns do you need to take in order for you to find a...
read moreYou need to take 36 turns to find a perfect pair.
You need to pick 19 gloves to ensure a perfect pair.
The worst case scenario is picking 18 white gloves and then the 19th glove is black.
In that case, you need to pick 17 more gloves to find a black one and complete the pair.
Q2. How can you cut a rectangular cake in 8 symmetric pieces in three cuts?
Cut the cake in half horizontally, then vertically, and finally cut each half diagonally.
Cut the cake horizontally through the middle.
Cut the cake vertically through the middle.
Cut each half diagonally from corner to corner.
Ensure each cut is made symmetrically to get 8 equal pieces.
Example: https://www.youtube.com/watch?v=ZdGmuCJzQFo
Q3. 3. Do you know about OOP concepts? Explain.
Yes
OOP stands for Object-Oriented Programming
It is a programming paradigm that organizes code into objects
OOP concepts include encapsulation, inheritance, and polymorphism
Encapsulation allows bundling of data and methods into a single unit
Inheritance enables the creation of new classes based on existing ones
Polymorphism allows objects of different classes to be treated as the same type
Example: A car class can have properties like color and speed, and methods like start and st...read more
Q4. One question of sorting for a list of people belonging to different cities and states.
Sort a list of people by their cities and states.
Use a sorting algorithm like quicksort or mergesort.
Create a custom comparator function that compares the city and state of each person.
If two people belong to the same city and state, sort them by their names.
Example: [{name: 'John', city: 'New York', state: 'NY'}, {name: 'Jane', city: 'Boston', state: 'MA'}]
Example output: [{name: 'Jane', city: 'Boston', state: 'MA'}, {name: 'John', city: 'New York', state: 'NY'}]
Q5. What are seven layers of networking?
The seven layers of networking refer to the OSI model which defines how data is transmitted over a network.
The seven layers are: Physical, Data Link, Network, Transport, Session, Presentation, and Application.
Each layer has a specific function and communicates with the layers above and below it.
For example, the Physical layer deals with the physical transmission of data, while the Application layer deals with user interfaces and applications.
Understanding the OSI model is imp...read more
Q6. What are the fields in EXTC that are related to IT ?
Fields in EXTC related to IT
Digital Signal Processing
Microprocessors and Microcontrollers
Computer Networks
Data Communication
Wireless Communication
Mobile Communication
Internet of Things
Cloud Computing
Artificial Intelligence
Machine Learning
Q7. Output of the following code: integer a, b, c; set a = 11, b = 12, c = 10; if (b > 0) b++ else a++ end if for (each b from 0 to 5) a = a + 1 end for print (a + c)
The code sets values for three integers and performs conditional and loop operations to print the sum of two integers.
The value of 'a' is set to 11, 'b' to 12, and 'c' to 10.
The 'if' condition checks if 'b' is greater than 0 and increments 'b' if true, else increments 'a'.
The 'for' loop runs for each value of 'b' from 0 to 5 and increments 'a' by 1.
The final output is the sum of 'a' and 'c', which is 18.
Q8. Maximum Difference Problem Statement
Given an array ARR
of N
elements, your task is to determine the maximum difference between any two elements in ARR
.
If the maximum difference is even, print EVEN
. If the max...read more
Find the maximum difference between any two elements in an array and determine if it is even or odd.
Iterate through the array to find the maximum and minimum elements.
Calculate the difference between the maximum and minimum elements.
Check if the difference is even or odd and return the result.
Q9. What's the difference between final and finally keywords in java?
final keyword is used to declare a constant value while finally is used to define a block of code that will be executed after a try-catch block.
final keyword is used to declare a variable whose value cannot be changed
finally keyword is used to define a block of code that will be executed after a try-catch block
final can be used with classes, methods, and variables
finally is always used with try-catch block
Example: final int x = 10; try { //some code } catch(Exception e) { //s...read more
Q10. What is object-oriented language and give real-time examples?
Object-oriented language is a programming paradigm that uses objects to represent data and methods.
Objects contain data and methods that operate on that data.
Encapsulation, inheritance, and polymorphism are key concepts in object-oriented programming.
Examples of object-oriented languages include Java, C++, and Python.
Q11. Missing Number Problem Statement
You are provided with an array named BINARYNUMS
consisting of N
unique strings. Each string represents an integer in binary, covering every integer from 0 to N except for one. Y...read more
Identify the missing integer in an array of binary strings and return its binary representation without leading zeros.
Iterate through the binary strings to convert them to integers and find the missing number using the formula for sum of integers from 0 to N.
Calculate the sum of all integers from 0 to N using the formula (N*(N+1))/2 and subtract the sum of the integers in the array to find the missing number.
Convert the missing integer to binary representation and return it a...read more
Q12. How long it will take for you to pick up a new programming language or technology?
I am a quick learner and can pick up a new programming language or technology within a few weeks.
I have a strong foundation in programming concepts and principles.
I am familiar with multiple programming languages and can draw parallels to learn new ones.
I am proactive in seeking out resources and practice opportunities.
For example, I recently learned Python in about 3 weeks by taking an online course and practicing on my own.
I am confident in my ability to quickly adapt to ne...read more
Q13. Output of the pseudocode:- #include void main() { int a = 100; printf("%0 %x", a); }
The pseudocode will result in a compilation error due to incorrect printf format specifier.
The printf function has two format specifiers but only one argument is provided.
The first format specifier '%0' is incorrect and will result in a compilation error.
The correct format specifier for printing an integer in hexadecimal format is '%x'.
Q14. What is the importance of C language and its real time applications?
C language is important for its efficiency and low-level programming capabilities, with real-time applications in embedded systems and operating systems.
C is a low-level language that allows for direct memory manipulation and efficient code execution.
Real-time applications include embedded systems like microcontrollers and operating systems like Unix.
C is also used in game development, system programming, and scientific computing.
C's popularity has led to the creation of many...read more
Q15. Deductive Logical Thinking - 6 minutes-Finding the missing symbol/ visual in a grid based on a rule-based logic
Finding missing symbol/visual in a grid based on rule-based logic in 6 minutes.
Analyze the given symbols and their placement in the grid
Identify the pattern or rule that governs the placement of symbols
Apply the rule to the empty space to find the missing symbol
Time management is crucial
Practice with similar puzzles to improve deductive logical thinking skills
Q16. What is a constructor?
A constructor is a special method that is used to initialize objects in a class.
Constructors have the same name as the class they are in.
They are called automatically when an object is created.
They can take parameters to set initial values for object properties.
Example: public class Car { public Car(String make, String model) { this.make = make; this.model = model; } }
Example: Car myCar = new Car("Toyota", "Corolla");
Q17. Why do you prefer Java over other languages?(
Java is a versatile language with a vast community and excellent libraries.
Java is platform-independent, making it easy to write code that can run on any device.
It has a vast community of developers who contribute to its libraries and frameworks.
Java is highly secure and provides excellent support for multithreading.
It is an object-oriented language, making it easy to write modular and reusable code.
Java is widely used in enterprise applications, such as banking and e-commerc...read more
Q18. Explain the Microservices architecture of your project? How services internally communicates? How to manage transactions and failure scenario in distributed Microservices system? List some spring boot Microserv...
read moreExplaining Microservices architecture, communication, transactions, annotations, authentication, and API validation.
Our project follows a Microservices architecture where each service is independently deployable and scalable.
Services communicate with each other using RESTful APIs and message brokers like Kafka.
We use distributed transactions and compensating transactions to manage transactions and handle failure scenarios.
Some of the Spring Boot Microservices annotations we u...read more
Q19. find whether the number is divisible by both 5 and 7.
To check if a number is divisible by both 5 and 7, we need to check if it is divisible by 35.
Divide the number by 35 and check if the remainder is 0.
Alternatively, check if the number is divisible by 5 and 7 separately.
Example: 245 is divisible by both 5 and 7 as it is divisible by 35 (245/35 = 7 with remainder 0).
Q20. why react is faster, default parameters, can you call async function in useEffect
React is faster due to virtual DOM, default parameters provide fallback values, async functions can be called in useEffect
React is faster than traditional DOM manipulation because it uses a virtual DOM to minimize actual DOM updates
Default parameters in JavaScript allow you to specify default values for function parameters if no value is provided
Async functions can be called in useEffect hook in React to perform asynchronous operations within a functional component
Q21. had to take n input and check whether it is prime and composite or not.
To check if a number is prime or composite, take n input and perform the necessary checks.
A prime number is only divisible by 1 and itself
A composite number has more than 2 factors
Check if n is divisible by any number between 2 and n-1
If n is divisible by any number between 2 and n-1, it is composite
If n is not divisible by any number between 2 and n-1, it is prime
Q22. To check if the sum of the digits of a number is palindrome or not
To check if the sum of the digits of a number is palindrome or not
Extract the digits of the number using modulo operator and add them
Convert the sum to a string and check if it is a palindrome
If it is a palindrome, then the sum of digits is also a palindrome
Example: For number 12345, sum of digits = 15, which is not a palindrome
Example: For number 12321, sum of digits = 9, which is a palindrome
Q23. What are the types of constructors?
There are two types of constructors in Java: Default and Parameterized.
Default constructor is provided by the compiler if no constructor is defined.
Parameterized constructor takes arguments and initializes the object's state.
Example: public class Person { public Person() {} public Person(String name, int age) { this.name = name; this.age = age; } }
Q24. How would you rate your programming skills?
I would rate my programming skills as advanced.
I have experience in multiple programming languages such as Java, Python, and C++.
I have completed several complex projects that required advanced programming skills.
I am constantly learning and improving my skills through online courses and personal projects.
I am comfortable working with databases and have experience in data analysis and visualization.
Q25. What is sub flow in mule?
Sub flow in Mule is a reusable flow that can be called from other flows.
Sub flow is a separate flow that can be called from other flows
It helps in reusing the same logic in multiple flows
Sub flow can have its own set of input and output parameters
It can be used to encapsulate complex logic and make the main flow more readable
Example: A sub flow for database connection that can be called from multiple flows
Q26. What are the Design patterns have you used?
I have used design patterns such as Singleton, Factory, and Observer in my projects.
Singleton pattern ensures a class has only one instance and provides a global point of access to it.
Factory pattern creates objects without specifying the exact class of object that will be created.
Observer pattern defines a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.
Q27. Explain the working of Ultrasonic sensor.( in my project)
Ultrasonic sensor emits high frequency sound waves and detects the reflected waves to measure distance.
Ultrasonic sensor emits sound waves above the range of human hearing
The sound waves travel through the air and bounce off an object
The sensor then detects the reflected waves and calculates the distance based on the time taken
Commonly used in robotics, automotive parking sensors, and distance measurement applications
Q28. Find whether the given number is perfect number or not
A perfect number is a positive integer that is equal to the sum of its proper divisors.
Find all the divisors of the given number
Add all the divisors except the number itself
If the sum is equal to the given number, it is a perfect number
Q29. What is polymorphism and real time examples?
Polymorphism is the ability of an object to take on many forms. It allows objects of different classes to be treated as if they were the same type.
Polymorphism allows for code reusability and flexibility
Examples include method overloading and overriding, interfaces, and inheritance
A shape class can have multiple subclasses such as circle, square, and triangle, each with their own unique implementation of the draw method
Q30. SDLC Grant VS Revoke Alpha testing VS Beta Testing DDL VS DML
Answering questions related to SDLC, Grant VS Revoke, Alpha testing VS Beta Testing, DDL VS DML.
SDLC stands for Software Development Life Cycle and includes phases like planning, designing, testing, and maintenance.
Grant and revoke are SQL commands used to grant or revoke privileges to users.
Alpha testing is done by the developers before releasing the software to the public, while beta testing is done by the end-users.
DDL stands for Data Definition Language and is used to def...read more
Q31. What is a singleton class?
A singleton class is a class that can only be instantiated once in a program.
It has a private constructor to prevent multiple instances.
It provides a global point of access to the instance.
It is often used for managing resources or configuration settings.
Example: java.lang.Runtime, which provides access to the runtime environment.
Example: Database connection pool manager.
Q32. How do you write custom exception?
Custom exceptions can be written by creating a new class that extends the Exception class.
Create a new class that extends the Exception class
Add a constructor to the custom exception class
Throw the custom exception using 'throw new CustomException(message)'
Q33. What is the use of scanf() and printf()?
scanf() and printf() are functions used for input and output operations in C programming language.
scanf() is used to read input from the user and store it in variables.
printf() is used to display output on the screen.
Both functions are part of the standard input/output library in C.
They are commonly used in programs for user interaction and displaying results.
Q34. What is destructive and construction?
Destructive refers to something that causes damage or destruction, while construction refers to building or creating something.
Destructive actions can include things like vandalism, arson, or warfare.
Construction can involve building structures like buildings, bridges, or roads.
Both destructive and construction can be used in a variety of contexts, from physical actions to abstract concepts like language or ideas.
In some cases, destruction can be necessary for construction to...read more
Q35. Difference between throw , throws and throwable ?
throw is a keyword used to throw an exception, throws is used in method signature to declare exceptions thrown, and Throwable is a superclass for all exceptions and errors.
throw is used to throw an exception in a try-catch block
throws is used in method signature to declare exceptions that the method can throw
Throwable is a superclass for all exceptions and errors in Java
Q36. Explain the different types of loops?
Loops are used to execute a set of statements repeatedly until a certain condition is met.
There are three types of loops: for loop, while loop, and do-while loop.
For loop is used when the number of iterations is known beforehand.
While loop is used when the number of iterations is not known beforehand.
Do-while loop is similar to while loop, but it executes the statements at least once before checking the condition.
Example: for(int i=0; i<10; i++) { //statements }
Example: while...read more
Q37. Find perfect numbers within the given range
Perfect numbers within a given range
A perfect number is a positive integer that is equal to the sum of its proper divisors
The first few perfect numbers are 6, 28, 496, and 8128
To find perfect numbers within a given range, iterate through the range and check if each number is perfect
Q38. What is Database? Why they are used?
A database is a collection of data that is organized in a way that allows for efficient retrieval and manipulation.
Databases are used to store and manage large amounts of data.
They allow for easy retrieval and manipulation of data.
Examples of databases include MySQL, Oracle, and MongoDB.
Databases are used in various industries such as finance, healthcare, and e-commerce.
Q39. what is loop? what is inheritance?
A loop is a programming construct that repeats a set of instructions until a specific condition is met. Inheritance is a mechanism in object-oriented programming where a new class inherits properties and behaviors from an existing class.
A loop allows a set of instructions to be executed repeatedly based on a condition. Examples include for loops, while loops, and do-while loops.
Inheritance allows a new class (subclass) to inherit properties and behaviors from an existing clas...read more
Q40. What is cursor and explain wd eg
A cursor is a database object used to retrieve data from a result set one row at a time.
Cursor is used in SQL to fetch and manipulate data row by row
Examples of cursor include FETCH, OPEN, CLOSE, and DECLARE
Cursor is often used in stored procedures and triggers
Q41. What is built-in functions in c What is Artificial Intelligence What is cloud computing
Built-in functions in C are pre-defined functions provided by the C standard library.
Built-in functions are ready-to-use functions that can be called in a C program without the need for their implementation.
Examples of built-in functions include printf(), scanf(), strlen(), and malloc().
These functions are included in the standard library header files such as stdio.h, string.h, and stdlib.h.
Built-in functions can save time and effort in programming by providing commonly used ...read more
Q42. Create a query for extracting information from students data
Query for extracting information from student data
Select specific columns such as name, age, gender, and grade level
Filter data based on criteria such as GPA or attendance
Join tables to gather additional information such as courses taken or extracurricular activities
Aggregate data to find averages or counts of certain attributes
Q43. difference between DBMS and RDBMS?
DBMS is a software system to manage databases while RDBMS is a type of DBMS that uses a relational model.
DBMS stands for Database Management System while RDBMS stands for Relational Database Management System.
DBMS can manage any type of database while RDBMS manages only relational databases.
DBMS does not enforce any specific data model while RDBMS enforces a relational data model.
DBMS is simpler and less expensive than RDBMS.
Examples of DBMS include MySQL, Oracle, and Microso...read more
Q44. What about further studies?
I am considering further studies to enhance my skills and knowledge.
I am interested in pursuing a master's degree in my field.
I am also exploring certification programs to gain expertise in specific areas.
Attending workshops and conferences is another way I plan to continue learning.
I am open to any opportunities that will help me grow professionally.
Q45. What is the OOPS concept?
OOPS stands for Object-Oriented Programming System. It is a programming paradigm based on the concept of objects.
OOPS is based on four main concepts: Encapsulation, Inheritance, Polymorphism, and Abstraction.
Encapsulation is the process of hiding the implementation details of an object from the outside world.
Inheritance allows a class to inherit properties and methods from another class.
Polymorphism allows objects of different classes to be treated as if they were of the same...read more
Q46. What is your favourite programming language
My favorite programming language is Python.
Python is easy to learn and has a simple syntax.
It has a vast library of modules and frameworks for various purposes.
Python is versatile and can be used for web development, data analysis, machine learning, and more.
Q47. What is oracle database structure?
Oracle database structure refers to the organization of data in tables, indexes, views, and other database objects.
Consists of tables, which store data in rows and columns
Includes indexes for faster data retrieval
Views provide virtual representations of data from one or more tables
Constraints ensure data integrity and enforce rules
Stored procedures and functions for processing data
Q48. Introduction, what is difference between C++ and Java
C++ is a compiled language with more control over hardware, while Java is an interpreted language with better portability.
C++ is faster and more efficient than Java due to its ability to directly access hardware.
Java is more portable and platform-independent than C++ due to its bytecode and virtual machine.
C++ allows for manual memory management, while Java has automatic garbage collection.
C++ supports multiple inheritance, while Java only supports single inheritance and inte...read more
Q49. Find subsets from a given string
The question asks to find all possible subsets from a given string.
Start with an empty string and add each character to it one by one to create all possible subsets.
Use recursion to generate all possible combinations of characters.
Exclude duplicates by using a set data structure.
Consider edge cases such as empty string and strings with repeating characters.
Q50. What is a choice router?
A choice router is a device or software that directs incoming data packets to the appropriate destination based on predefined rules or user preferences.
A choice router is used in computer networks to manage and control the flow of data.
It examines the header information of incoming packets to determine the best path for forwarding the data.
Choice routers can be hardware devices or software programs.
They can be configured to prioritize certain types of traffic or apply specifi...read more
Q51. What is difference between list and tuple
List is mutable and tuple is immutable in Python.
List is defined using square brackets [] while tuple is defined using parentheses ().
Elements in a list can be changed, added, or removed after creation, while elements in a tuple cannot be changed.
Lists are typically used for collections of similar items, while tuples are used for fixed collections of items.
Example: list_example = [1, 2, 3] and tuple_example = (4, 5, 6)
Q52. Tell me the Architecture of a Flipflop.
A flip-flop is a digital circuit that can store one bit of information. It has two stable states and is used for memory storage and data transfer.
Flip-flops are made up of logic gates, such as NAND or NOR gates.
They have two stable states: SET and RESET.
The SET state is when the output is high and the RESET state is when the output is low.
Flip-flops can be edge-triggered or level-triggered.
Examples of flip-flops include D flip-flops, JK flip-flops, and T flip-flops.
Q53. What is Iteration?
Iteration is the process of repeating a set of instructions or steps multiple times.
Iteration is used to perform repetitive tasks or calculations.
It allows for the efficient execution of a block of code multiple times.
Examples of iteration include loops like for, while, and do-while.
Iterative algorithms are commonly used in programming and data analysis.
Iteration can be used to iterate over elements in a collection or perform a specific action until a condition is met.
Q54. What is polymorphism?
Polymorphism is the ability of an object to take on many forms.
Polymorphism allows objects of different classes to be treated as if they are of the same class.
It is achieved through method overriding and method overloading.
Examples include function overloading in C++ and Java's method overriding.
Polymorphism helps in achieving loose coupling and flexibility in code design.
Q55. What is run time polymorphism?
Run time polymorphism is the ability of an object to take on multiple forms at runtime.
It allows a subclass to provide its own implementation of a method that is already provided by its parent class.
It is achieved through method overriding.
It is also known as dynamic polymorphism.
Example: A parent class Animal has a method called makeSound(). The subclass Dog can override this method to make a different sound.
Example: A parent class Shape has a method called draw(). The subcl...read more
Q56. Who many types of performance appraisal is there
There are several types of performance appraisals, including 360-degree feedback, self-assessment, and management by objectives.
360-degree feedback: Involves feedback from multiple sources, such as peers, subordinates, and supervisors.
Self-assessment: Employees evaluate their own performance and discuss it with their managers.
Management by objectives: Setting specific goals and objectives for employees to achieve during a certain period.
Rating scales: Using a numerical or des...read more
Q57. Internal structure of collections
Internal structure of collections refers to the organization and arrangement of data within a collection.
Collections can be organized using various data structures such as arrays, linked lists, trees, and hash tables.
The choice of data structure depends on the type of data being stored and the operations that need to be performed on the collection.
For example, an array is a good choice for collections with fixed size and random access, while a linked list is better for collec...read more
Q58. What is Encapsulation?
Encapsulation is the process of hiding implementation details and exposing only necessary information.
Encapsulation is a fundamental concept in object-oriented programming.
It helps in achieving data abstraction and information hiding.
It allows for better control over the data and prevents unauthorized access.
Example: A class in Java that has private variables and public methods to access those variables.
Example: A capsule that contains medicine and only allows access to the m...read more
Q59. What is authentication and authorisation?
Authentication is the process of verifying the identity of a user, while authorization is the process of determining what actions a user is allowed to perform.
Authentication confirms the identity of a user through credentials like passwords, biometrics, or security tokens.
Authorization determines the level of access a user has to resources or actions based on their authenticated identity.
Examples of authentication include entering a password to log into a computer system, or ...read more
Q60. What is react and for it is used ?
React is a JavaScript library for building user interfaces.
React is used for creating interactive user interfaces for web applications.
It allows developers to build reusable UI components.
React uses a virtual DOM for efficient rendering of components.
React can be used to create single-page applications or mobile apps.
Examples: Facebook, Instagram, Airbnb use React for their web interfaces.
Q61. What is Inheritance?
Inheritance is a mechanism in object-oriented programming where a new class is created by inheriting properties of an existing class.
Inheritance allows for code reuse and promotes the concept of hierarchical classification.
The existing class is called the superclass or parent class, while the new class is called the subclass or child class.
The subclass inherits all the properties and methods of the superclass, and can also add its own unique properties and methods.
For example...read more
Q62. What are materialised views
Materialized views are precomputed views stored on disk for faster query performance.
Materialized views store the results of a query on disk so that the query can be run faster in the future.
They are updated periodically to reflect changes in the underlying data.
Materialized views are commonly used in data warehousing and reporting applications.
Examples of materialized views include summary tables, aggregated data, and complex joins.
Q63. DIctionaries in Python as my language was python.
Dictionaries in Python are key-value pairs used to store and retrieve data efficiently.
Dictionaries are created using curly braces {} or the dict() constructor.
Keys in a dictionary must be unique and immutable, while values can be of any data type.
Values in a dictionary can be accessed using their corresponding keys.
Dictionaries can be modified by adding, updating, or deleting key-value pairs.
Examples: {'name': 'John', 'age': 25}, dict(zip(['a', 'b', 'c'], [1, 2, 3]))
Q64. Difference between C and C++?
C++ is an extension of C with object-oriented programming features.
C++ supports classes and objects while C does not.
C++ has better support for polymorphism and inheritance.
C++ has a standard template library (STL) while C does not.
C++ is more complex and has more features than C.
C++ is used for developing large-scale software projects.
C is used for developing system-level software and embedded systems.
Q65. Strength and weakness?
My strength is my ability to adapt quickly to new situations. My weakness is that I can be too detail-oriented at times.
Strength: Quick adaptability to new situations
Weakness: Detail-oriented to a fault
Example for strength: Successfully adapting to a new team and project within a week
Example for weakness: Spending too much time on minor details and missing deadlines
Q66. What is meant by human resource
Human resource refers to the individuals who make up the workforce of an organization and are responsible for carrying out tasks and achieving goals.
Human resource management involves recruiting, training, and managing employees.
HR departments handle employee relations, benefits, and performance evaluations.
Effective human resource management is crucial for organizational success.
Examples of human resource activities include hiring new employees, conducting training programs,...read more
Q67. What is partition?
Partition is the division of a physical or logical structure into multiple parts.
Partitioning helps in organizing data, improving performance, and increasing efficiency.
Examples include disk partitioning in a computer system, partitioning of a database table for better management, and partitioning of a hard drive for separate storage areas.
Q68. what is a universal language ?
A universal language is a communication system that is understood by people from different cultures and backgrounds.
A universal language allows for effective communication without the need for translation.
Examples include mathematics, music, and visual symbols like traffic signs.
It promotes unity and understanding among diverse groups of people.
Q69. oops concept 4 pillar of oops with example
The 4 pillars of OOP are Abstraction, Encapsulation, Inheritance, and Polymorphism.
Abstraction: Hiding implementation details and showing only necessary information. Example: A car dashboard only shows necessary information like speed, fuel level, etc.
Encapsulation: Binding data and functions that manipulate the data together. Example: A class in Python that has data attributes and methods that manipulate those attributes.
Inheritance: Creating new classes from existing ones. ...read more
Q70. how to control incoming traffic via bgp, and troubleshoot routing issues
To control incoming traffic via BGP, use route maps and prefix lists. Troubleshoot routing issues by checking BGP neighbor relationships and route advertisements.
Create a prefix list to filter incoming routes based on their network address
Create a route map to apply the prefix list and set policies for accepted routes
Check BGP neighbor relationships to ensure they are established and functioning properly
Check route advertisements to ensure they are being sent and received cor...read more
Q71. Feature of micro services
Microservices are a software development technique that structures an application as a collection of loosely coupled services.
Each service is self-contained and can be developed, deployed, and scaled independently
Promotes flexibility, scalability, and resilience in software development
Allows for different technologies to be used for different services
Enables teams to work on different services simultaneously
Facilitates easier maintenance and updates
Q72. Write a java program
Java program to print 'Hello, World!'
Create a class with a main method
Use System.out.println() to print the message
Compile and run the program
Q73. Write code for Fibonacci series
Code for Fibonacci series
Declare variables for first two numbers of the series
Use a loop to generate subsequent numbers
Add the previous two numbers to get the next number
Print or store the numbers as required
Q74. Program to convert a number to string
Program to convert a number to string
Use a loop to extract digits from the number
Convert each digit to its corresponding character
Add each character to an array of strings
Join the array of strings to form the final string
Q75. What types of transformation used in your project What is lookup and what are the types So many basic questions regarding organization
Answering questions about transformation and lookup types used in a project
Transformation types used in the project may include data mapping, aggregation, filtering, and sorting
Lookup is a process of searching for a specific value in a table or database
Types of lookup include exact match, range match, and fuzzy match
Questions about organization may refer to project management, team collaboration, or software development methodologies
Q76. What is a singleton pattern
Singleton pattern restricts the instantiation of a class to a single instance and provides a global point of access to it.
Used when only one instance of a class is required throughout the system
Ensures that the instance is created only once and provides a global point of access to it
Commonly used in logging, configuration settings, and database connections
Implemented by making the constructor private and providing a static method to access the instance
Example: Java's Runtime ...read more
Q77. what is python redundacy
Python redundancy refers to unnecessary repetition or duplication of code in Python programming.
Redundancy in Python can lead to longer and more complex code, making it harder to maintain and debug.
Common examples of redundancy in Python include repeating the same code multiple times instead of using functions or loops.
Using functions, loops, and other programming techniques can help reduce redundancy in Python code.
Q78. What is platform dependent
Platform dependent refers to software or hardware that is specific to a particular operating system or device.
Refers to software or hardware that only works on a specific operating system or device
Code that is written for one platform may not work on another platform without modifications
Examples include Windows-specific software, iOS apps, and hardware drivers for specific devices
Q79. 1. Polymorphism in Java
Polymorphism in Java allows objects of different classes to be treated as objects of a common superclass.
Polymorphism allows methods to be called on objects of different classes that share a common superclass.
There are two types of polymorphism in Java: compile-time polymorphism (method overloading) and runtime polymorphism (method overriding).
Example of runtime polymorphism is when a subclass overrides a method of its superclass.
Polymorphism helps in achieving flexibility an...read more
Q80. How many toothpastes are sold in one month in Hyderabad
It is not possible to accurately determine the number of toothpastes sold in one month in Hyderabad without available data.
The number of toothpastes sold can vary depending on various factors such as population, consumer behavior, and market trends.
To estimate the number, data from toothpaste manufacturers, distributors, and retailers would be required.
Factors like brand popularity, pricing, and promotional activities can also influence sales.
Without specific data, it is impo...read more
Q81. What are the Hr functions
HR functions include recruitment, training, performance management, employee relations, and compliance.
Recruitment - sourcing, interviewing, and hiring new employees
Training - developing and implementing training programs for employees
Performance management - evaluating and rewarding employee performance
Employee relations - handling employee grievances and conflicts
Compliance - ensuring HR policies and practices comply with laws and regulations
Q82. What is meant by firm
A firm refers to a business entity or company that engages in economic activities to produce goods or services for profit.
A firm can be a sole proprietorship, partnership, corporation, or limited liability company.
Firms typically have a specific organizational structure, management team, and business goals.
Examples of firms include Apple Inc., Walmart, and small local businesses like a bakery or law firm.
Q83. Tell me smtg about capgemini
Capgemini is a global consulting and technology services company.
Provides consulting, technology, and outsourcing services
Operates in over 50 countries
Works with clients in various industries such as banking, healthcare, and retail
Offers services in areas such as digital transformation, cloud computing, and cybersecurity
Q84. How to change request in retrofit?
To change a request in retrofit, you can modify the request parameters or body before making the API call.
Create a new instance of the request interface with the desired changes
Update the request parameters or body using setter methods
Make the API call with the modified request instance
Q85. What is architecture of AEM
AEM architecture is based on OSGi framework and follows a modular approach.
AEM uses Apache Sling framework for request processing and resource resolution.
It has a content repository based on Apache Jackrabbit Oak.
AEM also has a dispatcher module for caching and load balancing.
It follows a component-based architecture where each component is a self-contained module.
AEM also supports customization through templates, workflows, and APIs.
Q86. Types of polymorphism
Polymorphism refers to the ability of objects to take on multiple forms. There are two types of polymorphism: compile-time and runtime.
Compile-time polymorphism is achieved through function overloading and operator overloading.
Runtime polymorphism is achieved through virtual functions and function overriding.
Polymorphism allows for more flexible and reusable code.
Example of compile-time polymorphism: function overloading - multiple functions with the same name but different p...read more
Q87. Different data types in python
Python supports various data types including integers, floats, strings, lists, tuples, dictionaries, and booleans.
Integers: whole numbers without decimals (e.g. 5, -3)
Floats: numbers with decimals (e.g. 3.14, -0.5)
Strings: sequences of characters enclosed in quotes (e.g. 'hello', '123')
Lists: ordered collections of items (e.g. [1, 'apple', True])
Tuples: ordered, immutable collections of items (e.g. (1, 'banana', False))
Dictionaries: unordered collections of key-value pairs (e...read more
Q88. How you estimate story in Agile
Estimating story in Agile involves breaking down the story into smaller tasks and assigning story points based on complexity and effort.
Break down the story into smaller tasks
Assign story points based on complexity and effort
Use a reference story to establish a baseline for estimation
Involve the entire team in the estimation process
Re-estimate stories as more information becomes available
Q89. Explain project
A project is a temporary endeavor with a defined beginning and end, undertaken to achieve unique goals and objectives.
Projects have a specific timeline and budget
They involve a team of people with different skills and roles
They aim to deliver a unique product, service, or result
Examples include building a new website, launching a marketing campaign, or constructing a building
Q90. Oops concept explains
Oops concept explains the principles of object-oriented programming.
Oops stands for Object-Oriented Programming
It focuses on creating objects that interact with each other to solve problems
Key principles include inheritance, encapsulation, polymorphism, and abstraction
Q91. what do u understand by pointers
Pointers are variables that store memory addresses of other variables in programming languages.
Pointers allow direct access and manipulation of memory locations.
They are commonly used in programming languages like C and C++.
Pointers can be used to pass variables by reference, allowing modifications to the original value.
They can also be used to dynamically allocate memory.
Example: int* ptr; // declares a pointer to an integer variable.
Q92. Find the Duplicate Number Problem Statement
Given an integer array 'ARR' of size 'N' containing numbers from 0 to (N - 2). Each number appears at least once, and there is one number that appears twice. Your tas...read more
Find the duplicate number in an array of integers from 0 to (N - 2).
Iterate through the array and keep track of the frequency of each number using a hashmap.
Return the number that has a frequency greater than 1 as it is the duplicate number.
Q93. What is java, difference between java and C
Java is an object-oriented programming language. C is a procedural programming language.
Java is platform-independent while C is platform-dependent
Java has automatic memory management while C requires manual memory management
Java has built-in support for multithreading while C does not
Java has a larger standard library compared to C
Java is used for developing web applications, mobile applications, and enterprise software while C is used for system programming and embedded syst...read more
Q94. What is Automated payment program
Automated payment program is a system that automatically processes payments to vendors based on predefined criteria.
Automated payment programs streamline the payment process by eliminating manual intervention.
Criteria for payment can include invoice amount, due date, vendor details, etc.
Common examples of automated payment programs include SAP's Automatic Payment Program (APP) and Oracle's Payment Manager.
Q95. What is OOPs and explain all pillars of it.
OOPs stands for Object-Oriented Programming and it has four pillars: Encapsulation, Inheritance, Polymorphism, and Abstraction.
Encapsulation: bundling of data and methods that operate on that data within a single unit (class).
Inheritance: ability of a class to inherit properties and characteristics from a parent class.
Polymorphism: ability of objects to take on multiple forms or have multiple behaviors.
Abstraction: hiding of complex implementation details and providing a simp...read more
Q96. what is the diffrence between java & C
Java is an object-oriented language while C is a procedural language.
Java is platform-independent while C is platform-dependent.
Java has automatic garbage collection while C requires manual memory management.
Java has built-in support for multithreading while C requires external libraries.
Java has a larger standard library compared to C.
Java is more secure than C due to its strong type checking and exception handling.
C is faster than Java in terms of execution speed.
C is commo...read more
Q97. Different launch mode of activity?
Different launch modes of activity refer to various ways in which a project or product can be introduced to the market.
Soft launch - releasing the product to a limited audience to gather feedback before full launch
Grand launch - a large-scale event to create buzz and generate interest
Online launch - introducing the product through digital channels such as social media and websites
Stealth launch - quietly releasing the product without much fanfare to test market response
Q98. Minimum Operations to Make Strings Equal
Given two strings A
and B
consisting of lowercase English letters, determine the minimum number of pre-processing moves required on string A
to make it equal to string B...read more
The minimum number of pre-processing moves required on string A to make it equal to string B using specified operations.
Iterate through both strings simultaneously and check for differences.
Count the number of differences that can be fixed using the specified operations.
Return the count as the minimum number of pre-processing moves required.
Q99. Ways To Make Coin Change
Given an infinite supply of coins of varying denominations, determine the total number of ways to make change for a specified value using these coins. If it's not possible to make the c...read more
The task is to find the total number of ways to make change for a specified value using given denominations.
Use dynamic programming to solve this problem efficiently.
Create a 2D array to store the number of ways to make change for each value using different denominations.
Iterate through the denominations and update the array based on the current denomination.
The final answer will be in the last cell of the 2D array.
Q100. The Skyline Problem
Compute the skyline of given rectangular buildings in a 2D city, eliminating hidden lines and forming the outer contour of the silhouette when viewed from a distance. Each building is descri...read more
Compute the skyline of given rectangular buildings in a 2D city, eliminating hidden lines and forming the outer contour of the silhouette when viewed from a distance.
Iterate through the buildings and create a list of critical points (x, y) where the height changes.
Sort the critical points based on x-coordinate and process them to form the skyline.
Merge consecutive horizontal segments of equal height into one to ensure no duplicates in the output.
More about working at Capgemini







Top HR Questions asked in Capgemini for Freshers
Interview Process at Capgemini for Freshers

Top Interview Questions from Similar Companies








Reviews
Interviews
Salaries
Users/Month

