TCS Company Logical Reasoning Mathematical Reasoning

What will be the output of the following?

int i=5; i=i++ + i++ + i++ + i++ + i++;

printf("%d,i);

i=++i + ++i + ++i + ++i + ++i ;

printf("%d, i);

Read Solution (Total 7)

TCS Other Question

There are 5 men and 11 women. In how many ways one can select a group of 6
with at-least 3 men?
A circle has 11 points arranged in a clockwise manner from 0 to 10. A bug moves clockwise on the circle according to following rule. If it is at a point i on the circle, it moves clockwise in 1 sec by (1 + r) places, where r is the remainder (possibly 0) when i is divided by 2. If it starts at 4th position, at what position will it be after 2012 seconds?

(a) 7 (b)9 (c)5 (d)1