This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Marcus Green, wrong wrong answer

Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
arch rival
Posts: 2813
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
------------------ 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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!