There will be two security guards at hell and heaven. hell
guy used to speak lie always and we can ask one and only
one question to move into heaven(twist is we don't know who
is hell or heaven gaurd).how can we move into heaven?

Answer Posted / neha

Here Your question needs to be bit tricky. Ask this question to any of the guards.
"If I ask the other guy, what is the path to Heaven which path he will tell me?"
Whatever path that guard tell you, choose the opposite path - that will be the heaven path.

Explanation:
If the person whom you asked speaks true always then he will point to the hell path, because we asked ' what will the answer of the other guy not his' and as he knows that another guy is a lier and he will show hell path so he also tells us the hell path.

If suppose the person whom you asked is the hell guy and always speaks a lie. Then also he will tell us hell path as he knows another guy will tell us the heaven path but he himself is a lier always so he will tell us hell path always.

So no matter who spoke lie or true. we need to go to opposite direction.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is heuristics testing?

689


Explain what the meaning of code walk through is?

554


Explain inspection?

547


What is oo system testing?

577


What is a user interface?

596






For the 7 stages of the SDLC (Planning, Analysis, Design, Development, Testing, Implementation, and Maintenance), What are the major inputs and outputs of each stage? What are the primary activities in each stage? Who are the primary "players" involved in each stage (e.g., Tech Arch's BA's, Testers etc.)?

457


Explain defect?

559


What is FCOE?

1705


What is stochastic testing?

618


In the 7 Stages of the SDLC (Planning, System Analysis, System Design, Development, Testing, Implementation, and Maintenance), WHO are the stakeholders of each stage?

601


What is a database administrator?

581


. when we preferred spiral model to develop an application? . explain testing methodologies? . explain cyclomatic complexity? .explain difference between stab & driver? . who will conduct integration testing?

1575


What is the bottom-up approach?

639


What is recovery/error testing?

593


Mention what the main advantages of statement coverage metric of software testing are?

541