GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Placement Papers  >  Infosys  >  Challenging Puzzles

 Print  |  
Question:  In an Island the natives lie and visitors speak truth. A man wants to know whether a salesman beside him in a bar is a native or visitor. He asked him to ask a woman beside him whether she is a native or visitor. He replied "she says she is a visitor". Then he knew that the salesman is a native or visitor. salesman is in which category , native or visitor?



July 07, 2008 15:48:59 #5
 omanohar   Member Since: July 2008    Total Comments: 1 

RE: In an Island the natives lie and visitors speak truth. A man wants to know whether a salesman beside him in a bar is a native or visitor. He asked him to ask a woman beside him whether she is a native or visitor. He replied "she says she is a visitor"
 
Four case can happen:
1. woman visitor, salesman visitor
In this case woman will say that "i am  vistor" and salesman will say" she is vistor'

2. woman native, salesman native
In this case woman will say " i am vistor" and salesman will say" she is native"

3. woman vistor, salesman native
In this case woman wil say " i am visitor" and salesman will say" she is native".

4. woman native, salesman visitor
Here woman says " i m visitor" , sales man says " she is visitor"

from the above 4 cases, only case 1 and case 4 holds good as here the salesman says"she is visitor" which is what the salesman says in the problem.

In both cases 1 and 4 , salesman is a vistor, so confirmed that salesman is a visitor.
     

 

Back To Question