Add office photos
Capgemini logo
Engaged Employer

Capgemini

Verified
3.7
based on 41.8k Reviews
Video summary
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
Clear (1)

300+ Capgemini Interview Questions and Answers for Freshers

Updated 11 Jan 2025
Popular Designations

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 more
Ans.

You 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.

View 524 more answers
right arrow

Q2. How can you cut a rectangular cake in 8 symmetric pieces in three cuts?

Ans.

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

View 177 more answers
right arrow

Q3. 3. Do you know about OOP concepts? Explain.

Ans.

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

View 1 answer
right arrow

Q4. One question of sorting for a list of people belonging to different cities and states.

Ans.

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'}]

View 56 more answers
right arrow
Discover Capgemini interview dos and don'ts from real experiences

Q5. What are seven layers of networking?

Ans.

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

View 106 more answers
right arrow

Q6. What are the fields in EXTC that are related to IT ?

Ans.

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

View 1 answer
right arrow
Are these interview questions helpful?

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)

Ans.

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.

View 3 more answers
right arrow

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

Ans.

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.

Add your answer
right arrow
Share interview questions and help millions of jobseekers 🌟
man with laptop

Q9. What's the difference between final and finally keywords in java?

Ans.

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

View 2 more answers
right arrow

Q10. What is object-oriented language and give real-time examples?

Ans.

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.

Add your answer
right arrow

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

Ans.

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

View 1 answer
right arrow

Q12. How long it will take for you to pick up a new programming language or technology?

Ans.

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

Add your answer
right arrow

Q13. Output of the pseudocode:- #include void main() { int a = 100; printf("%0 %x", a); }

Ans.

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'.

View 1 answer
right arrow

Q14. What is the importance of C language and its real time applications?

Ans.

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

Add your answer
right arrow

Q15. Deductive Logical Thinking - 6 minutes-Finding the missing symbol/ visual in a grid based on a rule-based logic

Ans.

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

Add your answer
right arrow

Q16. What is a constructor?

Ans.

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");

View 4 more answers
right arrow

Q17. Why do you prefer Java over other languages?(

Ans.

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

Add your answer
right arrow

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 more
Ans.

Explaining 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

Add your answer
right arrow

Q19. find whether the number is divisible by both 5 and 7.

Ans.

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).

Add your answer
right arrow

Q20. why react is faster, default parameters, can you call async function in useEffect

Ans.

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

View 1 answer
right arrow

Q21. had to take n input and check whether it is prime and composite or not.

Ans.

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

Add your answer
right arrow

Q22. To check if the sum of the digits of a number is palindrome or not

Ans.

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

Add your answer
right arrow

Q23. What are the types of constructors?

Ans.

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; } }

View 2 more answers
right arrow

Q24. How would you rate your programming skills?

Ans.

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.

Add your answer
right arrow

Q25. What is sub flow in mule?

Ans.

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

View 2 more answers
right arrow

Q26. What are the Design patterns have you used?

Ans.

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.

Add your answer
right arrow

Q27. Explain the working of Ultrasonic sensor.( in my project)

Ans.

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

View 1 answer
right arrow

Q28. Find whether the given number is perfect number or not

Ans.

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

View 1 answer
right arrow

Q29. What is polymorphism and real time examples?

Ans.

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

Add your answer
right arrow

Q30. SDLC Grant VS Revoke Alpha testing VS Beta Testing DDL VS DML

Ans.

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

Add your answer
right arrow

Q31. What is a singleton class?

Ans.

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.

View 1 answer
right arrow

Q32. How do you write custom exception?

Ans.

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)'

Add your answer
right arrow

Q33. What is the use of scanf() and printf()?

Ans.

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.

View 1 answer
right arrow

Q34. What is destructive and construction?

Ans.

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

Add your answer
right arrow

Q35. Difference between throw , throws and throwable ?

Ans.

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

Add your answer
right arrow

Q36. Explain the different types of loops?

Ans.

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

Add your answer
right arrow

Q37. Find perfect numbers within the given range

Ans.

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

Add your answer
right arrow

Q38. What is Database? Why they are used?

Ans.

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.

Add your answer
right arrow

Q39. what is loop? what is inheritance?

Ans.

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

Add your answer
right arrow

Q40. What is cursor and explain wd eg

Ans.

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

Add your answer
right arrow

Q41. What is built-in functions in c What is Artificial Intelligence What is cloud computing

Ans.

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

Add your answer
right arrow

Q42. Create a query for extracting information from students data

Ans.

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

Add your answer
right arrow

Q43. difference between DBMS and RDBMS?

Ans.

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

Add your answer
right arrow

Q44. What about further studies?

Ans.

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.

Add your answer
right arrow

Q45. What is the OOPS concept?

Ans.

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

Add your answer
right arrow

Q46. What is your favourite programming language

Ans.

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.

Add your answer
right arrow

Q47. What is oracle database structure?

Ans.

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

Add your answer
right arrow

Q48. Introduction, what is difference between C++ and Java

Ans.

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

Add your answer
right arrow

Q49. Find subsets from a given string

