In the Marcus Green mock exam 3, question 27 reads: Given the following class
What will happen when you attempt to compile and run it? 1) Compile time error 2) Output of "Hello Crowle" 3) Output of Hello Crowle followed by Borcetshire and Powick 4) No output The answer is correctly given as 2. If this question is testing knowledge of the short circuit logical operators, then answer 3 is the wrong incorrect answer. It should read: 3) Output of Borcetshire and Powick followed by Hello Crowle Someone with no knowledge of short circuit could still figure out that Hello Crowle will never precede Borcetshire and Powick, it could only follow them. Is this being too picky, sugesting that a mock exam contains the wrong incorrect answer?
[This message has been edited by Bill Krieger (edited November 29, 2001).]
posted 14 years ago
You are quite correct, answer three is still implausible if you don't know about the short cut operator. Many thanks for the suggestion I will alter incorrect answer 3 to make it more plausible (if still wrong . Marcus ------------------ http://www.jchq.net Mock Exams, FAQ, Tutorial, Links, Book reviews Java 2 Exam Prep, 2nd Edition by Bill Brogden and Marcus Green ================================================= JCHQ, Almost as good as JavaRanch =================================================