Tip 1 : Practice At least 250 Questions of DS algo
Tip 2 : Do at least 2 application based projects
Tip 1 : Have some projects on resume.
Tip 2 : Do not put false things on resume.
Tip 3 : Project should clear.
Online assessment consists of :-
Section 1: Pseudocode and coding round (elimination round)
after this section there was english communication based assessment in which I have to answer questions based on passages , one word grammer questions , jumbled words
section 2 : game-based aptitude (not elimination round)
Section 3 : Behaviour competency (not elimination round)
Integer i
Set i = 3do
print i + 3
i = i - 1while(i not equals 0)
end while
[Note: A do-while loop is a control flow statement that executes a block of code at least once, and then repeatedly executes the given Boolean condition at the end of the block]
A) 6 6 6
B) 6 5 6
C) 5 5 5
D) 6 5 4
Ans: D
Explanation:
In this program, one variable declared as i, and the value initialized as 3. We are moving with do-while(Do while will execute the statement once and then it will check the condition).
#include
int main()
{
for (int x = 10; x >= 0; x--) {
int z = x & (x >> 1);
if (z)
printf("%d ", x);
}
}
Ans:-
7 6 3
Here, in the given code, >> is the bitwise right shift operator and x>>y => x/(2^y) and & is the bitwise and operator and gives 1 only if both bits are same. Now, for x = 10, (10>=0) z = 10 & (10>>1) => z = 10 & 5 => z=10. Similarly for x= 9, 8, 5, 4, 2, 1 and 0 , z will be zero and for x=7, z will be 3 , for x= 6, z will be 2 and for x=3, z will be 1 for x=7, 6, and 3 z is non zero so the will get printed on the output screen. Hence, we get output as 7 6 3
#include
int main()
{
int go = 5.0, num = 1*10;
do
{
num /= go;
} while(go--);
printf ("%d\n", num);
return 0;
}
a) floating point exception
b)3 6 7
c) compilation error
Ans a)
In C when you divide the integer with a float without the type casting it gives "Floating Point Exception" error



All the integers in the array appear only once except for precisely one integer which appears two or more times.



'arr '= [1,2,3,4,5]
'k' = 1 rotated array = [2,3,4,5,1]
'k' = 2 rotated array = [3,4,5,1,2]
'k' = 3 rotated array = [4,5,1,2,3] and so on.
In this round we were made to play around 3-4 aptitude games.
Motion Challenge :-
Problem Statement: You’re a Jim, you love to solve puzzles, your challenge is to put the red ball into the hole, but hey, there are obstacles, some are plastic obstacles that you can move, some are hard rocks, you can’t move them. Try to do this in minimum number of steps to earn candy.
Digit Game :-
Problem Statement: You’re giving a mathematical statement and you need to create a correct combination of digits, to make LHS = RHS. Note : One Digit may only be used once, in some cases the all the digits may not be available.
Deductive Logical Thinking (Geo-Sudo Challenge)
You’re given a 4×4 or 5×5 or 6×6 grid. You’re supposed to find the missing value based on some rules
Decoding Rules
One geometrical shape can only occur once, in any row or any column
Basic Technical questions were asked.



Arr = 10, 5, 5, 6, 2,
In this array, the triplet {10, 5, 5} is valid triplet because, 5 + 5 = 10.
The elements in the array need not be distinct.
Sort the given array first.
Start fixing the greatest element of three from the back and traverse the array to find the other two numbers which sum up to the third element.
Take two pointers j(from front) and k(initially i-1) to find the smallest of the two number and from i-1 to find the largest of the two remaining numbers
If the addition of both the numbers is still less than A[i], then we need to increase the value of the summation of two numbers, thereby increasing the j pointer, so as to increase the value of A[j] + A[k].
If the addition of both the numbers is more than A[i], then we need to decrease the value of the summation of two numbers, thereby decrease the k pointer so as to decrease the overall value of A[j] + A[k].



No need to return anything. You should sort the array in-place.
Let ‘ARR’ be: [1, 4, 2]
The sorted array will be: [1, 2, 4].
To sort an array of size N in ascending order:
Iterate from arr[1] to arr[N] over the array.
Compare the current element (key) to its predecessor.
If the key element is smaller than its predecessor, compare it to the elements before. Move the greater elements one position up to make space for the swapped element.
What is selenium and Java Spring Boot.
Java Spring Boot (Spring Boot) is a tool that makes developing web application and microservices with Spring Framework faster and easier through three core capabilities: Autoconfiguration. An opinionated approach to configuration. The ability to create standalone applications
Types of keys.
what is Equii join.
what is normalization and its types.
what are acid properties
What is Garbage collector in JAVA?
what is inheritance.
What is encapsulation?
Basic Hr questions
Tell us about yourself and your family
Tell us about your projects
why you want to join Capgemini?

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?