• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Marcus Green, wrong wrong answer

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
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
=================================================
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic