Page 1 of 1

About Question enthuware.ocajp.i.v7.2.1395 :

Posted: Tue Sep 02, 2014 11:45 am
by chrisbarrett
Maybe I'm missing something...

Image
Firstly, the output is only the i and j variable values:
System.out.println(i+" "+j);
This makes all of the answers wrong, as 5 5 is the correct answer (not 5 5 5). Perhaps, the code should be:
System.out.println(i + " " + count +" "+ j);
Or, does the exam use the word "result" to mean the "values in the variables at time of method termination", instead of "output"?

Secondly, when I chose the most likely answer that I guessed was meant, I was wrong and the correct answer was indicated as "6 4 6". However, the explanation indicates I was correct with "5 5 5".

Cheers!
Chirs

Re: About Question enthuware.ocajp.i.v7.2.1395 :

Posted: Tue Sep 02, 2014 7:37 pm
by admin
You are right. The wrong option is set as correct. Fixed.
thank you for your feedback!
Paul.

Re: About Question enthuware.ocajp.i.v7.2.1395 :

Posted: Tue Sep 02, 2014 8:15 pm
by chrisbarrett
Thanks Paul for the speedy response!

Cheers!
Chris