wu :: forums (http://www.ocf.berkeley.edu/~wwu/cgi-bin/yabb/YaBB.cgi)
riddles >> medium >> What comes first?
(Message started by: navdeep1771 on Nov 10th, 2016, 8:59pm)

Title: What comes first?
Post by navdeep1771 on Nov 10th, 2016, 8:59pm
Interviewer said "I shall either ask you ten easy questions or one really difficult question. Think well before you make up your mind!"
The boy thought for a while and said, "my choice is one really difficult question."
"Well, good luck to you, you have made your own choice! Now tell me this.

"What comes first, Day or Night?"

The boy was jolted into reality as his admission depends on the correctness of his answer, but he was quite smart and passed the interview.
What do you think he must have said and what would be his explanation?

Title: Re: Day or Night?
Post by rloginunix on Nov 11th, 2016, 7:17am
vi don.c
 #include <stdio.h>
#include <string.h>

extern int
main( int argc, char* argv[] )
{
       const char* const       Day = "Day";
       const char* const       Night = "Night";

       printf( "%s %s %s\n",
               Day,
               strcmp( Day, Night ) < 0 ? "<" : ">",
               Night );

       return 0;
}

gcc -g -o don don.c
./don
Day < Night

You are asking too many questions.

Title: Re: Day or Night?
Post by rmsgrey on Nov 11th, 2016, 12:34pm
Yeah, the question as asked pretty clearly goes for rlogunix's answer. On the other hand, it skirts a more interesting question: which came first?

Title: Re: Day or Night?
Post by towr on Nov 11th, 2016, 1:21pm
Day or night, getting the job done comes first.

Title: Re: Day or Night?
Post by navdeep1771 on Nov 11th, 2016, 6:57pm
No friends, the question is simple: What the boy must have said to the interviewer and why?

@rloginunix:- what's all that coding used in your message? are you a bot or what?  ;D ;D

@towr: sorry you got the wrong answer.  :P

Title: Re: Day or Night?
Post by navdeep1771 on Nov 11th, 2016, 7:06pm
[HINT]: The answer is tricky enough. So stop logically thinking that what comes first - Day or Night...try to understand the situation  :)

Title: Re: What comes first?
Post by dudiobugtron on Nov 11th, 2016, 9:26pm
Day comes first [hide]in a dictionary[/hide]. I guess he was [hide]applying for a job as a sub-editor[/hide]

Title: Re: What comes first?
Post by pex on Nov 11th, 2016, 11:41pm
The standard answer is [hide]that the candidate picks one of the two at random, the interviewer asks him to explain why, and the candidate refuses to answer because this is the second question[/hide]. Which obviously makes no sense at all - would you hire him?

Title: Re: What comes first?
Post by rmsgrey on Nov 12th, 2016, 3:51am

on 11/11/16 at 23:41:12, pex wrote:
Which obviously makes no sense at all - would you hire him?

For a job as a lawyer? Possibly. For a job as a sign-painter? Probably not.

Also, possibly worth noting that the interviewer imposed an order on the words.



Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board