Latest placement question papers for Capgemini
211 / 483
Statements:
For over three decades Company X has been totally involved in energy conservation, its efficient use and management.
Conclusions:
I. The Company has yet to learn and acquire basic things in this area.
II. It is dedication that is more important than knowledge and expertise
AOnly conclusion I follows
BOnly conclusion II follows
CEither I or II follows
DNeither I nor II follows
EBoth I and II follow
Answer: Option D
Explanation:Since the company has been working in this area for three decades, it must have the necessary expertise and infrastructure required in this field. So, I does not follow. However, the qualities that have made the Company X successful in this field have not been mentioned. So, II also does not follow.
Submit Your Solution
212 / 483
The data given by the U.S. Labour Ministry indicate that till the year 2000, there will be a shortage of 1,00,000 programmers. A spokesman from the industry said, "We should understand this thoroughly America needs Indian programmers. This is not only the question of investment but also of the talent with which the Indian programmers are equipped".
AIndian programmers are the most talented in the world.
BIn other sectors also, there will be shortage of the talented labour till the year 2000.
CIn spite of entering with huge capital in the Software Training, U.S. could not be able to meet its own needs fully.
DIndian programmers are available on comparatively less salary in comparison to the programmers from other countries.
EThe Indian software market is well equipped to send programmes to other countries.
Answer: Option C
Explanation:Here is no explanation for this answer
Submit Your Solution
213 / 483
Statements:
Playing football daily for 1 hour can increase a person's life span by one year.
Conclusion:
I. Moderate level of physical exercise is necessary for leading a healthy life.
II. All people who do desk-bound jobs definitely suffer medical issues.
AOnly conclusion I follows
BOnly conclusion II follows
CEither I or II follows
DNeither I nor II follows
EBoth I and II follow
Answer: Option A
Explanation:The statement clearly implies that it is easier to say than to do something and what people say is different from what they do. So, both I and II follow.
Submit Your Solution
214 / 483
Statement:
Lalita scored 90 % marks in the 12th standard. He got highest marks in Science and English.
Conclusion:
I. Lalita is a very bright student.
II. Lalita did not get highest marks in other subjects except Science and English.
AOnly conclusion I follows
BOnly conclusion II follows
CEither I or II follows
DNeither I nor II follows
EBoth I and II follow
Answer: Option E
Explanation:According to the statement, previous experience is an essential condition for candidates but in case of outstanding candidates, this condition shall be waived. This means that some candidates will have previous experience while some will not. So, both I and II follow.
Submit Your Solution
215 / 483
What is the difference between a normal(naive) array and a sparse array?
AA naive array is more efficient
BSparse array can hold more elements than a normal array
CSparse array is memory efficient
DSparse array is dynamic
Answer: Option C
Explanation:A naive implementation allocates space for the entire size of the array, whereas a sparse array(linked list implementation) allocates space only for the non-default values.
Submit Your Solution
216 / 483
Choose the appropriate code that counts the number of non-zero(non-null) elements in the sparse array.
I. public int count()
{
int count = 1;
for (List cur = this.next; (cur != null); cur = cur.next.next)
{
count++;
}
return count;
}
II. public int count()
{
int count = 0;
for (List cur = this.next; (cur != null); cur = cur.next)
{
count++;
}
return count;
}
III. public int count()
{
int count = 0;
for (List cur = this; (cur != null); cur = cur.next)
{
count++;
}
return count;
}
IV. public int count()
{
int count = 1;
for (List cur = this.next; (cur != null); cur = cur.next)
{
count++;
}
return count;
}
AI
BII
CIII
DIV
Answer: Option B
Explanation:A simple ‘for loop’ to count the non-null elements.
Submit Your Solution
217 / 483
Choose the correct function from the following which determines the number of inversions in an array?
<b>I.</b> int InvCount(int arr[], int n)
{
int count = 0;
for (int i = 0; i < n - 1; i++)
for (int j = i + 1; j < n; j++)
if (arr[i] < arr[j])
count++;
return count + 1;
}
<b>II.</b> int InvCount(int arr[], int n)
{
int count = 0;
for (int i = 0; i < n - 1; i++)
for (int j = i ; j < n; j++)
if (arr[i] >= arr[j])
count++;
return count;
}
<b>III.</b> int InvCount(int arr[], int n)
{
int count = 0;
for (int i = 0; i < n - 1; i++)
for (int j = i + 1; j < n; j++)
if (arr[i] > arr[j])
count++;
return count;
}
<b>IV.</b> int InvCount(int arr[], int n)
{
int count = 0;
for (int i = 0; i < n - 1; i++)
for (int j = i + 1; j < n; j++)
if (arr[i] > arr[j])
count++;
return count + 1;
}
AI
BII
CIII
DIV
Answer: Option C
Explanation:To determine the number of inversions we apply a nested loop and compare the value of each element with all the elements present after it. Then the count of number of inversions is counted and returned to the main function.
Submit Your Solution
218 / 483
#include <iostream>
using namespace std;
int main()
{
int arr[] = {1,2,3,4,5,6};
int n = sizeof(arr)/sizeof(arr[0]);
int d=4;
int temp[10];
for(int i=0;i<d;i++)
temp[i]=arr[i];
int j=0;
for(int i=d;i<n;i++,j++)
arr[j]=arr[i];
int k=0;
for(int i=n-d;i<n;i++,k++)
arr[i]=temp[k];
for(int i=0;i<n;i++)
cout<<arr[i]<<" ";
return 0;
}
AO(n*d)
BO(1)
CO(n)
DO(d)
Answer: Option D
Explanation:The given code rotates an input array by d. It does so by using an auxiliary array temp[] which stores first d elements of the original array. So the auxiliary space complexity will be O(d).
Submit Your Solution
219 / 483
#include <bits/stdc++.h>
using namespace std;
void func1(int arr[], int n)
{
int k = arr[0], i;
for (i = 0; i < n - 1; i++)
arr[i] = arr[i + 1];
arr[i] = k;
}
void func(int arr[], int d, int n)
{
for (int i = 0; i < d; i++)
func1(arr, n);
}
void printArray(int arr[], int n)
{
for (int i = 0; i < n; i++)
cout << arr[i] << " ";
}
int main()
{
int arr[] = { 1, 2, 3, 4, 5};
int n = sizeof(arr) / sizeof(arr[0]);
func(arr, 3, n);
printArray(arr, n);
return 0;
}
Aerror
B4 5 1 2 3
C3 4 5 1 2
D5 4 3 1 2
Answer: Option B
Explanation:The given code rotates the input array by 3. It does so by rotating the elements one by one until the desired rotation is achieved. So the output will be 4 5 1 2 3.
Submit Your Solution
220 / 483
#include <iostream>
using namespace std;
int main()
{
int arr[] = {1,2,3,4,5,6};
int n = sizeof(arr)/sizeof(arr[0]);
int d=4;
int temp[10];
for(int i=0;i<d;i++)
temp[i]=arr[i];
int j=0;
for(int i=d;i<n;i++,j++)
arr[j]=arr[i];
int k=0;
for(int i=n-d;i<n;i++,k++)
arr[i]=temp[k];
for(int i=0;i<n;i++)
cout<<arr[i]<<" ";
return 0;
}
AO(n*d)
BO(d)
CO(n)
DO(n2)
Answer: Option C
Explanation:The given code rotates an input array by d. The longest loop in the code takes n iterations so the time complexity will be O(n).
Submit Your Solution
Here is the list of questions asked in latest placement papers for Capgemini Capgemini placement papers for ca. Practice Capgemini Written Test Papers with Solutions and take Q4Interview Capgemini Online Test Questions to crack Capgemini written round test. Overall the level of the Capgemini Online Assessment Test is moderate. Only those candidates who clear the written exam will qualify for the next round, so practic all the questions here and take all the free tests before going for final selection process of Capgemini