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?

Answers were Sorted based on User's Feedback

I assume u have to ask them both the same question.
"are you guarding a door" meaning something that is
obviously the same for both of them, then you can tell if
one is lying, and go through the other door.

 Is This Answer Correct ? 7 Yes 1 No

here the point to be noted that we have to ask only one
question and it may be of any type(because as per the
requirements the type of question is not mentioned)
so firstly go for smoke & sanity test case:
the solution is very simple
that is
ask to any one of the guard the folowing question:
"R U A GUARD?"
now there can be only two possible outcomes(reply):
either yes or no
if u r questioning to the right guard then surely he will
say:yes
and the rong one wll alwys reply with :no

..........any coments wll be well accepted
Rajiv Kumar Jindal
(Test Engineer,Noida)

 Is This Answer Correct ? 7 Yes 1 No

tell?

Go through the door guy points to...Enjoy

 Is This Answer Correct ? 4 Yes 1 No

I feel GZ is right.

ramumcato@yahoo.com

 Is This Answer Correct ? 3 Yes 0 No

sorry to say venkat ....i dought that u'r answer is
wrong.....i will prove it

u'r allowed to answer only one question so
if u ask "are u from hell" to heaven gaurd and he say "No"
and u enter ...it will be heaven
if u ask the same question "are u from hell" to hell gaurd
and he say "No" and u enter it will be hell ....so u'r

and i agree with P73_73@yahoo.com answer .....if u want to
prove u'r thinking out of the box then u can say GZ answer

 Is This Answer Correct ? 2 Yes 0 No

I am sure GZ is right

 Is This Answer Correct ? 1 Yes 0 No

"Whats 1+1?"
the guy from hell would have to tell a lie and the guy from
heaven the truth??

 Is This Answer Correct ? 1 Yes 0 No

Ask one gaurd that... Are you a gaurd??
If he answered No.He is Hell guy?
so Go to the other door That should be Heaven.
Else
He say I am Gaurd!
He is a heaven guy. Go with him...

 Is This Answer Correct ? 1 Yes 0 No

Rajeev appears to be more correct than GZ. from GZ point of
view we have to ask one question but restriction is not
there on number of gurards. one good question can resolve

 Is This Answer Correct ? 1 Yes 1 No

The real answer to this is ,
You ask Either of the Guards this
"If i ask the Other Guy what door he is guarding , what
would he tell me? "

The Heaven Guard , knowing the the other guard always lies
will say " He will say that he's guarding heaven"

The Hell Guard always Lies , So he will say , " He will say
that he's guarding Hell"

that way you can find out who is guarding what

 Is This Answer Correct ? 1 Yes 1 No

More Testing AllOther Interview Questions

who does the security check on the web site, other than login/password screens ?

write a querry .if 10 records in a table.i want only 1 record and 3 reocrd and 10 record. how to write a querry.

If the client identified some bugs to whom did he reported?

9).explain difference between stab & driver? 10). who will conduct integration testing? 11). explain difference between system testing & functionality testing? 12). explain compatibility testing? 13). explain performance testing? 14). explain inter system testing? 15). explain difference between smoke testing & sanity testing? 16). explain difference between re-testing & regression testing? 17). you prefer manual testing or automation

how to attach and detach databases in sql?

What is API testing?

what is Response Time?

If the client identified some bugs to whom did he reported?

Examples where you have worked on your own and as part of a team.

What Testing process U r following in ur organization?

Usually customers won't give all the requirements. How will u manage & collect all the necessary information.

Please send me the materials for ISTQB certification. My email ID is testdir@yahoo.com. Thanks in advance. Am specifically looking for The book: Sample Exam Questions: ISTQB Certified Tester Foundation Level (Paperback) by PhD, CTFL John A. Estrella (Author), BSc, CTFL Maria C.Estrella (Author) ISBN-13: 978-1425131333

Categories