Cloudmere, Inc. Interview Question for Software Engineer / Developers






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

C will Ask the person in front of the gate to tell the other guys response
"What will be the guy in the next door's response, if i ask him that i will reach heaven by going through this gate"
Scenario - 1:
Say C asks this question to A and assume he always speaks lie and he stands in front of heaven
Since A speaks Lie and B truth so B would obviously say Yes so A's response will be NO.

Scenario - 2
Say C asks this question to A and assume he always speaks Truth and he stands in front of heaven
Since B would have told No and he blindly will reply back B's response since he says truth he would say again NO.

Scenario - 3
A standing in front of Hell and he always speaks lie
B would have responded No because he always says truth and A would say YES.

Scenario - 4
A standing in front of Hell and he always speaks Truth
B on the opposite gate would have responded saying Yes and A would promptly respond back with the same answer Yes.

The probability can be used for Person B scenario but the responses and situations are alike.
So if C gets a reply NO -- Enter to heaven (Same Gate)
IF C gets a reply YES -- Go to the opposite or the other gate.

- Prasanna February 02, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

great
u solved this....

- shreyans June 26, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 2 vote

ask: "which exit lead to heaven the other will tell me?" Answer from either A or B will lead to hell.

- xbai@smu.edu August 13, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

@xbai, you are selected :)

- raig August 14, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

what dude??
u dint proved anything........
suppose A says 1 is door to heaven and as B will tell false
it will say 2 is door
whom to believe.
.
.

- shreyans June 26, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

You did not mention anything about A knowing anything about B.

- Anonymous October 05, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Ask A pointing to a path "where it leads to heaven?" He may say yes or no. Now go to B and ask about the same path "this path dont lead to heaven. say yes or no?" He may say yes or no. Now if both says yes that means it a path to heaven. If both says no it means it is not. If answer is mix of yes and no then:

- madhava January 04, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

-madhav: Then you are screwed big time, and you deserve to go to HELL.
go thru the above posts to avoid the exit door in actual interview.

- Anonymous January 14, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Ask A, did he die? if he says NO, hes the one who always lies. Ask B, which is the door to heaven and take that door.
If A says Yes, take the other door that B did NOT say went to heaven

- Game March 29, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

this is the only and best answer....:)

- abh007 July 26, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

ask 1 person whether u died in a car accident ?
case 1: (asking a TT) he will say yes..
so ask the other one whether he is standing at heaven or hell
whatever he 'll say we will negate that..

case 2: (asking a lier)::
as he is lier and he died in car accident so he will say no
means u will come to know that u were talking to a lier now u know that the other 1 is Truth teller so ask him whether he z standing at heaven if yes then go to this door otherwise to other 1.

- Anonymous August 15, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 1 vote

Question to A: What will B say where the heaven entrance is;
Question to B:Ask for heaven entrance;
If the two friends points to the same entrance it is the hell entrance;(A is true and B is false)
If the two friends points different entrances ;entrance shown by second friend is the way to heaven.(A is false and B is true.)

- luffy August 14, 2011 | Flag Reply


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