Oracle Interview Question
Country: United States
And how will this question ensure that person will write production level code, fix his/her bugs before deadline, understand your massive and likely shitty "preexisting" code, architecture, bugs and purposes *without any training effort*, work with team like family, and more?
The person under trial said. You'll sentence me to three years in prison." Now if this were true, then the judge would have to sentencing him to two years (which would make the man's statement false). However, if the judge were to sentencing him to three years, then the man's statement would be true and he would have to sentencing him to two years! The man's statement had thus created a 'catch 22' situation...so rather than contradict himself, the judge set the man free!!!
yahoo answers qid=20100304164205AAr5Jyk
if judge can do this , then judge can also order to immediately hang the person for this instead of setting him free. By the way judge can also take indefinite time announce the verdict or to decide the statement is true or false. Till then the person may remain in police custody or jail.
Understanding that everyone (including the judge) are answerable to the law, the man makes the statement:
- masterjaso October 31, 2014"You will sentence me to 3 years in prison."
If the judge then sentences him to three years in prison, the man's statement is true and the judge is a liar (for giving 3 instead of 2 years), and therefore the judge would have to sentence himself to 3 years in prison. If the judge says that's true, he then sentences the man to 2 years in prison for being truthful, but the judge then lies (still) and gets 3 years.
This is a question that on the surface appears trivial, but in actuality tests your understanding of logical expressions (true/false) and your ability to interpret dependent conditional statements. (These are not easy...)