Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mock-exams format vs real-exam format (Code formatting, and style overall)

 
Fernando Espinosa
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks, I've begun with my intensive preparation for the SCJP 5.0 exam and actually decided to go and buy the Preparation Kit from Whizlabs. I would agree in that it has been more than just somewhat helpful, but I have one BIG **SILLY** question:

In the mock exams, all the questions that have some code fragments, do a VERY POOR job making them "easily" readable: mostly in their horrendous indentation, and in the DND questions. I don't complain about the choice of identifier names, but can I expect the code in the real exam to be neater?

E.g. some nice code:



E.g. the same code but ugly formatted:



PS. Yes, I know, my question is silly, but it's annoying me that I spend so much time in spaghetti code, only beacuse the questions are badly rendered.
 
Priyam Srivastava
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well my experience says code in real exam is not that neater or so as to say they are quiet badly formatted,
but the exam creator are not that bad, as some questions are formatted as well...
 
Fernando Espinosa
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh well, thank you Priyam for letting me know.. I actually thought few people would find this question relevant. I myself understand that this is a programmer's exam, and nothing more.

Still, I find it difficult to concentrate reading spaghetti code, when the code is all badly presented.

Any advices on how to deal with this issue during the real-exam? (I know we cannot take notes)

Thanks...
 
Bert Bates
author
Sheriff
Posts: 8898
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sun delivers all of its certification exams on a worldwide basis. Because of this, the exams have to be designed to run on the least capable hardware that might be encountered. In some cases these tests are given on 640x480 monitors!!

Because of this, the code formatting on the real exam questions is often really bad - but it's done intentionally so that as often as possible you'll be able to see all the code without having to scroll up and down - and sometimes even that doesn't work.

So, in a nutshell, get used to horribly formatted code - it'll toughen you up for the real exam!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic