Page 1 of 1

About Question enthuware.ocpjp.v7.2.1408

Posted: Wed May 01, 2013 5:12 am
by Antot700
This question lacks an instruction concerning the mandatory quotes to put into the answers.
That was very embarrassing to see that my answer was correct, but was not validated, just because of the quotes (the 4th input line contained a space after 'm').
You could either add an explicit statement about quotes in the question, or change the implementation by adding quotes automatically if they are not present.

Re: About Question enthuware.ocpjp.v7.2.1408

Posted: Wed May 01, 2013 6:29 pm
by admin
Hi Antot700,
This question specifically asks you to enter the output produced by each statement. Each of those statements explicitly prints quotes in the output. So I am not sure what other instruction do you think is necessary. If you answer without quotes, your answer will be evaluated as incorrect.

HTH,
Paul.

Re: About Question enthuware.ocpjp.v7.2.1408

Posted: Thu May 02, 2013 10:46 am
by Antot700
admin wrote: This question specifically asks you to enter the output produced by each statement. Each of those statements explicitly prints quotes in the output. So I am not sure what other instruction do you think is necessary. If you answer without quotes, your answer will be evaluated as incorrect.
Hi Paul,

Thank you for the explanation, I understand why it prints the quotes explicitly.
The problem is that when I was answering the question, I typed the correct output into the text fields and, when cheking the answers, the app considered my answers as invalid.
If explicitly typed quotes are necessary for the answers to be validated, it could be nice if there was just a hint like "(Please type your answers wrapped into quotation marks)" after the statement "Enter the output generated by the statements given on the left."

Re: About Question enthuware.ocpjp.v7.2.1408

Posted: Thu May 02, 2013 11:03 am
by admin
OK, I see your point. Will that statement to make sure the user doesn't forget about it.

thank you for your feedback!

Re: About Question enthuware.ocpjp.v7.2.1408

Posted: Wed Jul 24, 2013 4:58 pm
by renatumb
In

Code: Select all

System.out.printf("\"%,d \"", i2 );
The result depends on the Default Locale.
So, 2,222 is not the unique answer possible.

Re: About Question enthuware.ocpjp.v7.2.1408

Posted: Wed Jul 24, 2013 7:48 pm
by admin
You are right. The locale has now been given as US in the question to avoid this confusion.

thank you for your feedback!