I recently competed in a UIL (University Interscholastic League) competition in computer science. During the test, I came upon a question that had me stumped. Later on, I showed a copy of the test to my computer science teacher, who could not explain it either. If you would like a shot at this, here it is. Oh, and if you can do it, please leave an explanation on how/why also. Thanks ahead.
Which of the following will compute the minimum of x and y for all possible integer values x and y?
--------------------------
I. (x < y) ? x : y
II. x & y
III. (y > x) ? y : x
--------------------------
A. I only
B. II only
C. III only
D. I and III
E. I, II, and III
If you would like the answer, here it is (encrypted so you don't "accidently" see it ;-)).......take the last letter of the current president's last name and subtract from it 8 letters (ie: 'g' - 2 would be 'e'). Good luck!