Tuesday, October 21, 2014

Curious Crazy Question

Years and years ago there was a pre-employment exam that I took for some company, somewhere.  It has been a while and honestly don't remember the name of the company.  I do, however, remember the spirit of the question...  Here goes...

You run the following SQL on a MySQL server and what is the result?

create table HAHA
(Joke varchar(256) null,
JokePunchLine varchar(256) null);

insert into HAHA values('Why did the chicken cross the road?','The question is, Why did YOU let my checken cross the road!'),
('Why did the geometry professor always eat dessert first for every meal?','He really loved PI!'),
('Why I am Majoring in Physics:','https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgo73UjyvPBVIAJOyGuyTfkuDwkZX7NIBVDr9wDMvkuklhWlD5uyMZWLoay0IT2uFRlIUbFHccNbm6nQb8fZCjJ6_BWQaWAwWWewwpoKqBeTDU5No0aLOGjEnTATeBNnzBwe9Qfu39j8e3I/s1600/physics23.png');

 select '*' from HAHA;
----------------------------------------
And, just for fun, here is a question on a pre-employment test I would give before inviting a candidate to an interview.  You would be surprised how many people got this one wrong...

On a modern computer, from a DOS command prompt, what command do you use to see a directory of files?
A) LIST FILES
B) DIR
C) SEE DIRECTORY
D) Modern operating systems no longer use DOS.

No comments:

Post a Comment