Capegemini Consulting India Private Limited interview experience Real time questions & tips from candidates to crack your interview

Senior Software Engineer

Capegemini Consulting India Private Limited
upvote
share-icon
3 rounds | 13 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 months
Topics: Data Structures, Algorithms, System Design, Aptitude, Java , OOPS
Tip
Tip

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.

Application process
Where: Referral
Eligibility: Above 2 years of experience
Resume Tip
Resume tip

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.

Interview rounds

01
Round
Easy
Face to Face
Duration60 Minutes
Interview date18 Jul 2019
Coding problem5

This round consisted of 1 question from DSA with easy level of difficulty and then the rest of the questions were asked from DBMS and SQL.

1. Trailing zeros in factorial

Moderate
15m average time
80% success
0/80
Asked in companies
UberGoldman SachsCapegemini Consulting India Private Limited

You are given an integer N, you need to find the number of trailing zeroes in N! (N factorial).

Note:

1. Trailing zeros in a number can be defined as the number of continuous suffix zeros starting from the zeroth place of a number.
2. For example, if a number X = 1009000, then the number of trailing zeros = 3 where the zeroth place is 0, the tenth place is 0, the hundredth place is 0.
3. ! means “FACTORIAL”. Factorial of a number is calculated by the product of the integer and all integers below it till 1.
4. Value of 0! is 1.
Problem approach

Approach : 
1) Firstly, take a variable trailing_zero = 0. then take var num = 5
2) trailing_zero += divide the number given(n) by num then
3) We will make the square of 5 i.e num = num *num, then cube
4) Repeat till process will continue till the num <= n

Try solving now

2. DBMS Question

Explain the concept of ACID properties in DBMS.

Problem approach

Answer : 

ACID properties are a combination of Atomicity, Consistency, Isolation, and Durability properties. These properties prove to be very helpful in allowing a safe and secure way of sharing the data amongst multiple users.

Atomicity: When changes are being done to the data it feels as though a single operation is performed. In other words, either all the changes are performed, or none of them is performed.

Consistency: Data must be in a consistent state at the beginning of the transaction as well as the end of the transaction.

Isolation: As the name itself suggests, this ensures that each transaction that occurs is in isolation from others. Simply put a transaction that has started but not yet completed should be in isolation with others, this is done so that the other transaction does not get impacted with this transaction.

Durability: In the event of system failure, after the transaction is completed, changes to the data persist and are not undone. Hence, due to this property data is always in a durable state.

3. DBMS Question

What is meant by normalization and denormalization?

Problem approach

Answer : 
Normalization is a process of reducing redundancy by organizing the data into multiple tables. Normalization leads to better usage of disk spaces and makes it easier to maintain the integrity of the database. 

Denormalization is the reverse process of normalization as it combines the tables which have been normalized into a single table so that data retrieval becomes faster. JOIN operation allows us to create a denormalized form of the data by reversing the normalization.

4. DBMS Question

How to Take a Backup of a Table in MySQL?

Problem approach

Answer :
Method 1 – Taking a Backup of a MySQL Table Using INSERT INTO

CREATE TABLE table_backup;
INSERT INTO table_backup SELECT * FROM table;

This method creates the structure of the table including indexes and then loading the data in via one statement.


Method 2 – Taking a Backup of a MySQL Table Using mysqldump

mysqldump -u{backup_user} -p{backup_password} from_db_name table_to_backup > backup_file.sql

The backup is taken using mysqldump and can be directed to a location of choice. Disk space is therefore not a consideration for the data drive, rather it is necessary just for the location being backed up to.

5. SQL Question

Table my_numbers contains many numbers in column num including duplicated ones. Can you write a SQL query to find the biggest number, which only appears once.

Problem approach

Answer :
Using subquery and MAX() function Use subquery to select all the numbers appearing just one time. Then choose the biggest one using MAX().

Query :

SELECT
MAX(num) AS num
FROM
(SELECT num FROM my_numbers GROUP BY num HAVING COUNT(num) = 1) AS t;

02
Round
Medium
Face to Face
Duration60 Minutes
Interview date18 Jul 2019
Coding problem6

This round had questions revolving around Java and Selenium. Core concpets of Selenium were very frequent in
this interview.

1. Java Question

What is the difference between JDK, JRE, and JVM?

Problem approach

Answer : 

JVM : JVM is an acronym for Java Virtual Machine; it is an abstract machine which provides the runtime environment in which Java bytecode can be executed. It is a specification which specifies the working of Java Virtual Machine. Its implementation has been provided by Oracle and other companies. Its implementation is known as JRE.

