Oracle Interview Question


Country: United States




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

Understanding that everyone (including the judge) are answerable to the law, the man makes the statement:

"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...)

- masterjaso October 31, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

If the judge set him free, then also its against the stmt "You will sentence me to 3 years in prison.", which means that person didnt say the truth, and hence he has to be given 3 years sentence right?

- Anonymous October 28, 2015 | Flag
Comment hidden because of low score. Click to expand.
2
of 4 vote

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?

- Nix November 02, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Nobody cares about it. All they need is a "Click" moment

- uix November 15, 2014 | Flag
Comment hidden because of low score. Click to expand.
1
of 1 vote

"The statement I am making is false."

- aasshishh November 06, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

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

- IgorBrown31 October 31, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

"i am guilty of being innocent" this statement can't be true or false. because if guilty he is innocent, if innocent he cant be guilty. so neither of judges statements are true. hence no sentence.

- Anonymous November 01, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

I would give no answer. No answer, no sentence :)

- Dídac Pérez November 04, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

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.

- Anonymous March 08, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Pinocchio says "My nose grows now"

- Sandeep April 13, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

"True" AND NOT "False"
==================
10 & ~11 = 10 & 00 = 0 ???

- Surej A June 10, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

"True" AND NOT "False"

which is

True(10) AND NOT False(11)

== 10 & ~11
== 10 & 00
== 00

:D

- Surej A June 10, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

True and not False

True = 10 (binary)
False = 11 (binary)

10 AND ~11
10 & 00 = 00

- Surej A June 10, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

True and not False

True = 10 (binary)
False = 11 (binary)

10 AND ~11
10 & 00 = 00

- Surej A June 10, 2015 | 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