Ans.

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.

Add your answer
right arrow

Q50. What is a choice router?

Ans.

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

View 1 answer
right arrow

Q51. What is difference between list and tuple

Ans.

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)

Add your answer
right arrow

Q52. Tell me the Architecture of a Flipflop.

Ans.

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.

Add your answer
right arrow

Q53. What is Iteration?

Ans.

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.

View 1 answer
right arrow

Q54. What is polymorphism?

Ans.

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.

Add your answer
right arrow

Q55. What is run time polymorphism?

Ans.

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

Add your answer
right arrow

Q56. Who many types of performance appraisal is there

Ans.

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

Add your answer
right arrow

Q57. Internal structure of collections

Ans.

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

Add your answer
right arrow

Q58. What is Encapsulation?

Ans.

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

Add your answer
right arrow

Q59. What is authentication and authorisation?

Ans.

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

Add your answer
right arrow

Q60. What is react and for it is used ?

Ans.

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.

Add your answer
right arrow

Q61. What is Inheritance?

Ans.

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

Add your answer
right arrow

Q62. What are materialised views

Ans.

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.

Add your answer
right arrow

Q63. DIctionaries in Python as my language was python.

Ans.

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]))

Add your answer
right arrow

Q64. Difference between C and C++?

Ans.

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.

Add your answer
right arrow

Q65. Strength and weakness?

Ans.

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

Add your answer
right arrow

Q66. What is meant by human resource

Ans.

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

Add your answer
right arrow

Q67. What is partition?

Ans.

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.

Add your answer
right arrow

Q68. what is a universal language ?

Ans.

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.

Add your answer
right arrow

Q69. oops concept 4 pillar of oops with example

Ans.

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

Add your answer
right arrow

Q70. how to control incoming traffic via bgp, and troubleshoot routing issues

Ans.

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

Add your answer
right arrow

Q71. Feature of micro services

Ans.

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

Add your answer
right arrow

Q72. Write a java program

Ans.

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

Add your answer
right arrow

Q73. Write code for Fibonacci series

Ans.

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

Add your answer
right arrow

Q74. Program to convert a number to string

Ans.

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

Add your answer
right arrow

Q75. What types of transformation used in your project What is lookup and what are the types So many basic questions regarding organization

Ans.

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

Add your answer
right arrow

Q76. What is a singleton pattern

Ans.

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

Add your answer
right arrow

Q77. what is python redundacy

Ans.

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.

Add your answer
right arrow

Q78. What is platform dependent

Ans.

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

Add your answer
right arrow

Q79. 1. Polymorphism in Java

Ans.

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

Add your answer
right arrow

Q80. How many toothpastes are sold in one month in Hyderabad

Ans.

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

Add your answer
right arrow

Q81. What are the Hr functions

Ans.

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

Add your answer
right arrow

Q82. What is meant by firm

Ans.

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.

Add your answer
right arrow

Q83. Tell me smtg about capgemini

Ans.

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

Add your answer
right arrow

Q84. How to change request in retrofit?

Ans.

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

Add your answer
right arrow

Q85. What is architecture of AEM

Ans.

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.

View 1 answer
right arrow

Q86. Types of polymorphism

Ans.

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

Add your answer
right arrow

Q87. Different data types in python

Ans.

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

Add your answer
right arrow

Q88. How you estimate story in Agile

Ans.

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

Add your answer
right arrow

Q89. Explain project

Ans.

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

Add your answer
right arrow

Q90. Oops concept explains

Ans.

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

Add your answer
right arrow

Q91. what do u understand by pointers

Ans.

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.

Add your answer
right arrow

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

Ans.

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.

View 1 answer
right arrow

Q93. What is java, difference between java and C

Ans.

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

Add your answer
right arrow

Q94. What is Automated payment program

Ans.

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.

Add your answer
right arrow

Q95. What is OOPs and explain all pillars of it.

Ans.

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

Add your answer
right arrow

Q96. what is the diffrence between java &amp; C

Ans.

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

Add your answer
right arrow

Q97. Different launch mode of activity?

Ans.

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

Add your answer
right arrow

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

Ans.

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.

Add your answer
right arrow

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

Ans.

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.

Add your answer
right arrow

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

Ans.

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.

Add your answer
right arrow
1
2
3
4
Next
Contribute & help others!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
Recently Viewed
INTERVIEWS
HDFC Bank
Fresher
100 top interview questions
LIST OF COMPANIES
L&T Technology Services
Locations
LIST OF COMPANIES
METRO Global Solutions Center
Locations
LIST OF COMPANIES
Suryoday Small Finance Bank
Overview
INTERVIEWS
Infosys Consulting
No Interviews
INTERVIEWS
EdgeVerve Systems
No Interviews
INTERVIEWS
EdgeVerve Systems
No Interviews
LIST OF COMPANIES
Equitas Small Finance Bank
Overview
LIST OF COMPANIES
Ujjivan Small Finance Bank
Overview
REVIEWS
Cognizant
No Reviews
Top Capgemini Interview Questions And Answers
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter