This week's book giveaway is in the Java in General forum.
We're giving away four copies of Java by Comparison (eBook) and have Simon Harrer, Jörg Lenhard, Linus Dietz on-line!
See this thread for details.
Win a copy of Java by Comparison (eBook) this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubts about Certification questions.  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've bought OCA/OCP Java SE 7 Programmer I && II Study Guide and get confused in some questions that appears in the Interactive Quiz.
Here is an example:



The first time I look at the question I assume that the code was all in one file and selected option F. I was confused with the 'Given:' and thought 'If there are two files it should say 'Given two files Car.java and Bridge.java'.

Does the real exam have questions like this that leads to ambiguity?
 
Sheriff
Posts: 11338
177
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jorge,

First of all, a warm welcome to CodeRanch!

Jorge Rego wrote:Does the real exam have questions like this that leads to ambiguity?


Normally the exam questions are of high quality. I didn't encounter any ambiguous question. But it's always possible a (small) typo is made. When I took OCAJP7, I had to select an answer with a compiler error in it as correct answer, more info here (I reported this question to the OCP team).

And of course there's always the spirit of a question. With your example I would never have selected F as correct answer, simply because I know a source file can have just 1 public class and 1 package statement (which must be the 1st one of the source code file, comments not included). So I assume both classes are in different class files and would have marked B and C as the correct answers.
This question is testing you on packages and the proper import statement. Probably if the question was testing you about how many package statements and/or public classes are allowed in a source code file, the question would mention explicitly something like: "Given the source code file Car.java containing the following code:".

Hope it helps!
Kind regards,
Roel
 
Jorge Rego
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Roel. Your post is quite elucidative. I'm taking the exam tomorrow and been using the OCA/OCP Java SE 7 Programmer I & II study guide and the enthuware software. Hope I'm ready.
 
Roel De Nijs
Sheriff
Posts: 11338
177
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Jorge Rego wrote:I'm taking the exam tomorrow and been using the OCA/OCP Java SE 7 Programmer I & II study guide and the enthuware software.


Best of luck tomorrow!

You have used the best resources available to prepare yourself for the OCAJP7 exal, so I'm quite confident you'll pass.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!