This week's book giveaway is in the Cloud forum.
We're giving away four copies of The Business Blockchain and have William Mougayar on-line!
See this thread for details.
Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Wrong Answer for random question, online exam #2 (Java OCA 8 Programmer I Study Guide)

 
Saad Benbouzid
Greenhorn
Posts: 20
Chrome IntelliJ IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the writers have forgotten the new line character on this one.
As is, "7:" is written as a java label, but whose name is an invalid identifier (not alphanumeric, neither starting with $ or _). As is the code doesn't compile.

Please add a newline between line 6 and 7, or accept "G" as the correct answer.

 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Saad Benbouzid wrote:As is, "7:" is written as a java label, but whose name is an invalid identifier (not alphanumeric, neither starting with $ or _). As is the code doesn't compile.

Please add a newline between line 6 and 7, or accept "G" as the correct answer.

Obviously something went wrong in the "Transform author question to online question" process: a new line character should be added before 7: (and answer E is still the correct answer for this question).

Hope it helps!
Kind regards,
Roel
 
Suresh Regmi
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with Roel. The answer is correct, but need a needline.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35266
383
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, thank you for pointing out the missing new line. I'll work with the publisher to get it corrected.

My manuscript says this is in exam #2, not #3 by the way.
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:My manuscript says this is in exam #2, not #3 by the way.

Then the publisher made another mistake, because it's definitely in exam #2 (I just took exam #2 in fast-forward mode ).
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35266
383
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, it was probably a typo at Saad's end. This thread had online exam #3 in the title. (I just edited it to #2).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic