[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

Placement Questions & Answers :: TCS Ninja

21. The pacelength P is the distance between the rear of two consecutive footprints. For men, the formula, n/P= 180 gives an approximate relationship between n and P where, n = number of steps per minute and P = pacelength in meters. Bernard knows his pacelength is 120 cm. The formula applies to Bernard's walking. Calculate Bernard's walking speed kmph.

Answer:

Explanation:

n/P = 180 gives an approximate relationship between n and P where, n = number of steps per minute and P = pacelength in meters. Bernard knows his pacelength is 120cm.
Number of steps in one minute = 180*1.2
Distance travelled in 1 minute = 180*1.2*1.2 metres Distance travelled in one hr = 180*1.2*1.2*60/1000 km = 15.55 km approx

Workspace

Tags:

TCS Ninja TCS Digital TCS NQT 

22. Two circles are placed in an equilateral triangle as shown in the figure. What is the ratio of the area of the smaller circle to that of the equilateral triangle?

tcs-digital-p-q-1

Answer:

Explanation:

tcs-digital-p-1

Workspace

Tags:

TCS Ninja 

23. A greengrocer was selling apple at a penny each, chickoos at 2 for a penny and peanuts at 3 for a penny. A father spent 7 pennies and got the same amount of each type of fruit for each of his three children. What did each child get?

Answer:

Explanation:

1 apple costs 1 penny ===> 3 apples for 3 pennies, 2 chickoos cost one penny ===> 3 kids * 2 chickoos each for 3 pennies
3 peanuts cost one penny ===> 3 peanuts from the balance penny
Spending 7 pennies and giving each child 1 apple, 2 chickoos and 1 peanut each.

Workspace

Tags:

TCS Ninja TCS Digital TCS NQT 

24. 1/3 of a number is 6 more than 1/6 of that number then what is the number?

Answer:

Explanation:

Let the number be x
So, x*(1/3) = 6+[x*(1/6)] Solving this,
x=36

Workspace

Tags:

TCS Ninja TCS Digital TCS NQT 

25. Find the value of (213 x 213 x 213 - 31 x 31 x 31)/(213 x 213 + 213 x 31 + 31 x 31)

Answer:

Explanation:

Here, the numerator is in the form of a3-b3=(a-b) (a2+ab+b2) and the denominator is in the form of a2+ab+b2
a=213 & b=31
By cancelling the common terms in the numerator and the denominator we will get (a-b)
I.e.213-31= 182

Workspace

Tags:

TCS Ninja 

26. For the FIFA world cup, Paul the octopus has been predicting the winner of each match with amazing success. It is rumoured that in a match between 2 teams A and B, Paul picks A with the same probability as A's chances of winning. Let's assume such rumours to be true and that in a match between Ghana and Bolivia, Ghana the stronger team has a probability of 2/3 of winning the game. What is the probability that Paul will correctly pick the winner of the Ghana- Bolivia game?

Answer:

Explanation:

Paul picks A with the same probability as A's chances of winning.
Chance of A winning = 2/3
Prediction of octopus is also = 2/3 (given in question)
Chance of B winning = 1/3 Octopus prediction = 1/3
So probability of picking a winner = (prob picking of Ghana * Ghana winning + prob picking of Bolivia * Bolivia winning)
= (2/3)*(2/3) +(1/3)*(1/3) = 5/9.

Workspace

Tags:

TCS Ninja TCS Digital TCS NQT 

27. What is the output of the following code statements? The compiler saves the first integer at the memory location 4062. Integer is one byte long.
integer a pointer b a = 20
b = &a print b

Answer:

Explanation:

Here is no explanation for this answer

Workspace

Tags:

TCS NQT TCS Ninja TCS Digital 

28. What is the output of the following code statements? The compiler saves the first integer at the memory location 4165 and the rest at consecutive memory spaces in order of declaration. Integer is one byte long.
integer a, b pointer c, d a = 30
c = &a b = c
a = a + 10 print b

Answer:

Explanation:

Here is no explanation for this answer

Workspace

Tags:

TCS NQT TCS Ninja TCS Digital 

29. Consider the statement while (a < 10.0) { a = a a }
Assuming a is positive, for what value of a will this code statement result in an infinite loop?

Answer:

Explanation:

Here is no explanation for this answer

Workspace

Tags:

TCS NQT TCS Ninja TCS Digital 

30. The maximum number of nodes on level I of a binary tree is which of the following? (Root is Level 1)

Answer:

Explanation:

Here is no explanation for this answer

Workspace

Tags:

TCS Ninja