Techlogix TATA Consultancy Services Interview Question for Software Engineer / Developers Consultants


Country: pakistan




Comment hidden because of low score. Click to expand.
8
of 8 vote

Following are my suggestion :-
Method 1 :-
1> First Stroke :- Cut Horizontal.
2> Second Stroke :- Cut Vertical.
3> Third Stroke :- Cut Across the Height of the Cake.

Method 2:-
1> First Stroke :- Cut Horizontal.
2> Second Stroke :- Cut Vertical.
3> Pick each of these pieces and stack upon each other making a pile of 4 pieces.
4> Third Stroke :- Cut through all the 4 pieces.

- hprem991 April 26, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
-2
of 4 votes

method 2 . its wrong, if we cut the 4 piled pieces, we can't get 8 equal pieces because it is circle.

- vijay May 15, 2013 | Flag
Comment hidden because of low score. Click to expand.
6
of 6 vote

view the cake as cylindrical.cut it along middle completing a circle.This makes 2 cylinders.Now 2 cuts both make + symbol.so 8 pieces

- mani 4m sklm February 05, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
2
of 2 vote

First make 2 cuts perpendicular to each other on the top then one in the middle (along the axis)

- sidhu February 05, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

cut 1:-cut vertically.
cut2:- superimpose the two pieces and cut again in two equal pieces.
cut3:- again follow step2.

- bhupeshkumar99 May 25, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

after cutting the cake horizontaly and vertically put all pieces over one another and cut from middle 8 equal pieces

- Anonymous February 05, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Think 3 dimensional. cut along x axis, y axis and z axis

- Anonymous February 05, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Cut the cake halfway it's height, then cut the cake in 2 perpendicular lines

- Anonymous February 05, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

A small extension for this que.I was asked to cut in 8 pieces such that everybody gets cream also.Note that in the above que 4 people wont get a cream

- mani 4m sklm February 06, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

yes . this way everyone will get cream .. good solution .. ie put 4 peices , one over other and then cut vertically

- motu February 17, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

a. Make 2 cuts perpendicular to each other. (It will make 4 pieces)
b. Then stack all 4 of the pieces and then split all four of the stacked pieces with the third cut. It will make 8 pieces.

You might think of this as sort of a trick question, since moving the pieces is something “out of the box” – but somebody asking this question is probably looking for that kind of out of the box thinking. .

- Anonymous February 18, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Nice solution dude, keep it up..

- TusharPatil February 19, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

you get four pieces in two cut,and pile up the four pieces then cut from top to bottom.it's 8 pieces

- hankesi April 26, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

I think that's the right approach. If piling is too messy, you could also lay out the cake pieces one next to the other two-dimensionally and make the cuts. So cut in two, put one half below the other, cut. Then take the four resulting pieces and align them all so that a line goes through their middles and make the third cut.

- Anonymous April 27, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

How about cutting round slices off the height of the cake ?

- Anonymous April 27, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

if u cut 3 round pieces vertically. you can get 7 pieces at max. If cutting round is even allowed.

- Nick May 07, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

My approach .......
first stroke : cut cake horizontaly in between .
and by the remaning two strokes make X on the cake .

- Rahul Singh April 29, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

1) cut cake from 12 o'clock direction to 6 o'clock direction.
2) cut cake from 3 o'clock direction to 9 o'clock direction.
3) cut the cake in half horizontally, slicing through all the pieces.

- yogeshrkhedkar June 22, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

1. the cake into two concentric circles of equal area
2. cut the cake vertically
3 cut the cake horizontally

you will get 8 equal pieces of cake of equal area

- Sonam July 03, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

1.cut the cake into 2 halfs
2.place one on another then make it four pieces(both 8 pieces)

- sai krishna June 06, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

1. Cut cake in 2 half.
2. Put this 2 half in a row which make DD cut them in 2 half
3. Put all piece in a row cut all of them in 2 half it will make 8 piece

}
All piece has cream and not spoil beauty of cake

- Mobin August 13, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

first cut it horizontally.then it becomes two pieces.then cut the two pieces vertically.results into 8 pieces

- vidhya November 06, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

We have to cut3 cakes into 8 pieces with a knife

- Unknown November 17, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 votes

No question is dumb

- Kashif February 05, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

khasif is right.

- mani 4m sklm February 06, 2013 | Flag


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More