JRE : JRE stands for Java Runtime Environment. It is the implementation of JVM. The Java Runtime Environment is a set of software tools which are used for developing Java applications. It is used to provide the runtime environment. It is the implementation of JVM. It physically exists. It contains a set of libraries + other files that JVM uses at runtime.

JDK : JDK is an acronym for Java Development Kit. It is a software development environment which is used to develop Java applications and applets. It physically exists. It contains JRE + development tools. JDK is an implementation of any one of the below given Java Platforms released by Oracle Corporation:

i) Standard Edition Java Platform
ii) Enterprise Edition Java Platform
iii) Micro Edition Java Platform

2. Java Question

What is JIT compiler?

Problem approach

Ans : Just-In-Time(JIT) compiler: It is used to improve the performance. JIT compiles parts of the bytecode that have similar functionality at the same time, and hence reduces the amount of time needed for compilation. Here the term “compiler” refers to a translator from the instruction set of a Java virtual machine (JVM) to the instruction set of a specific CPU.

3. Java Question

What are the advantages of Packages in Java?

Problem approach

There are various advantages of defining packages in Java.

i) Packages avoid the name clashes.
ii) The Package provides easier access control.
iii) We can also have the hidden classes that are not visible outside and used by the package.
iv) It is easier to locate the related classes.

4. Selenium Question

What is the difference between assert and verify commands?

Problem approach

Assert: Assert command checks whether the given condition is true or false. Let’s say we assert whether the given element is present on the web page or not. If the condition is true then the program control will execute the next test step but if the condition is false, the execution would stop and no further test would be executed.

Verify: Verify command also checks whether the given condition is true or false. Irrespective of the condition being true or false, the program execution doesn’t halt i.e. any failure during verification would not stop the execution and all the test steps would be executed.

5. Selenium Question

When should I use Selenium Grid?

Problem approach

Selenium Grid can be used to execute same or different test scripts on multiple platforms and browsers concurrently so as to achieve distributed test execution, testing under different environments and saving execution time remarkably.

6. Selenium Question

What are the different types of waits available in WebDriver?

Problem approach

There are two types of waits available in WebDriver:
Implicit Wait
Explicit Wait

Implicit Wait: Implicit waits are used to provide a default waiting time (say 30 seconds) between each consecutive test step/command across the entire test script. Thus, the subsequent test step would only execute when the 30 seconds have elapsed after executing the previous test step/command.

Explicit Wait: Explicit waits are used to halt the execution till the time a particular condition is met or the maximum time has elapsed. Unlike Implicit waits, explicit waits are applied for a particular instance only.

03
Round
Easy
HR Round
Duration30 Minutes
Interview date18 Jul 2019
Coding problem2

This is a cultural fitment testing round .HR was very frank and asked standard questions. Then we discussed about my role.

1. Basic HR Question

Why should we hire you ?

Problem approach

Tip 1 : The cross questioning can go intense some time, think before you speak.
Tip 2 : Be open minded and answer whatever you are thinking, in these rounds I feel it is important to have opinion.
Tip 3 : Context of questions can be switched, pay attention to the details. It is okay to ask questions in these round, like what are the projects currently the company is investing, which team you are mentoring. How all is the work environment etc.
Tip 4 : Since everybody in the interview panel is from tech background, here too you can expect some technical questions. No coding in most of the cases but some discussions over the design can surely happen.

2. Basic HR Question

Why are you looking for a job change?

Problem approach

Tip : For an experienced professional seeking a change, this is a common question. The easiest method to respond to this question is to state that you are leaving your current work in order to advance your career. Make sure you don't criticize or speak poorly about the company where you now work

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
Senior Software Engineer
3 rounds | 13 problems
Interviewed by Capegemini Consulting India Private Limited
840 views
0 comments
0 upvotes
Senior Software Engineer
2 rounds | 5 problems
Interviewed by Capegemini Consulting India Private Limited
1173 views
0 comments
0 upvotes
Senior Software Engineer
2 rounds | 3 problems
Interviewed by Capegemini Consulting India Private Limited
967 views
0 comments
0 upvotes
Senior Software Engineer
1 rounds | 3 problems
Interviewed by Capegemini Consulting India Private Limited
1104 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Senior Software Engineer
1 rounds | 6 problems
Interviewed by Arcesium
3920 views
0 comments
0 upvotes
company logo
Senior Software Engineer
3 rounds | 3 problems
Interviewed by Ernst & Young (EY)
5173 views
0 comments
0 upvotes
company logo
Senior Software Engineer
3 rounds | 3 problems
Interviewed by HCL Technologies
3156 views
3 comments
0 upvotes